| Index: src/x64/stub-cache-x64.cc
|
| diff --git a/src/x64/stub-cache-x64.cc b/src/x64/stub-cache-x64.cc
|
| index 2b014e35d6bd99b69c79ffc406726e063934a1c4..a5542cf57a40f19072b27922cdde57a8fbbfe717 100644
|
| --- a/src/x64/stub-cache-x64.cc
|
| +++ b/src/x64/stub-cache-x64.cc
|
| @@ -2961,8 +2961,8 @@ Handle<Code> ConstructStubCompiler::CompileConstructStub(
|
| __ cmpq(rcx, Immediate(instance_size));
|
| __ Check(equal, "Instance size of initial map changed.");
|
| #endif
|
| - __ AllocateInNewSpace(instance_size, rdx, rcx, no_reg,
|
| - &generic_stub_call, NO_ALLOCATION_FLAGS);
|
| + __ Allocate(instance_size, rdx, rcx, no_reg, &generic_stub_call,
|
| + NO_ALLOCATION_FLAGS, MacroAssembler::NEW_SPACE);
|
|
|
| // Allocated the JSObject, now initialize the fields and add the heap tag.
|
| // rbx: initial map
|
| @@ -3396,7 +3396,8 @@ void KeyedStoreStubCompiler::GenerateStoreFastElement(
|
| __ j(not_equal, &check_capacity);
|
|
|
| int size = FixedArray::SizeFor(JSArray::kPreallocatedArrayElements);
|
| - __ AllocateInNewSpace(size, rdi, rbx, r8, &slow, TAG_OBJECT);
|
| + __ Allocate(size, rdi, rbx, r8, &slow, TAG_OBJECT,
|
| + MacroAssembler::NEW_SPACE);
|
|
|
| // rax: value
|
| // rcx: key
|
| @@ -3530,7 +3531,8 @@ void KeyedStoreStubCompiler::GenerateStoreFastDoubleElement(
|
| __ j(not_equal, &check_capacity);
|
|
|
| int size = FixedDoubleArray::SizeFor(JSArray::kPreallocatedArrayElements);
|
| - __ AllocateInNewSpace(size, rdi, rbx, r8, &slow, TAG_OBJECT);
|
| + __ Allocate(size, rdi, rbx, r8, &slow, TAG_OBJECT,
|
| + MacroAssembler::NEW_SPACE);
|
|
|
| // rax: value
|
| // rcx: key
|
|
|