| Index: src/ia32/builtins-ia32.cc
|
| diff --git a/src/ia32/builtins-ia32.cc b/src/ia32/builtins-ia32.cc
|
| index c689afb28a605c0b2ad346211763bef1241af308..f7576aa1cd4890d73602cce0377c8daecdf7989e 100644
|
| --- a/src/ia32/builtins-ia32.cc
|
| +++ b/src/ia32/builtins-ia32.cc
|
| @@ -1001,12 +1001,13 @@ 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.
|
| @@ -1554,12 +1555,13 @@ 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,
|
| + MacroAssembler::NEW_SPACE);
|
|
|
| // Set the map.
|
| __ LoadGlobalFunctionInitialMap(edi, ecx);
|
|
|