Lines Matching full:heap
45 MarkCompactCollector* collector = CcTest::heap()->mark_compact_collector();
46 IncrementalMarking* marking = CcTest::heap()->incremental_marking();
65 CHECK(CcTest::heap()->Contains(map));
67 CHECK_EQ(CcTest::heap()->meta_map(), map->map());
75 Heap* heap = CcTest::heap();
76 CheckMap(heap->meta_map(), MAP_TYPE, Map::kSize);
77 CheckMap(heap->heap_number_map(), HEAP_NUMBER_TYPE, HeapNumber::kSize);
78 CheckMap(heap->fixed_array_map(), FIXED_ARRAY_TYPE, kVariableSizeSentinel);
79 CheckMap(heap->string_map(), STRING_TYPE, kVariableSizeSentinel);
103 Object* obj = CcTest::heap()->NumberFromDouble(value)->ToObjectChecked();
123 Heap* heap = isolate->heap();
124 Object* code = heap->CreateCode(
138 Object* copy = heap->CreateCode(
154 Heap* heap = isolate->heap();
157 Object* value = heap->NumberFromDouble(1.000123)->ToObjectChecked();
162 value = heap->NumberFromDouble(1.0)->ToObjectChecked();
167 value = heap->NumberFromInt32(1024)->ToObjectChecked();
172 value = heap->NumberFromInt32(Smi::kMinValue)->ToObjectChecked();
177 value = heap->NumberFromInt32(Smi::kMaxValue)->ToObjectChecked();
184 value = heap->NumberFromInt32(Smi::kMinValue - 1)->ToObjectChecked();
191 heap->NumberFromUint32(static_cast<uint32_t>(Smi::kMaxValue) + 1);
198 maybe_value = heap->NumberFromUint32(static_cast<uint32_t>(1) << 31);
206 CHECK(heap->nan_value()->IsNumber());
207 CHECK(std::isnan(heap->nan_value()->Number()));
218 CheckOddball(isolate, heap->true_value(), "true");
219 CheckOddball(isolate, heap->false_value(), "false");
220 CheckOddball(isolate, heap->null_value(), "null");
221 CheckOddball(isolate, heap->undefined_value(), "undefined");
254 Heap* heap = isolate->heap();
259 heap->CollectGarbage(NEW_SPACE);
287 heap->CollectGarbage(NEW_SPACE);
306 heap->CollectGarbage(NEW_SPACE);
355 Heap* heap = isolate->heap();
377 heap->CollectGarbage(NEW_SPACE);
408 Heap* heap = isolate->heap();
432 heap->PerformScavenge();
449 Heap* heap = isolate->heap();
469 heap->CollectGarbage(OLD_POINTER_SPACE);
470 heap->CollectGarbage(NEW_SPACE);
471 CHECK(!heap->InNewSpace(*h1) && !heap->InNewSpace(*h2));
480 heap->CollectAllGarbage(Heap::kAbortIncrementalMarkingMask);
495 Heap* heap = isolate->heap();
515 heap->PerformScavenge();
520 heap->CollectGarbage(OLD_POINTER_SPACE);
593 MaybeObject* maybe_a = CcTest::heap()->InternalizeUtf8String(string);
598 MaybeObject* maybe_b = CcTest::heap()->InternalizeUtf8String(string);
647 String* object_string = String::cast(CcTest::heap()->Object_string());
753 // We just initialized the VM, no heap allocation failure yet.
793 String* object_string = String::cast(CcTest::heap()->Object_string());
875 static int ObjectsFoundInHeap(Heap* heap, Handle<Object> objs[], int size) {
876 // Count the number of objects found in the heap.
878 heap->EnsureHeapIsIterable();
879 HeapIterator iterator(heap);
927 CHECK_EQ(objs_count, ObjectsFoundInHeap(CcTest::heap(), objs, objs_count));
957 Heap* heap = isolate->heap();
960 heap->CollectAllGarbage(Heap::kAbortIncrementalMarkingMask);
986 NewSpace* new_space = heap->new_space();
990 CHECK(!heap->always_allocate());
991 Object* array = heap->AllocateFixedArray(allocation_len)->ToObjectChecked();
1001 CHECK(!heap->always_allocate());
1002 Object* array = heap->AllocateFixedArray(fixed_array_len)->ToObjectChecked();
1006 Object* object = heap->AllocateJSObjectFromMap(*my_map)->ToObjectChecked();
1018 Address old_pointer_space_top = heap->old_pointer_space()->top();
1020 Object* clone_obj = heap->CopyJSObject(jsobject)->ToObjectChecked();
1026 CHECK(heap->old_pointer_space()->Contains(clone->address()));
1060 CcTest::heap()->CollectAllGarbage(Heap::kAbortIncrementalMarkingMask);
1061 CcTest::heap()->CollectAllGarbage(Heap::kAbortIncrementalMarkingMask);
1067 CcTest::heap()->CollectAllGarbage(Heap::kAbortIncrementalMarkingMask);
1110 CcTest::heap()->CollectAllGarbage(Heap::kAbortIncrementalMarkingMask);
1115 CcTest::heap()->CollectAllGarbage(Heap::kAbortIncrementalMarkingMask);
1125 CcTest::heap()->CollectAllGarbage(Heap::kAbortIncrementalMarkingMask);
1126 CcTest::heap()->CollectAllGarbage(Heap::kAbortIncrementalMarkingMask);
1132 CcTest::heap()->CollectAllGarbage(Heap::kAbortIncrementalMarkingMask);
1175 CcTest::heap()->CollectAllGarbage(Heap::kAbortIncrementalMarkingMask);
1176 CcTest::heap()->CollectAllGarbage(Heap::kAbortIncrementalMarkingMask);
1183 CcTest::heap()->CollectAllGarbage(Heap::kNoGCFlags);
1198 CcTest::heap()->CollectAllGarbage(Heap::kNoGCFlags);
1208 CcTest::heap()->CollectAllGarbage(Heap::kNoGCFlags);
1237 CcTest::heap()->CollectAllGarbage(Heap::kAbortIncrementalMarkingMask);
1274 CcTest::heap()->CollectGarbage(NEW_SPACE, "test scavenge while marking");
1277 CcTest::heap()->CollectAllGarbage(Heap::kNoGCFlags);
1291 Heap* heap = isolate->heap();
1314 heap->CollectAllGarbage(Heap::kAbortIncrementalMarkingMask);
1315 heap->CollectAllGarbage(Heap::kAbortIncrementalMarkingMask);
1344 heap->CollectAllGarbage(Heap::kNoGCFlags);
1353 Object* object = CcTest::heap()->native_contexts_list();
1386 Heap* heap = isolate->heap();
1399 heap->CollectAllGarbage(Heap::kNoGCFlags);
1433 CcTest::heap()->PerformScavenge();
1439 heap->CollectAllGarbage(Heap::kNoGCFlags);
1445 CcTest::heap()->PerformScavenge();
1448 CcTest::heap()->CollectAllGarbage(Heap::kNoGCFlags);
1452 CcTest::heap()->PerformScavenge();
1455 CcTest::heap()->CollectAllGarbage(Heap::kNoGCFlags);
1462 CcTest::heap()->NotifyContextDisposed();
1463 CcTest::heap()->CollectAllGarbage(Heap::kNoGCFlags);
1469 *unsafe = CcTest::heap()->undefined_value();
1474 CcTest::heap()->PerformScavenge();
1479 CcTest::heap()->CollectAllGarbage(Heap::kNoGCFlags);
1490 Heap* heap = isolate->heap();
1492 Handle<Object> object(heap->native_contexts_list(), isolate);
1495 if (count == n) heap->CollectAllGarbage(Heap::kNoGCFlags);
1517 if (count == n) isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags);
1580 // Get initial heap size after several full GCs, which will stabilize
1581 // the heap size and return with sweeping finished completely.
1582 CcTest::heap()->CollectAllGarbage(Heap::kNoGCFlags);
1583 CcTest::heap()->CollectAllGarbage(Heap::kNoGCFlags);
1584 CcTest::heap()->CollectAllGarbage(Heap::kNoGCFlags);
1585 CcTest::heap()->CollectAllGarbage(Heap::kNoGCFlags);
1586 CcTest::heap()->CollectAllGarbage(Heap::kNoGCFlags);
1587 CHECK(CcTest::heap()->old_pointer_space()->IsLazySweepingComplete());
1588 int initial_size = static_cast<int>(CcTest::heap()->SizeOfObjects());
1596 CcTest::heap()->AllocateFixedArray(8192, TENURED)->ToObjectChecked();
1598 static_cast<int>(CcTest::heap()->SizeOfObjects()));
1602 // The heap size should go back to initial size after a full GC, even
1604 CcTest::heap()->CollectAllGarbage(Heap::kNoGCFlags);
1608 CHECK_EQ(initial_size, static_cast<int>(CcTest::heap()->SizeOfObjects()));
1610 // Advancing the sweeper step-wise should not change the heap size.
1611 while (!CcTest::heap()->old_pointer_space()->IsLazySweepingComplete()) {
1612 CcTest::heap()->old_pointer_space()->AdvanceSweeper(KB);
1613 CHECK_EQ(initial_size, static_cast<int>(CcTest::heap()->SizeOfObjects()));
1620 CcTest::heap()->EnsureHeapIsIterable();
1621 intptr_t size_of_objects_1 = CcTest::heap()->SizeOfObjects();
1622 HeapIterator iterator(CcTest::heap());
1634 // on the heap.
1637 PrintF("Heap::SizeOfObjects: %" V8_PTR_PREFIX "d, "
1644 PrintF("Heap::SizeOfObjects: %" V8_PTR_PREFIX "d, "
1656 Heap* heap = new_space->heap();
1657 Isolate* isolate = heap->isolate();
1664 CHECK(heap->InNewSpace(*factory->NewFixedArray(32, NOT_TENURED)));
1671 Heap* heap = CcTest::heap();
1672 NewSpace* new_space = heap->new_space();
1674 if (heap->ReservedSemiSpaceSize() == heap->InitialSemiSpaceSize() ||
1675 heap->MaxSemiSpaceSize() == heap->InitialSemiSpaceSize()) {
1701 heap->CollectGarbage(NEW_SPACE);
1722 Heap* heap = CcTest::heap();
1723 if (heap->ReservedSemiSpaceSize() == heap->InitialSemiSpaceSize() ||
1724 heap->MaxSemiSpaceSize() == heap->InitialSemiSpaceSize()) {
1732 NewSpace* new_space = heap->new_space();
1739 heap->CollectAllAvailableGarbage();
1747 HeapIterator iterator(CcTest::heap());
1770 CcTest::heap()->CollectAllAvailableGarbage();
1793 CcTest::heap()->CollectAllAvailableGarbage();
1796 CcTest::heap()->CollectAllAvailableGarbage();
1816 CcTest::heap()->CollectAllAvailableGarbage();
1839 CcTest::heap()->CollectAllAvailableGarbage();
1842 CcTest::heap()->CollectAllAvailableGarbage();
1860 CcTest::heap()->CollectAllAvailableGarbage();
1883 CcTest::heap()->CollectAllAvailableGarbage();
1886 CcTest::heap()->CollectAllAvailableGarbage();
1904 CcTest::heap()->CollectAllAvailableGarbage();
1931 CcTest::heap()->CollectAllAvailableGarbage();
1934 CcTest::heap()->CollectAllAvailableGarbage();
1962 IncrementalMarking* marking = CcTest::heap()->incremental_marking();
1990 CcTest::heap()->incremental_marking()->set_should_hurry(true);
1991 CcTest::heap()->CollectGarbage(OLD_POINTER_SPACE);
2018 CcTest::heap()->CollectAllGarbage(Heap::kAbortIncrementalMarkingMask);
2034 PagedSpace* space = CcTest::heap()->old_pointer_space();
2050 CcTest::heap()->CollectAllGarbage(Heap::kNoGCFlags);
2084 IncrementalMarking* marking = CcTest::heap()->incremental_marking();
2088 // The following two calls will increment CcTest::heap()->global_ic_age().
2102 CcTest::heap()->CollectAllGarbage(Heap::kNoGCFlags,
2106 CHECK_EQ(CcTest::heap()->global_ic_age(), f->shared()->ic_age());
2141 CcTest::heap()->incremental_marking()->Abort();
2143 // The following two calls will increment CcTest::heap()->global_ic_age().
2149 CHECK_EQ(CcTest::heap()->global_ic_age(), f->shared()->ic_age());
2163 SimulateFullSpace(CcTest::heap()->new_space());
2181 CHECK(CcTest::heap()->InNewSpace(*o));
2192 CcTest::heap()->SetNewSpaceHighPromotionModeActive(true);
2213 CHECK(CcTest::heap()->InOldDataSpace(o->RawFastPropertyAt(0)));
2214 CHECK(CcTest::heap()->InOldPointerSpace(o->RawFastPropertyAt(1)));
2215 CHECK(CcTest::heap()->InOldDataSpace(o->RawFastPropertyAt(2)));
2216 CHECK(CcTest::heap()->InOldPointerSpace(o->RawFastPropertyAt(3)));
2217 CHECK(CcTest::heap()->InOldDataSpace(o->RawFastPropertyAt(4)));
2218 CHECK(CcTest::heap()->InOldPointerSpace(o->RawFastPropertyAt(5)));
2229 CcTest::heap()->SetNewSpaceHighPromotionModeActive(true);
2250 CHECK(CcTest::heap()->InOldPointerSpace(o->RawFastPropertyAt(0)));
2251 CHECK(CcTest::heap()->InOldPointerSpace(o->RawFastPropertyAt(1)));
2252 CHECK(CcTest::heap()->InOldDataSpace(o->RawFastPropertyAt(2)));
2253 CHECK(CcTest::heap()->InOldDataSpace(o->RawFastPropertyAt(3)));
2254 CHECK(CcTest::heap()->InOldPointerSpace(o->RawFastPropertyAt(4)));
2255 CHECK(CcTest::heap()->InOldDataSpace(o->RawFastPropertyAt(5)));
2266 CcTest::heap()->SetNewSpaceHighPromotionModeActive(true);
2280 CHECK(CcTest::heap()->InOldPointerSpace(o->elements()));
2281 CHECK(CcTest::heap()->InOldPointerSpace(*o));
2292 CcTest::heap()->SetNewSpaceHighPromotionModeActive(true);
2306 CHECK(CcTest::heap()->InOldPointerSpace(*o));
2307 CHECK(CcTest::heap()->InOldPointerSpace(o->RawFastPropertyAt(0)));
2308 CHECK(CcTest::heap()->InOldDataSpace(o->RawFastPropertyAt(1)));
2311 CHECK(CcTest::heap()->InOldPointerSpace(inner_object));
2312 CHECK(CcTest::heap()->InOldDataSpace(inner_object->RawFastPropertyAt(0)));
2313 CHECK(CcTest::heap()->InOldPointerSpace(inner_object->RawFastPropertyAt(1)));
2324 CcTest::heap()->SetNewSpaceHighPromotionModeActive(true);
2338 CHECK(CcTest::heap()->InOldPointerSpace(*o));
2339 CHECK(CcTest::heap()->InOldDataSpace(o->properties()));
2350 CcTest::heap()->SetNewSpaceHighPromotionModeActive(true);
2364 CHECK(CcTest::heap()->InOldDataSpace(o->elements()));
2365 CHECK(CcTest::heap()->InOldPointerSpace(*o));
2376 CcTest::heap()->SetNewSpaceHighPromotionModeActive(true);
2396 CHECK(CcTest::heap()->InOldPointerSpace(*o));
2397 CHECK(CcTest::heap()->InOldPointerSpace(*int_array_handle));
2398 CHECK(CcTest::heap()->InOldPointerSpace(int_array_handle->elements()));
2399 CHECK(CcTest::heap()->InOldPointerSpace(*double_array_handle));
2400 CHECK(CcTest::heap()->InOldDataSpace(double_array_handle->elements()));
2411 CcTest::heap()->SetNewSpaceHighPromotionModeActive(true);
2431 CHECK(CcTest::heap()->InOldPointerSpace(*o));
2432 CHECK(CcTest::heap()->InOldPointerSpace(*int_array_handle_1));
2433 CHECK(CcTest::heap()->InOldPointerSpace(int_array_handle_1->elements()));
2434 CHECK(CcTest::heap()->InOldPointerSpace(*int_array_handle_2));
2435 CHECK(CcTest::heap()->InOldPointerSpace(int_array_handle_2->elements()));
2446 CcTest::heap()->SetNewSpaceHighPromotionModeActive(true);
2468 CHECK(CcTest::heap()->InOldPointerSpace(*o));
2469 CHECK(CcTest::heap()->InOldPointerSpace(*double_array_handle_1));
2470 CHECK(CcTest::heap()->InOldDataSpace(double_array_handle_1->elements()));
2471 CHECK(CcTest::heap()->InOldPointerSpace(*double_array_handle_2));
2472 CHECK(CcTest::heap()->InOldDataSpace(double_array_handle_2->elements()));
2499 CHECK(CcTest::heap()->InNewSpace(o->elements()));
2511 CcTest::heap()->SetNewSpaceHighPromotionModeActive(true);
2525 CHECK(CcTest::heap()->InOldPointerSpace(*o));
2565 CcTest::heap()->CollectAllGarbage(Heap::kNoGCFlags);
2599 CcTest::heap()->AgeInlineCaches();
2602 CcTest::heap()->CollectAllGarbage(Heap::kNoGCFlags);
2643 CcTest::heap()->AgeInlineCaches();
2646 CcTest::heap()->CollectAllGarbage(Heap::kNoGCFlags);
2667 Heap* heap = isolate->heap();
2672 PagedSpace* old_pointer_space = heap->old_pointer_space();
2683 heap->CollectAllGarbage(Heap::kNoGCFlags, "triggered for preparation");
2688 heap->CollectAllGarbage(Heap::kNoGCFlags, "triggered by test 1");
2690 heap->CollectAllGarbage(Heap::kNoGCFlags, "triggered by test 2");
2700 heap->CollectAllAvailableGarbage("triggered really hard");
2711 Handle<String> slice(CcTest::heap()->empty_string());
2719 CHECK(CcTest::heap()->InNewSpace(*s));
2723 SimulateFullSpace(CcTest::heap()->new_space());
2727 CHECK(!CcTest::heap()->InNewSpace(*t));
2732 CcTest::heap()->CollectAllGarbage(Heap::kNoGCFlags);
2761 Heap* heap = CcTest::heap();
2777 internal_obj->GetHiddenProperty(heap->identity_hash_string()));
2825 CcTest::heap()->CollectAllGarbage(Heap::kNoGCFlags);
2867 CcTest::heap()->CollectAllGarbage(Heap::kNoGCFlags);
2901 CcTest::heap()->CollectAllGarbage(Heap::kNoGCFlags);
2942 CcTest::heap()->CollectAllGarbage(Heap::kNoGCFlags);
2982 CcTest::heap()->CollectAllAvailableGarbage();
2986 // CcTest::heap()->CollectAllAvailableGarbage();
2990 CcTest::heap()->CollectAllAvailableGarbage();
3048 Heap* heap = isolate->heap();
3056 SimulateFullSpace(heap->code_space());
3065 SimulateFullSpace(heap->code_space());
3081 heap->CollectAllGarbage(Heap::kNoGCFlags);
3093 call->shared()->set_ic_age(heap->global_ic_age() + 1);
3097 // Now we are ready to mess up the heap.
3098 heap->CollectAllGarbage(Heap::kReduceMemoryFootprintMask);
3100 // Either heap verification caught the problem already or we go kaboom once
3112 Heap* heap = isolate->heap();
3116 heap->CollectAllGarbage(Heap::kAbortIncrementalMarkingMask);
3162 heap->CollectAllGarbage(Heap::kNoGCFlags);
3174 Heap* heap = isolate->heap();
3178 heap->CollectAllGarbage(Heap::kAbortIncrementalMarkingMask);
3208 heap->CollectAllGarbage(Heap::kNoGCFlags);
3223 Heap* heap = isolate->heap();
3227 heap->CollectAllGarbage(Heap::kAbortIncrementalMarkingMask);
3286 heap->CollectAllGarbage(Heap::kNoGCFlags);
3291 // Helper function that simulates a fill new-space in the heap.
3300 node->set_size(space->heap(), new_linear_size);
3329 // prepare the heap
3337 CcTest::heap()->CollectGarbage(NEW_SPACE);
3344 AllocateAllButNBytes(CcTest::heap()->new_space(),
3357 MaybeObject* maybe_object = CcTest::heap()->AllocateRaw(
3363 CcTest::heap()->CreateFillerObjectAt(addr_obj,
3384 Heap* heap = isolate->heap();
3388 heap->CollectAllGarbage(Heap::kAbortIncrementalMarkingMask);
3391 SimulateFullSpace(heap->code_space());
3427 // This cycle will bust the heap and subsequent cycles will go ballistic.
3428 heap->CollectAllGarbage(Heap::kNoGCFlags);
3429 heap->CollectAllGarbage(Heap::kNoGCFlags);
3440 Heap* heap = isolate->heap();
3444 heap->CollectAllGarbage(Heap::kAbortIncrementalMarkingMask);
3447 SimulateFullSpace(heap->code_space());
3482 // This cycle will bust the heap and subsequent cycles will go ballistic.
3483 heap->CollectAllGarbage(Heap::kNoGCFlags);
3484 heap->CollectAllGarbage(Heap::kNoGCFlags);
3497 Heap* heap = isolate->heap();
3501 Handle<Object> init(heap->empty_string(), isolate);
3503 Handle<Object> obj(heap->empty_string(), isolate);
3524 IncrementalMarking* marking = CcTest::heap()->incremental_marking();
3552 CcTest::heap()->DisableInlineAllocation();
3556 CcTest::heap()->SetNewSpaceHighPromotionModeActive(true);
3560 CcTest::heap()->EnableInlineAllocation();
3565 static int AllocationSitesCount(Heap* heap) {
3567 for (Object* site = heap->allocation_sites_list();
3581 v8::internal::Heap* heap = CcTest::heap();
3592 int count = AllocationSitesCount(heap);
3599 int new_count = AllocationSitesCount(heap);
3603 AllocationSite::cast(heap->allocation_sites_list())));
3622 heap->CollectAllGarbage(false);