Index: src/arm/builtins-arm.cc |
diff --git a/src/arm/builtins-arm.cc b/src/arm/builtins-arm.cc |
index d17f393aaaa1ba2a5b5bf8961c3940bcb5943771..645d2f04131c47c8b16c045d585a29d6dda9d477 100644 |
--- a/src/arm/builtins-arm.cc |
+++ b/src/arm/builtins-arm.cc |
@@ -124,12 +124,8 @@ 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. |
@@ -619,12 +615,13 @@ 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, |
+ MacroAssembler::NEW_SPACE); |
// Initialising the String Object. |
Register map = r3; |