| Index: src/x64/builtins-x64.cc
|
| diff --git a/src/x64/builtins-x64.cc b/src/x64/builtins-x64.cc
|
| index 0b70c1a0c0b311482238e978e80ce27948d8097e..d3c98a4680eb98fe6293e92e7b8d8f841bb7e24e 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
|
| @@ -1216,14 +1216,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.
|
|
|