| Index: src/x64/code-stubs-x64.cc
|
| diff --git a/src/x64/code-stubs-x64.cc b/src/x64/code-stubs-x64.cc
|
| index 4ff163572bbc1219b4d44dbce3820e6d1cdee3ba..7ba345942770eb7a1a56b9d6a7e510422744f7ef 100644
|
| --- a/src/x64/code-stubs-x64.cc
|
| +++ b/src/x64/code-stubs-x64.cc
|
| @@ -2663,7 +2663,7 @@ void ArgumentsAccessStub::GenerateNewNonStrictFast(MacroAssembler* masm) {
|
| __ addq(r8, Immediate(Heap::kArgumentsObjectSize));
|
|
|
| // Do the allocation of all three objects in one go.
|
| - __ AllocateInNewSpace(r8, rax, rdx, rdi, &runtime, TAG_OBJECT);
|
| + __ Allocate(r8, rax, rdx, rdi, &runtime, TAG_OBJECT);
|
|
|
| // rax = address of new object(s) (tagged)
|
| // rcx = argument count (untagged)
|
| @@ -2881,7 +2881,7 @@ void ArgumentsAccessStub::GenerateNewStrict(MacroAssembler* masm) {
|
| __ addq(rcx, Immediate(Heap::kArgumentsObjectSizeStrict));
|
|
|
| // Do the allocation of both objects in one go.
|
| - __ AllocateInNewSpace(rcx, rax, rdx, rbx, &runtime, TAG_OBJECT);
|
| + __ Allocate(rcx, rax, rdx, rbx, &runtime, TAG_OBJECT);
|
|
|
| // Get the arguments boilerplate from the current native context.
|
| __ movq(rdi, Operand(rsi, Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX)));
|
| @@ -3414,14 +3414,14 @@ void RegExpConstructResultStub::Generate(MacroAssembler* masm) {
|
| // Allocate RegExpResult followed by FixedArray with size in rbx.
|
| // JSArray: [Map][empty properties][Elements][Length-smi][index][input]
|
| // Elements: [Map][Length][..elements..]
|
| - __ AllocateInNewSpace(JSRegExpResult::kSize + FixedArray::kHeaderSize,
|
| - times_pointer_size,
|
| - rbx, // In: Number of elements.
|
| - rax, // Out: Start of allocation (tagged).
|
| - rcx, // Out: End of allocation.
|
| - rdx, // Scratch register
|
| - &slowcase,
|
| - TAG_OBJECT);
|
| + __ Allocate(JSRegExpResult::kSize + FixedArray::kHeaderSize,
|
| + times_pointer_size,
|
| + rbx, // In: Number of elements.
|
| + rax, // Out: Start of allocation (tagged).
|
| + rcx, // Out: End of allocation.
|
| + rdx, // Scratch register
|
| + &slowcase,
|
| + TAG_OBJECT);
|
| // rax: Start of allocated area, object-tagged.
|
| // rbx: Number of array elements as int32.
|
| // r8: Number of array elements as smi.
|
|
|