Index: src/arm/code-stubs-arm.cc |
diff --git a/src/arm/code-stubs-arm.cc b/src/arm/code-stubs-arm.cc |
index b1ffaea14d1241e2ee8301f9647ff5896745a8df..f16ee9a44ee9ea0d34ee6a216c1225024a930c82 100644 |
--- a/src/arm/code-stubs-arm.cc |
+++ b/src/arm/code-stubs-arm.cc |
@@ -4780,7 +4780,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) |
@@ -4956,13 +4956,13 @@ 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, |
danno
2013/03/20 22:11:09
nit: can you fix the formatting while you are here
Hannes Payer (out of office)
2013/03/25 16:04:25
Done.
|
+ r0, |
+ r2, |
+ r3, |
+ &runtime, |
+ static_cast<AllocationFlags>(TAG_OBJECT | |
+ SIZE_IN_WORDS)); |
danno
2013/03/20 22:11:09
Fits on one line
Hannes Payer (out of office)
2013/03/25 16:04:25
Done.
|
// Get the arguments boilerplate from the current native context. |
__ ldr(r4, MemOperand(cp, Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX))); |
@@ -5466,7 +5466,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. |