Index: src/ia32/builtins-ia32.cc |
diff --git a/src/ia32/builtins-ia32.cc b/src/ia32/builtins-ia32.cc |
index 7ce211de45894d79fecbc607199958af0557d636..f459f66bed08f05712ccf8f3d1568543f877b4d7 100644 |
--- a/src/ia32/builtins-ia32.cc |
+++ b/src/ia32/builtins-ia32.cc |
@@ -1007,12 +1007,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. |
@@ -1592,12 +1587,12 @@ void Builtins::Generate_StringConstructCode(MacroAssembler* masm) { |
// Allocate a JSValue and put the tagged pointer into eax. |
Label gc_required; |
- __ AllocateInNewSpace(JSValue::kSize, |
- eax, // Result. |
- ecx, // New allocation top (we ignore it). |
- no_reg, |
- &gc_required, |
- TAG_OBJECT); |
+ __ Allocate(JSValue::kSize, |
+ eax, // Result. |
+ ecx, // New allocation top (we ignore it). |
+ no_reg, |
+ &gc_required, |
+ TAG_OBJECT); |
// Set the map. |
__ LoadGlobalFunctionInitialMap(edi, ecx); |