Index: src/mips/builtins-mips.cc |
diff --git a/src/mips/builtins-mips.cc b/src/mips/builtins-mips.cc |
index 2facd13df532c98cebccb7d65b5185939992ec1f..54efd9491357c6d8a661247cf29d150bcd541ab9 100644 |
--- a/src/mips/builtins-mips.cc |
+++ b/src/mips/builtins-mips.cc |
@@ -128,12 +128,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); |
+ |
// Allocated the JSArray. Now initialize the fields except for the elements |
// array. |
// result: JSObject |
@@ -665,12 +661,12 @@ void Builtins::Generate_StringConstructCode(MacroAssembler* masm) { |
// ----------------------------------- |
Label gc_required; |
- __ AllocateInNewSpace(JSValue::kSize, |
- v0, // Result. |
- a3, // Scratch. |
- t0, // Scratch. |
- &gc_required, |
- TAG_OBJECT); |
+ __ Allocate(JSValue::kSize, |
+ v0, // Result. |
+ a3, // Scratch. |
+ t0, // Scratch. |
+ &gc_required, |
+ TAG_OBJECT); |
// Initialising the String Object. |
Register map = a3; |