| Index: src/x64/builtins-x64.cc
|
| diff --git a/src/x64/builtins-x64.cc b/src/x64/builtins-x64.cc
|
| index a49497e27051e1ba6cfacf7f034c8272ddc1cbec..2da3de2b9a6ff85b7503d74e64a6a48b3e5f5c30 100644
|
| --- a/src/x64/builtins-x64.cc
|
| +++ b/src/x64/builtins-x64.cc
|
| @@ -220,12 +220,12 @@ static void Generate_JSConstructStubHelper(MacroAssembler* masm,
|
| __ movzxbq(rdi, FieldOperand(rax, Map::kInstanceSizeOffset));
|
| __ shl(rdi, Immediate(kPointerSizeLog2));
|
| // rdi: size of new object
|
| - __ AllocateInNewSpace(rdi,
|
| - rbx,
|
| - rdi,
|
| - no_reg,
|
| - &rt_call,
|
| - NO_ALLOCATION_FLAGS);
|
| + __ Allocate(rdi,
|
| + rbx,
|
| + rdi,
|
| + no_reg,
|
| + &rt_call,
|
| + NO_ALLOCATION_FLAGS);
|
| // Allocated the JSObject, now initialize the fields.
|
| // rax: initial map
|
| // rbx: JSObject (not HeapObject tagged - the actual address).
|
| @@ -287,14 +287,14 @@ static void Generate_JSConstructStubHelper(MacroAssembler* masm,
|
| // rbx: JSObject
|
| // rdi: start of next object (will be start of FixedArray)
|
| // rdx: number of elements in properties array
|
| - __ AllocateInNewSpace(FixedArray::kHeaderSize,
|
| - times_pointer_size,
|
| - rdx,
|
| - rdi,
|
| - rax,
|
| - no_reg,
|
| - &undo_allocation,
|
| - RESULT_CONTAINS_TOP);
|
| + __ Allocate(FixedArray::kHeaderSize,
|
| + times_pointer_size,
|
| + rdx,
|
| + rdi,
|
| + rax,
|
| + no_reg,
|
| + &undo_allocation,
|
| + RESULT_CONTAINS_TOP);
|
|
|
| // Initialize the FixedArray.
|
| // rbx: JSObject
|
| @@ -1212,14 +1212,14 @@ static void AllocateJSArray(MacroAssembler* masm,
|
| // requested elements.
|
| SmiIndex index =
|
| masm->SmiToIndex(kScratchRegister, array_size, kPointerSizeLog2);
|
| - __ AllocateInNewSpace(JSArray::kSize + FixedArray::kHeaderSize,
|
| - index.scale,
|
| - index.reg,
|
| - result,
|
| - elements_array_end,
|
| - scratch,
|
| - gc_required,
|
| - TAG_OBJECT);
|
| + __ Allocate(JSArray::kSize + FixedArray::kHeaderSize,
|
| + index.scale,
|
| + index.reg,
|
| + result,
|
| + elements_array_end,
|
| + scratch,
|
| + gc_required,
|
| + TAG_OBJECT);
|
|
|
| // Allocated the JSArray. Now initialize the fields except for the elements
|
| // array.
|
|
|