Index: src/ia32/builtins-ia32.cc |
diff --git a/src/ia32/builtins-ia32.cc b/src/ia32/builtins-ia32.cc |
index c689afb28a605c0b2ad346211763bef1241af308..2f4a88bc523b2f0a7c476965f2e4d2bb2edc4182 100644 |
--- a/src/ia32/builtins-ia32.cc |
+++ b/src/ia32/builtins-ia32.cc |
@@ -1001,12 +1001,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. |
@@ -1554,12 +1549,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); |