| Index: src/x64/builtins-x64.cc
|
| diff --git a/src/x64/builtins-x64.cc b/src/x64/builtins-x64.cc
|
| index 5d87ee795bfa6a159171d506f5b6006d19d6e46b..1c9883d178dc5a09e8bffb4606db9629bdee27c9 100644
|
| --- a/src/x64/builtins-x64.cc
|
| +++ b/src/x64/builtins-x64.cc
|
| @@ -1083,12 +1083,8 @@ static void AllocateEmptyJSArray(MacroAssembler* masm,
|
| if (initial_capacity > 0) {
|
| size += FixedArray::SizeFor(initial_capacity);
|
| }
|
| - __ AllocateInNewSpace(size,
|
| - result,
|
| - scratch2,
|
| - scratch3,
|
| - gc_required,
|
| - TAG_OBJECT);
|
| + __ Allocate(size, result, scratch2, scratch3, gc_required, TAG_OBJECT,
|
| + MacroAssembler::NEW_SPACE);
|
|
|
| // Allocated the JSArray. Now initialize the fields except for the elements
|
| // array.
|
| @@ -1579,12 +1575,13 @@ void Builtins::Generate_StringConstructCode(MacroAssembler* masm) {
|
|
|
| // Allocate a JSValue and put the tagged pointer into rax.
|
| Label gc_required;
|
| - __ AllocateInNewSpace(JSValue::kSize,
|
| - rax, // Result.
|
| - rcx, // New allocation top (we ignore it).
|
| - no_reg,
|
| - &gc_required,
|
| - TAG_OBJECT);
|
| + __ Allocate(JSValue::kSize,
|
| + rax, // Result.
|
| + rcx, // New allocation top (we ignore it).
|
| + no_reg,
|
| + &gc_required,
|
| + TAG_OBJECT,
|
| + MacroAssembler::NEW_SPACE);
|
|
|
| // Set the map.
|
| __ LoadGlobalFunctionInitialMap(rdi, rcx);
|
|
|