Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Side by Side Diff: test/cctest/test-serialize.cc

Issue 1401173003: [heap] Reland decrease large object limit for regular heap objects. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/objects.h ('k') | test/cctest/test-spaces.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2007-2010 the V8 project authors. All rights reserved. 1 // Copyright 2007-2010 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1205 matching lines...) Expand 10 before | Expand all | Expand 10 after
1216 ->Int32Value(v8::Isolate::GetCurrent()->GetCurrentContext()); 1216 ->Int32Value(v8::Isolate::GetCurrent()->GetCurrentContext());
1217 CHECK_EQ(600000 + 700000, result.FromJust()); 1217 CHECK_EQ(600000 + 700000, result.FromJust());
1218 result = CompileRun("(b + c).length") 1218 result = CompileRun("(b + c).length")
1219 ->Int32Value(v8::Isolate::GetCurrent()->GetCurrentContext()); 1219 ->Int32Value(v8::Isolate::GetCurrent()->GetCurrentContext());
1220 CHECK_EQ(500000 + 600000, result.FromJust()); 1220 CHECK_EQ(500000 + 600000, result.FromJust());
1221 Heap* heap = isolate->heap(); 1221 Heap* heap = isolate->heap();
1222 v8::Local<v8::String> result_str = 1222 v8::Local<v8::String> result_str =
1223 CompileRun("a") 1223 CompileRun("a")
1224 ->ToString(CcTest::isolate()->GetCurrentContext()) 1224 ->ToString(CcTest::isolate()->GetCurrentContext())
1225 .ToLocalChecked(); 1225 .ToLocalChecked();
1226 CHECK(heap->InSpace(*v8::Utils::OpenHandle(*result_str), OLD_SPACE)); 1226 CHECK(heap->InSpace(*v8::Utils::OpenHandle(*result_str), LO_SPACE));
1227 result_str = CompileRun("b") 1227 result_str = CompileRun("b")
1228 ->ToString(CcTest::isolate()->GetCurrentContext()) 1228 ->ToString(CcTest::isolate()->GetCurrentContext())
1229 .ToLocalChecked(); 1229 .ToLocalChecked();
1230 CHECK(heap->InSpace(*v8::Utils::OpenHandle(*result_str), OLD_SPACE)); 1230 CHECK(heap->InSpace(*v8::Utils::OpenHandle(*result_str), LO_SPACE));
1231 result_str = CompileRun("c") 1231 result_str = CompileRun("c")
1232 ->ToString(CcTest::isolate()->GetCurrentContext()) 1232 ->ToString(CcTest::isolate()->GetCurrentContext())
1233 .ToLocalChecked(); 1233 .ToLocalChecked();
1234 CHECK(heap->InSpace(*v8::Utils::OpenHandle(*result_str), OLD_SPACE)); 1234 CHECK(heap->InSpace(*v8::Utils::OpenHandle(*result_str), LO_SPACE));
1235 1235
1236 delete cache; 1236 delete cache;
1237 source_a.Dispose(); 1237 source_a.Dispose();
1238 source_b.Dispose(); 1238 source_b.Dispose();
1239 source_c.Dispose(); 1239 source_c.Dispose();
1240 } 1240 }
1241 1241
1242 1242
1243 class SerializerOneByteResource 1243 class SerializerOneByteResource
1244 : public v8::String::ExternalOneByteStringResource { 1244 : public v8::String::ExternalOneByteStringResource {
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after
1778 delete script_data; 1778 delete script_data;
1779 } 1779 }
1780 1780
1781 1781
1782 TEST(SerializationMemoryStats) { 1782 TEST(SerializationMemoryStats) {
1783 FLAG_profile_deserialization = true; 1783 FLAG_profile_deserialization = true;
1784 FLAG_always_opt = false; 1784 FLAG_always_opt = false;
1785 v8::StartupData blob = v8::V8::CreateSnapshotDataBlob(); 1785 v8::StartupData blob = v8::V8::CreateSnapshotDataBlob();
1786 delete[] blob.data; 1786 delete[] blob.data;
1787 } 1787 }
OLDNEW
« no previous file with comments | « src/objects.h ('k') | test/cctest/test-spaces.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698