| Index: src/arm/builtins-arm.cc
|
| diff --git a/src/arm/builtins-arm.cc b/src/arm/builtins-arm.cc
|
| index b2c2193a0a9d417c9dd5acb03a03876ae57bd432..1fda31312d4d41b42c87e184baa6397f01c9467e 100644
|
| --- a/src/arm/builtins-arm.cc
|
| +++ b/src/arm/builtins-arm.cc
|
| @@ -124,12 +124,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.
|
| @@ -653,12 +648,12 @@ void Builtins::Generate_StringConstructCode(MacroAssembler* masm) {
|
| // -----------------------------------
|
|
|
| Label gc_required;
|
| - __ AllocateInNewSpace(JSValue::kSize,
|
| - r0, // Result.
|
| - r3, // Scratch.
|
| - r4, // Scratch.
|
| - &gc_required,
|
| - TAG_OBJECT);
|
| + __ Allocate(JSValue::kSize,
|
| + r0, // Result.
|
| + r3, // Scratch.
|
| + r4, // Scratch.
|
| + &gc_required,
|
| + TAG_OBJECT);
|
|
|
| // Initialising the String Object.
|
| Register map = r3;
|
|
|