Index: src/heap.h |
diff --git a/src/heap.h b/src/heap.h |
index 5e08b3a6da70f0249695b73e1ad0b7589dd547dd..fa5517cd9cecc4927e0ce79e7921b76ec91b93b4 100644 |
--- a/src/heap.h |
+++ b/src/heap.h |
@@ -996,15 +996,6 @@ class Heap { |
// data and clearing the resource pointer. |
inline void FinalizeExternalString(String* string); |
- // Allocates an uninitialized object. The memory is non-executable if the |
- // hardware and OS allow. |
- // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
- // failed. |
- // Please note this function does not perform a garbage collection. |
- MUST_USE_RESULT inline MaybeObject* AllocateRaw(int size_in_bytes, |
- AllocationSpace space, |
- AllocationSpace retry_space); |
- |
// Initialize a filler object to keep the ability to iterate over the heap |
// when shortening objects. |
void CreateFillerObjectAt(Address addr, int size); |
@@ -2001,6 +1992,14 @@ class Heap { |
return (pretenure == TENURED) ? preferred_old_space : NEW_SPACE; |
} |
+ // Allocates an uninitialized object. The memory is non-executable if the |
+ // hardware and OS allow. This is the single choke-point for allocations |
+ // performed by the runtime and should not be bypassed (to extend this to |
+ // inlined allocations, use the Heap::DisableInlineAllocation() support). |
+ MUST_USE_RESULT inline MaybeObject* AllocateRaw(int size_in_bytes, |
+ AllocationSpace space, |
+ AllocationSpace retry_space); |
+ |
// Allocate an uninitialized fixed array. |
MUST_USE_RESULT MaybeObject* AllocateRawFixedArray( |
int length, PretenureFlag pretenure); |