| Index: test/cctest/test-heap.cc
|
| diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc
|
| index 2824d5b242465f2784656c386938750df435ac67..fc7d49dc772c29f119d0a26b950d60ba481bcb9f 100644
|
| --- a/test/cctest/test-heap.cc
|
| +++ b/test/cctest/test-heap.cc
|
| @@ -70,7 +70,7 @@ static void CheckMap(Map* map, int type, int instance_size) {
|
| }
|
|
|
|
|
| -TEST(HeapMaps) {
|
| +TEST_TRACK_ALLOCATIONS(HeapMaps) {
|
| CcTest::InitializeVM();
|
| Heap* heap = CcTest::heap();
|
| CheckMap(heap->meta_map(), MAP_TYPE, Map::kSize);
|
| @@ -147,7 +147,7 @@ static void CheckFindCodeObject(Isolate* isolate) {
|
| }
|
|
|
|
|
| -TEST(HeapObjects) {
|
| +TEST_TRACK_ALLOCATIONS(HeapObjects) {
|
| CcTest::InitializeVM();
|
| Isolate* isolate = CcTest::i_isolate();
|
| Factory* factory = isolate->factory();
|
| @@ -232,7 +232,7 @@ TEST(HeapObjects) {
|
| }
|
|
|
|
|
| -TEST(Tagging) {
|
| +TEST_TRACK_ALLOCATIONS(Tagging) {
|
| CcTest::InitializeVM();
|
| int request = 24;
|
| CHECK_EQ(request, static_cast<int>(OBJECT_POINTER_ALIGN(request)));
|
| @@ -248,7 +248,7 @@ TEST(Tagging) {
|
| }
|
|
|
|
|
| -TEST(GarbageCollection) {
|
| +TEST_TRACK_ALLOCATIONS(GarbageCollection) {
|
| CcTest::InitializeVM();
|
| Isolate* isolate = CcTest::i_isolate();
|
| Heap* heap = isolate->heap();
|
| @@ -325,7 +325,7 @@ static void VerifyStringAllocation(Isolate* isolate, const char* string) {
|
| }
|
|
|
|
|
| -TEST(String) {
|
| +TEST_TRACK_ALLOCATIONS(String) {
|
| CcTest::InitializeVM();
|
| Isolate* isolate = reinterpret_cast<Isolate*>(CcTest::isolate());
|
|
|
| @@ -337,7 +337,7 @@ TEST(String) {
|
| }
|
|
|
|
|
| -TEST(LocalHandles) {
|
| +TEST_TRACK_ALLOCATIONS(LocalHandles) {
|
| CcTest::InitializeVM();
|
| Isolate* isolate = CcTest::i_isolate();
|
| Factory* factory = isolate->factory();
|
| @@ -349,7 +349,7 @@ TEST(LocalHandles) {
|
| }
|
|
|
|
|
| -TEST(GlobalHandles) {
|
| +TEST_TRACK_ALLOCATIONS(GlobalHandles) {
|
| CcTest::InitializeVM();
|
| Isolate* isolate = CcTest::i_isolate();
|
| Heap* heap = isolate->heap();
|
| @@ -401,7 +401,7 @@ static void TestWeakGlobalHandleCallback(v8::Isolate* isolate,
|
| }
|
|
|
|
|
| -TEST(WeakGlobalHandlesScavenge) {
|
| +TEST_TRACK_ALLOCATIONS(WeakGlobalHandlesScavenge) {
|
| i::FLAG_stress_compaction = false;
|
| CcTest::InitializeVM();
|
| Isolate* isolate = CcTest::i_isolate();
|
| @@ -443,7 +443,7 @@ TEST(WeakGlobalHandlesScavenge) {
|
| }
|
|
|
|
|
| -TEST(WeakGlobalHandlesMark) {
|
| +TEST_TRACK_ALLOCATIONS(WeakGlobalHandlesMark) {
|
| CcTest::InitializeVM();
|
| Isolate* isolate = CcTest::i_isolate();
|
| Heap* heap = isolate->heap();
|
| @@ -488,7 +488,7 @@ TEST(WeakGlobalHandlesMark) {
|
| }
|
|
|
|
|
| -TEST(DeleteWeakGlobalHandle) {
|
| +TEST_TRACK_ALLOCATIONS(DeleteWeakGlobalHandle) {
|
| i::FLAG_stress_compaction = false;
|
| CcTest::InitializeVM();
|
| Isolate* isolate = CcTest::i_isolate();
|
| @@ -603,7 +603,7 @@ static void CheckInternalizedStrings(const char** strings) {
|
| }
|
|
|
|
|
| -TEST(StringTable) {
|
| +TEST_TRACK_ALLOCATIONS(StringTable) {
|
| CcTest::InitializeVM();
|
|
|
| CheckInternalizedStrings(not_so_random_string_table);
|
| @@ -611,7 +611,7 @@ TEST(StringTable) {
|
| }
|
|
|
|
|
| -TEST(FunctionAllocation) {
|
| +TEST_TRACK_ALLOCATIONS(FunctionAllocation) {
|
| CcTest::InitializeVM();
|
| Isolate* isolate = CcTest::i_isolate();
|
| Factory* factory = isolate->factory();
|
| @@ -638,7 +638,7 @@ TEST(FunctionAllocation) {
|
| }
|
|
|
|
|
| -TEST(ObjectProperties) {
|
| +TEST_TRACK_ALLOCATIONS(ObjectProperties) {
|
| CcTest::InitializeVM();
|
| Isolate* isolate = CcTest::i_isolate();
|
| Factory* factory = isolate->factory();
|
| @@ -709,7 +709,7 @@ TEST(ObjectProperties) {
|
| }
|
|
|
|
|
| -TEST(JSObjectMaps) {
|
| +TEST_TRACK_ALLOCATIONS(JSObjectMaps) {
|
| CcTest::InitializeVM();
|
| Isolate* isolate = CcTest::i_isolate();
|
| Factory* factory = isolate->factory();
|
| @@ -735,7 +735,7 @@ TEST(JSObjectMaps) {
|
| }
|
|
|
|
|
| -TEST(JSArray) {
|
| +TEST_TRACK_ALLOCATIONS(JSArray) {
|
| CcTest::InitializeVM();
|
| Isolate* isolate = CcTest::i_isolate();
|
| Factory* factory = isolate->factory();
|
| @@ -784,7 +784,7 @@ TEST(JSArray) {
|
| }
|
|
|
|
|
| -TEST(JSObjectCopy) {
|
| +TEST_TRACK_ALLOCATIONS(JSObjectCopy) {
|
| CcTest::InitializeVM();
|
| Isolate* isolate = CcTest::i_isolate();
|
| Factory* factory = isolate->factory();
|
| @@ -833,7 +833,7 @@ TEST(JSObjectCopy) {
|
| }
|
|
|
|
|
| -TEST(StringAllocation) {
|
| +TEST_TRACK_ALLOCATIONS(StringAllocation) {
|
| CcTest::InitializeVM();
|
| Isolate* isolate = CcTest::i_isolate();
|
| Factory* factory = isolate->factory();
|
| @@ -888,7 +888,7 @@ static int ObjectsFoundInHeap(Heap* heap, Handle<Object> objs[], int size) {
|
| }
|
|
|
|
|
| -TEST(Iteration) {
|
| +TEST_TRACK_ALLOCATIONS(Iteration) {
|
| CcTest::InitializeVM();
|
| Isolate* isolate = CcTest::i_isolate();
|
| Factory* factory = isolate->factory();
|
| @@ -928,7 +928,7 @@ TEST(Iteration) {
|
| }
|
|
|
|
|
| -TEST(EmptyHandleEscapeFrom) {
|
| +TEST_TRACK_ALLOCATIONS(EmptyHandleEscapeFrom) {
|
| CcTest::InitializeVM();
|
|
|
| v8::HandleScope scope(CcTest::isolate());
|
| @@ -949,7 +949,7 @@ static int LenFromSize(int size) {
|
| }
|
|
|
|
|
| -TEST(Regression39128) {
|
| +TEST_TRACK_ALLOCATIONS(Regression39128) {
|
| // Test case for crbug.com/39128.
|
| CcTest::InitializeVM();
|
| Isolate* isolate = CcTest::i_isolate();
|
| @@ -1027,7 +1027,7 @@ TEST(Regression39128) {
|
| }
|
|
|
|
|
| -TEST(TestCodeFlushing) {
|
| +TEST_TRACK_ALLOCATIONS(TestCodeFlushing) {
|
| // If we do not flush code this test is invalid.
|
| if (!FLAG_flush_code) return;
|
| i::FLAG_allow_natives_syntax = true;
|
| @@ -1076,7 +1076,7 @@ TEST(TestCodeFlushing) {
|
| }
|
|
|
|
|
| -TEST(TestCodeFlushingIncremental) {
|
| +TEST_TRACK_ALLOCATIONS(TestCodeFlushingIncremental) {
|
| // If we do not flush code this test is invalid.
|
| if (!FLAG_flush_code || !FLAG_flush_code_incrementally) return;
|
| i::FLAG_allow_natives_syntax = true;
|
| @@ -1144,7 +1144,7 @@ TEST(TestCodeFlushingIncremental) {
|
| }
|
|
|
|
|
| -TEST(TestCodeFlushingIncrementalScavenge) {
|
| +TEST_TRACK_ALLOCATIONS(TestCodeFlushingIncrementalScavenge) {
|
| // If we do not flush code this test is invalid.
|
| if (!FLAG_flush_code || !FLAG_flush_code_incrementally) return;
|
| i::FLAG_allow_natives_syntax = true;
|
| @@ -1212,7 +1212,7 @@ TEST(TestCodeFlushingIncrementalScavenge) {
|
| }
|
|
|
|
|
| -TEST(TestCodeFlushingIncrementalAbort) {
|
| +TEST_TRACK_ALLOCATIONS(TestCodeFlushingIncrementalAbort) {
|
| // If we do not flush code this test is invalid.
|
| if (!FLAG_flush_code || !FLAG_flush_code_incrementally) return;
|
| i::FLAG_allow_natives_syntax = true;
|
| @@ -1304,7 +1304,7 @@ static int CountOptimizedUserFunctions(v8::Handle<v8::Context> context) {
|
| }
|
|
|
|
|
| -TEST(TestInternalWeakLists) {
|
| +TEST_TRACK_ALLOCATIONS(TestInternalWeakLists) {
|
| v8::V8::Initialize();
|
|
|
| // Some flags turn Scavenge collections into Mark-sweep collections
|
| @@ -1454,7 +1454,7 @@ static int CountOptimizedUserFunctionsWithGC(v8::Handle<v8::Context> context,
|
| }
|
|
|
|
|
| -TEST(TestInternalWeakListsTraverseWithGC) {
|
| +TEST_TRACK_ALLOCATIONS(TestInternalWeakListsTraverseWithGC) {
|
| v8::V8::Initialize();
|
| Isolate* isolate = CcTest::i_isolate();
|
|
|
| @@ -1505,7 +1505,7 @@ TEST(TestInternalWeakListsTraverseWithGC) {
|
| }
|
|
|
|
|
| -TEST(TestSizeOfObjects) {
|
| +TEST_TRACK_ALLOCATIONS(TestSizeOfObjects) {
|
| v8::V8::Initialize();
|
|
|
| // Get initial heap size after several full GCs, which will stabilize
|
| @@ -1546,7 +1546,7 @@ TEST(TestSizeOfObjects) {
|
| }
|
|
|
|
|
| -TEST(TestSizeOfObjectsVsHeapIteratorPrecision) {
|
| +TEST_TRACK_ALLOCATIONS(TestSizeOfObjectsVsHeapIteratorPrecision) {
|
| CcTest::InitializeVM();
|
| CcTest::heap()->EnsureHeapIsIterable();
|
| intptr_t size_of_objects_1 = CcTest::heap()->SizeOfObjects();
|
| @@ -1597,7 +1597,7 @@ static void FillUpNewSpace(NewSpace* new_space) {
|
| }
|
|
|
|
|
| -TEST(GrowAndShrinkNewSpace) {
|
| +TEST_TRACK_ALLOCATIONS(GrowAndShrinkNewSpace) {
|
| CcTest::InitializeVM();
|
| Heap* heap = CcTest::heap();
|
| NewSpace* new_space = heap->new_space();
|
| @@ -1648,7 +1648,7 @@ TEST(GrowAndShrinkNewSpace) {
|
| }
|
|
|
|
|
| -TEST(CollectingAllAvailableGarbageShrinksNewSpace) {
|
| +TEST_TRACK_ALLOCATIONS(CollectingAllAvailableGarbageShrinksNewSpace) {
|
| CcTest::InitializeVM();
|
| Heap* heap = CcTest::heap();
|
| if (heap->ReservedSemiSpaceSize() == heap->InitialSemiSpaceSize() ||
|
| @@ -1685,7 +1685,7 @@ static int NumberOfGlobalObjects() {
|
|
|
| // Test that we don't embed maps from foreign contexts into
|
| // optimized code.
|
| -TEST(LeakNativeContextViaMap) {
|
| +TEST_TRACK_ALLOCATIONS(LeakNativeContextViaMap) {
|
| i::FLAG_allow_natives_syntax = true;
|
| v8::Isolate* isolate = CcTest::isolate();
|
| v8::HandleScope outer_scope(isolate);
|
| @@ -1731,7 +1731,7 @@ TEST(LeakNativeContextViaMap) {
|
|
|
| // Test that we don't embed functions from foreign contexts into
|
| // optimized code.
|
| -TEST(LeakNativeContextViaFunction) {
|
| +TEST_TRACK_ALLOCATIONS(LeakNativeContextViaFunction) {
|
| i::FLAG_allow_natives_syntax = true;
|
| v8::Isolate* isolate = CcTest::isolate();
|
| v8::HandleScope outer_scope(isolate);
|
| @@ -1775,7 +1775,7 @@ TEST(LeakNativeContextViaFunction) {
|
| }
|
|
|
|
|
| -TEST(LeakNativeContextViaMapKeyed) {
|
| +TEST_TRACK_ALLOCATIONS(LeakNativeContextViaMapKeyed) {
|
| i::FLAG_allow_natives_syntax = true;
|
| v8::Isolate* isolate = CcTest::isolate();
|
| v8::HandleScope outer_scope(isolate);
|
| @@ -1819,7 +1819,7 @@ TEST(LeakNativeContextViaMapKeyed) {
|
| }
|
|
|
|
|
| -TEST(LeakNativeContextViaMapProto) {
|
| +TEST_TRACK_ALLOCATIONS(LeakNativeContextViaMapProto) {
|
| i::FLAG_allow_natives_syntax = true;
|
| v8::Isolate* isolate = CcTest::isolate();
|
| v8::HandleScope outer_scope(isolate);
|
| @@ -1867,7 +1867,7 @@ TEST(LeakNativeContextViaMapProto) {
|
| }
|
|
|
|
|
| -TEST(InstanceOfStubWriteBarrier) {
|
| +TEST_TRACK_ALLOCATIONS(InstanceOfStubWriteBarrier) {
|
| i::FLAG_allow_natives_syntax = true;
|
| #ifdef VERIFY_HEAP
|
| i::FLAG_verify_heap = true;
|
| @@ -1923,7 +1923,7 @@ TEST(InstanceOfStubWriteBarrier) {
|
| }
|
|
|
|
|
| -TEST(PrototypeTransitionClearing) {
|
| +TEST_TRACK_ALLOCATIONS(PrototypeTransitionClearing) {
|
| CcTest::InitializeVM();
|
| Isolate* isolate = CcTest::i_isolate();
|
| Factory* factory = isolate->factory();
|
| @@ -1983,7 +1983,7 @@ TEST(PrototypeTransitionClearing) {
|
| }
|
|
|
|
|
| -TEST(ResetSharedFunctionInfoCountersDuringIncrementalMarking) {
|
| +TEST_TRACK_ALLOCATIONS(ResetSharedFunctionInfoCountersDuringIncrementalMarking) {
|
| i::FLAG_stress_compaction = false;
|
| i::FLAG_allow_natives_syntax = true;
|
| #ifdef VERIFY_HEAP
|
| @@ -2040,7 +2040,7 @@ TEST(ResetSharedFunctionInfoCountersDuringIncrementalMarking) {
|
| }
|
|
|
|
|
| -TEST(ResetSharedFunctionInfoCountersDuringMarkSweep) {
|
| +TEST_TRACK_ALLOCATIONS(ResetSharedFunctionInfoCountersDuringMarkSweep) {
|
| i::FLAG_stress_compaction = false;
|
| i::FLAG_allow_natives_syntax = true;
|
| #ifdef VERIFY_HEAP
|
| @@ -2084,7 +2084,7 @@ TEST(ResetSharedFunctionInfoCountersDuringMarkSweep) {
|
|
|
|
|
| // Test that HAllocateObject will always return an object in new-space.
|
| -TEST(OptimizedAllocationAlwaysInNewSpace) {
|
| +TEST_TRACK_ALLOCATIONS(OptimizedAllocationAlwaysInNewSpace) {
|
| i::FLAG_allow_natives_syntax = true;
|
| CcTest::InitializeVM();
|
| if (!CcTest::i_isolate()->use_crankshaft() || i::FLAG_always_opt) return;
|
| @@ -2185,7 +2185,7 @@ TEST(OptimizedPretenuringAllocationFoldingBlocks) {
|
| }
|
|
|
|
|
| -TEST(OptimizedPretenuringObjectArrayLiterals) {
|
| +TEST_TRACK_ALLOCATIONS(OptimizedPretenuringObjectArrayLiterals) {
|
| i::FLAG_allow_natives_syntax = true;
|
| CcTest::InitializeVM();
|
| if (!CcTest::i_isolate()->use_crankshaft() || i::FLAG_always_opt) return;
|
| @@ -2210,7 +2210,7 @@ TEST(OptimizedPretenuringObjectArrayLiterals) {
|
| }
|
|
|
|
|
| -TEST(OptimizedPretenuringMixedInObjectProperties) {
|
| +TEST_TRACK_ALLOCATIONS(OptimizedPretenuringMixedInObjectProperties) {
|
| i::FLAG_allow_natives_syntax = true;
|
| CcTest::InitializeVM();
|
| if (!CcTest::i_isolate()->use_crankshaft() || i::FLAG_always_opt) return;
|
| @@ -2241,7 +2241,7 @@ TEST(OptimizedPretenuringMixedInObjectProperties) {
|
| }
|
|
|
|
|
| -TEST(OptimizedPretenuringDoubleArrayProperties) {
|
| +TEST_TRACK_ALLOCATIONS(OptimizedPretenuringDoubleArrayProperties) {
|
| i::FLAG_allow_natives_syntax = true;
|
| CcTest::InitializeVM();
|
| if (!CcTest::i_isolate()->use_crankshaft() || i::FLAG_always_opt) return;
|
| @@ -2266,7 +2266,7 @@ TEST(OptimizedPretenuringDoubleArrayProperties) {
|
| }
|
|
|
|
|
| -TEST(OptimizedPretenuringdoubleArrayLiterals) {
|
| +TEST_TRACK_ALLOCATIONS(OptimizedPretenuringdoubleArrayLiterals) {
|
| i::FLAG_allow_natives_syntax = true;
|
| CcTest::InitializeVM();
|
| if (!CcTest::i_isolate()->use_crankshaft() || i::FLAG_always_opt) return;
|
| @@ -2291,7 +2291,7 @@ TEST(OptimizedPretenuringdoubleArrayLiterals) {
|
| }
|
|
|
|
|
| -TEST(OptimizedPretenuringNestedMixedArrayLiterals) {
|
| +TEST_TRACK_ALLOCATIONS(OptimizedPretenuringNestedMixedArrayLiterals) {
|
| i::FLAG_allow_natives_syntax = true;
|
| CcTest::InitializeVM();
|
| if (!CcTest::i_isolate()->use_crankshaft() || i::FLAG_always_opt) return;
|
| @@ -2325,7 +2325,7 @@ TEST(OptimizedPretenuringNestedMixedArrayLiterals) {
|
| }
|
|
|
|
|
| -TEST(OptimizedPretenuringNestedObjectLiterals) {
|
| +TEST_TRACK_ALLOCATIONS(OptimizedPretenuringNestedObjectLiterals) {
|
| i::FLAG_allow_natives_syntax = true;
|
| CcTest::InitializeVM();
|
| if (!CcTest::i_isolate()->use_crankshaft() || i::FLAG_always_opt) return;
|
| @@ -2359,7 +2359,7 @@ TEST(OptimizedPretenuringNestedObjectLiterals) {
|
| }
|
|
|
|
|
| -TEST(OptimizedPretenuringNestedDoubleLiterals) {
|
| +TEST_TRACK_ALLOCATIONS(OptimizedPretenuringNestedDoubleLiterals) {
|
| i::FLAG_allow_natives_syntax = true;
|
| CcTest::InitializeVM();
|
| if (!CcTest::i_isolate()->use_crankshaft() || i::FLAG_always_opt) return;
|
| @@ -2396,7 +2396,7 @@ TEST(OptimizedPretenuringNestedDoubleLiterals) {
|
|
|
|
|
| // Test regular array literals allocation.
|
| -TEST(OptimizedAllocationArrayLiterals) {
|
| +TEST_TRACK_ALLOCATIONS(OptimizedAllocationArrayLiterals) {
|
| i::FLAG_allow_natives_syntax = true;
|
| CcTest::InitializeVM();
|
| if (!CcTest::i_isolate()->use_crankshaft() || i::FLAG_always_opt) return;
|
| @@ -2422,7 +2422,7 @@ TEST(OptimizedAllocationArrayLiterals) {
|
| }
|
|
|
|
|
| -TEST(OptimizedPretenuringCallNew) {
|
| +TEST_TRACK_ALLOCATIONS(OptimizedPretenuringCallNew) {
|
| i::FLAG_allow_natives_syntax = true;
|
| i::FLAG_pretenuring_call_new = true;
|
| CcTest::InitializeVM();
|
| @@ -2454,7 +2454,7 @@ static int CountMapTransitions(Map* map) {
|
|
|
| // Test that map transitions are cleared and maps are collected with
|
| // incremental marking as well.
|
| -TEST(Regress1465) {
|
| +TEST_TRACK_ALLOCATIONS(Regress1465) {
|
| i::FLAG_stress_compaction = false;
|
| i::FLAG_allow_natives_syntax = true;
|
| i::FLAG_trace_incremental_marking = true;
|
| @@ -2493,7 +2493,7 @@ TEST(Regress1465) {
|
| }
|
|
|
|
|
| -TEST(Regress2143a) {
|
| +TEST_TRACK_ALLOCATIONS(Regress2143a) {
|
| i::FLAG_collect_maps = true;
|
| i::FLAG_incremental_marking = true;
|
| CcTest::InitializeVM();
|
| @@ -2533,7 +2533,7 @@ TEST(Regress2143a) {
|
| }
|
|
|
|
|
| -TEST(Regress2143b) {
|
| +TEST_TRACK_ALLOCATIONS(Regress2143b) {
|
| i::FLAG_collect_maps = true;
|
| i::FLAG_incremental_marking = true;
|
| i::FLAG_allow_natives_syntax = true;
|
| @@ -2577,7 +2577,7 @@ TEST(Regress2143b) {
|
| }
|
|
|
|
|
| -TEST(ReleaseOverReservedPages) {
|
| +TEST_TRACK_ALLOCATIONS(ReleaseOverReservedPages) {
|
| i::FLAG_trace_gc = true;
|
| // The optimizer can allocate stuff, messing up the test.
|
| i::FLAG_crankshaft = false;
|
| @@ -2623,7 +2623,7 @@ TEST(ReleaseOverReservedPages) {
|
| }
|
|
|
|
|
| -TEST(Regress2237) {
|
| +TEST_TRACK_ALLOCATIONS(Regress2237) {
|
| i::FLAG_stress_compaction = false;
|
| CcTest::InitializeVM();
|
| Isolate* isolate = CcTest::i_isolate();
|
| @@ -2656,7 +2656,7 @@ TEST(Regress2237) {
|
|
|
|
|
| #ifdef OBJECT_PRINT
|
| -TEST(PrintSharedFunctionInfo) {
|
| +TEST_TRACK_ALLOCATIONS(PrintSharedFunctionInfo) {
|
| CcTest::InitializeVM();
|
| v8::HandleScope scope(CcTest::isolate());
|
| const char* source = "f = function() { return 987654321; }\n"
|
| @@ -2673,7 +2673,7 @@ TEST(PrintSharedFunctionInfo) {
|
| #endif // OBJECT_PRINT
|
|
|
|
|
| -TEST(Regress2211) {
|
| +TEST_TRACK_ALLOCATIONS(Regress2211) {
|
| CcTest::InitializeVM();
|
| v8::HandleScope scope(CcTest::isolate());
|
|
|
| @@ -2708,7 +2708,7 @@ TEST(Regress2211) {
|
| }
|
|
|
|
|
| -TEST(IncrementalMarkingClearsTypeFeedbackCells) {
|
| +TEST_TRACK_ALLOCATIONS(IncrementalMarkingClearsTypeFeedbackCells) {
|
| if (i::FLAG_always_opt) return;
|
| CcTest::InitializeVM();
|
| v8::HandleScope scope(CcTest::isolate());
|
| @@ -2767,7 +2767,7 @@ static Code* FindFirstIC(Code* code, Code::Kind kind) {
|
| }
|
|
|
|
|
| -TEST(IncrementalMarkingPreservesMonomorhpicIC) {
|
| +TEST_TRACK_ALLOCATIONS(IncrementalMarkingPreservesMonomorhpicIC) {
|
| if (i::FLAG_always_opt) return;
|
| CcTest::InitializeVM();
|
| v8::HandleScope scope(CcTest::isolate());
|
| @@ -2792,7 +2792,7 @@ TEST(IncrementalMarkingPreservesMonomorhpicIC) {
|
| }
|
|
|
|
|
| -TEST(IncrementalMarkingClearsMonomorhpicIC) {
|
| +TEST_TRACK_ALLOCATIONS(IncrementalMarkingClearsMonomorhpicIC) {
|
| if (i::FLAG_always_opt) return;
|
| CcTest::InitializeVM();
|
| v8::HandleScope scope(CcTest::isolate());
|
| @@ -2826,7 +2826,7 @@ TEST(IncrementalMarkingClearsMonomorhpicIC) {
|
| }
|
|
|
|
|
| -TEST(IncrementalMarkingClearsPolymorhpicIC) {
|
| +TEST_TRACK_ALLOCATIONS(IncrementalMarkingClearsPolymorhpicIC) {
|
| if (i::FLAG_always_opt) return;
|
| CcTest::InitializeVM();
|
| v8::HandleScope scope(CcTest::isolate());
|
| @@ -2961,7 +2961,7 @@ TEST(ReleaseStackTraceData) {
|
| }
|
|
|
|
|
| -TEST(Regression144230) {
|
| +TEST_TRACK_ALLOCATIONS(Regression144230) {
|
| i::FLAG_stress_compaction = false;
|
| CcTest::InitializeVM();
|
| Isolate* isolate = CcTest::i_isolate();
|
| @@ -3024,7 +3024,7 @@ TEST(Regression144230) {
|
| }
|
|
|
|
|
| -TEST(Regress159140) {
|
| +TEST_TRACK_ALLOCATIONS(Regress159140) {
|
| i::FLAG_allow_natives_syntax = true;
|
| i::FLAG_flush_code_incrementally = true;
|
| CcTest::InitializeVM();
|
| @@ -3086,7 +3086,7 @@ TEST(Regress159140) {
|
| }
|
|
|
|
|
| -TEST(Regress165495) {
|
| +TEST_TRACK_ALLOCATIONS(Regress165495) {
|
| i::FLAG_allow_natives_syntax = true;
|
| i::FLAG_flush_code_incrementally = true;
|
| CcTest::InitializeVM();
|
| @@ -3133,7 +3133,7 @@ TEST(Regress165495) {
|
| }
|
|
|
|
|
| -TEST(Regress169209) {
|
| +TEST_TRACK_ALLOCATIONS(Regress169209) {
|
| i::FLAG_stress_compaction = false;
|
| i::FLAG_allow_natives_syntax = true;
|
| i::FLAG_flush_code_incrementally = true;
|
| @@ -3221,7 +3221,7 @@ static inline void AllocateAllButNBytes(v8::internal::NewSpace* space,
|
| }
|
|
|
|
|
| -TEST(Regress169928) {
|
| +TEST_TRACK_ALLOCATIONS(Regress169928) {
|
| i::FLAG_allow_natives_syntax = true;
|
| i::FLAG_crankshaft = false;
|
| CcTest::InitializeVM();
|
| @@ -3252,7 +3252,6 @@ TEST(Regress169928) {
|
|
|
| v8::Local<v8::String> array_name = v8_str("mote");
|
| v8::Context::GetCurrent()->Global()->Set(array_name, v8::Int32::New(0));
|
| -
|
| // First make sure we flip spaces
|
| CcTest::heap()->CollectGarbage(NEW_SPACE);
|
|
|
| @@ -3294,7 +3293,7 @@ TEST(Regress169928) {
|
| }
|
|
|
|
|
| -TEST(Regress168801) {
|
| +TEST_TRACK_ALLOCATIONS(Regress168801) {
|
| i::FLAG_always_compact = true;
|
| i::FLAG_cache_optimized_code = false;
|
| i::FLAG_allow_natives_syntax = true;
|
| @@ -3350,7 +3349,7 @@ TEST(Regress168801) {
|
| }
|
|
|
|
|
| -TEST(Regress173458) {
|
| +TEST_TRACK_ALLOCATIONS(Regress173458) {
|
| i::FLAG_always_compact = true;
|
| i::FLAG_cache_optimized_code = false;
|
| i::FLAG_allow_natives_syntax = true;
|
| @@ -3411,7 +3410,7 @@ class DummyVisitor : public ObjectVisitor {
|
| };
|
|
|
|
|
| -TEST(DeferredHandles) {
|
| +TEST_TRACK_ALLOCATIONS(DeferredHandles) {
|
| CcTest::InitializeVM();
|
| Isolate* isolate = CcTest::i_isolate();
|
| Heap* heap = isolate->heap();
|
| @@ -3433,7 +3432,7 @@ TEST(DeferredHandles) {
|
| }
|
|
|
|
|
| -TEST(IncrementalMarkingStepMakesBigProgressWithLargeObjects) {
|
| +TEST_TRACK_ALLOCATIONS(IncrementalMarkingStepMakesBigProgressWithLargeObjects) {
|
| CcTest::InitializeVM();
|
| v8::HandleScope scope(CcTest::isolate());
|
| CompileRun("function f(n) {"
|
|
|