Index: src/arm/code-stubs-arm.cc |
diff --git a/src/arm/code-stubs-arm.cc b/src/arm/code-stubs-arm.cc |
index 9fab908c439492e4900110f803974a070e97ee93..d5db8375b8824653bc493033ffbe98e63a249ef3 100644 |
--- a/src/arm/code-stubs-arm.cc |
+++ b/src/arm/code-stubs-arm.cc |
@@ -4791,7 +4791,7 @@ void ArgumentsAccessStub::GenerateNewNonStrictFast(MacroAssembler* masm) { |
__ add(r9, r9, Operand(Heap::kArgumentsObjectSize)); |
// Do the allocation of all three objects in one go. |
- __ AllocateInNewSpace(r9, r0, r3, r4, &runtime, TAG_OBJECT); |
+ __ Allocate(r9, r0, r3, r4, &runtime, TAG_OBJECT); |
// r0 = address of new object(s) (tagged) |
// r2 = argument count (tagged) |
@@ -4967,13 +4967,8 @@ void ArgumentsAccessStub::GenerateNewStrict(MacroAssembler* masm) { |
__ add(r1, r1, Operand(Heap::kArgumentsObjectSizeStrict / kPointerSize)); |
// Do the allocation of both objects in one go. |
- __ AllocateInNewSpace(r1, |
- r0, |
- r2, |
- r3, |
- &runtime, |
- static_cast<AllocationFlags>(TAG_OBJECT | |
- SIZE_IN_WORDS)); |
+ __ Allocate(r1, r0, r2, r3, &runtime, |
+ static_cast<AllocationFlags>(TAG_OBJECT | SIZE_IN_WORDS)); |
// Get the arguments boilerplate from the current native context. |
__ ldr(r4, MemOperand(cp, Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX))); |
@@ -5477,7 +5472,7 @@ void RegExpConstructResultStub::Generate(MacroAssembler* masm) { |
(JSRegExpResult::kSize + FixedArray::kHeaderSize) / kPointerSize; |
__ mov(r5, Operand(r1, LSR, kSmiTagSize + kSmiShiftSize)); |
__ add(r2, r5, Operand(objects_size)); |
- __ AllocateInNewSpace( |
+ __ Allocate( |
r2, // In: Size, in words. |
r0, // Out: Start of allocation (tagged). |
r3, // Scratch register. |