Index: src/x64/macro-assembler-x64.h |
diff --git a/src/x64/macro-assembler-x64.h b/src/x64/macro-assembler-x64.h |
index 7827feb30170aa2b1179cdbb177d7787521062e9..38b34ba4b2c759c91a9a608a8583caef27b08670 100644 |
--- a/src/x64/macro-assembler-x64.h |
+++ b/src/x64/macro-assembler-x64.h |
@@ -1024,22 +1024,22 @@ class MacroAssembler: public Assembler { |
// --------------------------------------------------------------------------- |
// Allocation support |
- // Allocate an object in new space. If the new space is exhausted control |
- // continues at the gc_required label. The allocated object is returned in |
- // result and end of the new object is returned in result_end. The register |
- // scratch can be passed as no_reg in which case an additional object |
- // reference will be added to the reloc info. The returned pointers in result |
- // and result_end have not yet been tagged as heap objects. If |
- // result_contains_top_on_entry is true the content of result is known to be |
- // the allocation top on entry (could be result_end from a previous call to |
- // AllocateInNewSpace). If result_contains_top_on_entry is true scratch |
+ // Allocate an object in new space or old pointer space. If the given space |
+ // is exhausted control continues at the gc_required label. The allocated |
+ // object is returned in result and end of the new object is returned in |
+ // result_end. The register scratch can be passed as no_reg in which case |
+ // an additional object reference will be added to the reloc info. The |
+ // returned pointers in result and result_end have not yet been tagged as |
+ // heap objects. If result_contains_top_on_entry is true the content of |
+ // result is known to be the allocation top on entry (could be result_end |
+ // from a previous call). If result_contains_top_on_entry is true scratch |
// should be no_reg as it is never used. |
- void AllocateInNewSpace(int object_size, |
- Register result, |
- Register result_end, |
- Register scratch, |
- Label* gc_required, |
- AllocationFlags flags); |
+ void Allocate(int object_size, |
+ Register result, |
+ Register result_end, |
+ Register scratch, |
+ Label* gc_required, |
+ AllocationFlags flags); |
void AllocateInNewSpace(int header_size, |
ScaleFactor element_size, |
@@ -1388,9 +1388,12 @@ class MacroAssembler: public Assembler { |
void LoadAllocationTopHelper(Register result, |
Register scratch, |
AllocationFlags flags); |
+ |
// Update allocation top with value in result_end register. |
// If scratch is valid, it contains the address of the allocation top. |
- void UpdateAllocationTopHelper(Register result_end, Register scratch); |
+ void UpdateAllocationTopHelper(Register result_end, |
+ Register scratch, |
+ AllocationFlags flags); |
// Helper for PopHandleScope. Allowed to perform a GC and returns |
// NULL if gc_allowed. Does not perform a GC if !gc_allowed, and |