Index: src/x64/builtins-x64.cc |
diff --git a/src/x64/builtins-x64.cc b/src/x64/builtins-x64.cc |
index 144962b8f4485c11f154f1e1001747ec481b0d90..fa99049466c0ef8df23557aaeebbbaa29cde48b4 100644 |
--- a/src/x64/builtins-x64.cc |
+++ b/src/x64/builtins-x64.cc |
@@ -1091,12 +1091,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. |
@@ -1619,12 +1614,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); |