| Index: src/heap/heap-inl.h
|
| diff --git a/src/heap/heap-inl.h b/src/heap/heap-inl.h
|
| index 8863777e8f557eb3c3023210f7ba311337169d46..6255ce72b99514b6f4db609f61048f234666a215 100644
|
| --- a/src/heap/heap-inl.h
|
| +++ b/src/heap/heap-inl.h
|
| @@ -220,6 +220,14 @@ AllocationResult Heap::AllocateRaw(int size_in_bytes, AllocationSpace space,
|
| }
|
|
|
|
|
| +HeapObject* Heap::ForceAllocateLargeObject(int size_in_bytes,
|
| + Executability executable) {
|
| + AlwaysAllocateScope scope(isolate());
|
| + AllocationResult result = lo_space_->AllocateRaw(size_in_bytes, executable);
|
| + return HeapObject::cast(result.ToObjectChecked());
|
| +}
|
| +
|
| +
|
| void Heap::OnAllocationEvent(HeapObject* object, int size_in_bytes) {
|
| HeapProfiler* profiler = isolate_->heap_profiler();
|
| if (profiler->is_tracking_allocations()) {
|
|
|