| Index: src/x64/builtins-x64.cc
|
| diff --git a/src/x64/builtins-x64.cc b/src/x64/builtins-x64.cc
|
| index 5d87ee795bfa6a159171d506f5b6006d19d6e46b..9ece9dd95ca60852e7996b814ab7ca21d7cf201d 100644
|
| --- a/src/x64/builtins-x64.cc
|
| +++ b/src/x64/builtins-x64.cc
|
| @@ -1083,12 +1083,7 @@ 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);
|
|
|
| // Allocated the JSArray. Now initialize the fields except for the elements
|
| // array.
|
| @@ -1579,12 +1574,12 @@ 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);
|
|
|
| // Set the map.
|
| __ LoadGlobalFunctionInitialMap(rdi, rcx);
|
|
|