Lines Matching full:heap
77 Heap* heap = CcTest::heap();
78 heap->ConfigureHeap(2*256*KB, 1*MB, 1*MB);
86 Object* obj = heap->AllocateFixedArray(array_length)->ToObjectChecked();
90 CHECK(heap->InSpace(*array, NEW_SPACE));
93 heap->CollectGarbage(OLD_POINTER_SPACE);
96 CHECK(heap->InSpace(*array, OLD_POINTER_SPACE));
102 Heap* heap = CcTest::heap();
103 heap->ConfigureHeap(2*256*KB, 1*MB, 1*MB);
111 Object* obj = heap->AllocateFixedArray(array_length)->ToObjectChecked();
115 CHECK(heap->InSpace(*array, NEW_SPACE));
118 SimulateFullSpace(heap->old_pointer_space());
121 heap->CollectGarbage(OLD_POINTER_SPACE);
129 Heap* heap = isolate->heap();
134 // call mark-compact when heap is empty
135 heap->CollectGarbage(OLD_POINTER_SPACE, "trigger 1");
142 maybe_array = heap->AllocateFixedArray(ARRAY_SIZE);
144 heap->CollectGarbage(NEW_SPACE, "trigger 2");
146 array = heap->AllocateFixedArray(ARRAY_SIZE)->ToObjectChecked();
152 maybe_mapp = heap->AllocateMap(JS_OBJECT_TYPE, JSObject::kHeaderSize);
154 heap->CollectGarbage(MAP_SPACE, "trigger 3");
155 mapp = heap->AllocateMap(JS_OBJECT_TYPE,
160 heap->InternalizeUtf8String("theFunction")->ToObjectChecked());
162 heap->AllocateSharedFunctionInfo(func_name)->ToObjectChecked());
164 heap->AllocateFunction(*isolate->function_map(),
166 heap->undefined_value())->ToObjectChecked());
168 Map::cast(heap->AllocateMap(JS_OBJECT_TYPE,
175 heap->AllocateJSObject(function)->ToObjectChecked());
176 heap->CollectGarbage(OLD_POINTER_SPACE, "trigger 4");
179 heap->InternalizeUtf8String("theFunction")->ToObjectChecked());
186 obj = JSObject::cast(heap->AllocateJSObject(function)->ToObjectChecked());
188 String::cast(heap->InternalizeUtf8String("theObject")->ToObjectChecked());
192 String::cast(heap->InternalizeUtf8String("theSlot")->ToObjectChecked());
197 heap->CollectGarbage(OLD_POINTER_SPACE, "trigger 5");
200 String::cast(heap->InternalizeUtf8String("theObject")->ToObjectChecked());
207 String::cast(heap->InternalizeUtf8String("theSlot")->ToObjectChecked());
234 } while (CcTest::heap()->map_space()->MapPointersEncodable());
240 CcTest::heap()->CollectAllGarbage(Heap::kForceCompactionMask);
242 CHECK(CcTest::heap()->map_space()->MapPointersEncodable());
261 Heap* heap = CcTest::heap();
266 global_handles->Create(heap->AllocateFixedArray(1)->ToObjectChecked());
268 global_handles->Create(heap->AllocateFixedArray(1)->ToObjectChecked());
270 global_handles->Create(heap->AllocateFixedArray(1)->ToObjectChecked());
282 global_handles->Create(heap->AllocateFixedArray(1)->ToObjectChecked());
284 global_handles->Create(heap->AllocateFixedArray(1)->ToObjectChecked());
286 global_handles->Create(heap->AllocateFixedArray(1)->ToObjectChecked());
316 heap->CollectGarbage(OLD_POINTER_SPACE);
344 heap->CollectGarbage(OLD_POINTER_SPACE);
357 heap->CollectGarbage(OLD_POINTER_SPACE);
393 CcTest::heap()->AllocateFixedArray(1)->ToObjectChecked());