Index: src/heap/heap-inl.h |
diff --git a/src/heap/heap-inl.h b/src/heap/heap-inl.h |
index e658224aca11190003676d9bbd2df945e1c88508..203484368705727fe5dab16595e808a290993ddd 100644 |
--- a/src/heap/heap-inl.h |
+++ b/src/heap/heap-inl.h |
@@ -221,6 +221,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()) { |