Index: src/arm/code-stubs-arm.cc |
diff --git a/src/arm/code-stubs-arm.cc b/src/arm/code-stubs-arm.cc |
index 6c87a43d3fc8eb9674fc9ae871148f5a9c6c82cb..1d7fcee94b8cd629b6644e8b02016d7777167138 100644 |
--- a/src/arm/code-stubs-arm.cc |
+++ b/src/arm/code-stubs-arm.cc |
@@ -128,12 +128,8 @@ void FastNewClosureStub::Generate(MacroAssembler* masm) { |
__ pop(r3); |
// Attempt to allocate new JSFunction in new space. |
- __ AllocateInNewSpace(JSFunction::kSize, |
- r0, |
- r1, |
- r2, |
- &gc, |
- TAG_OBJECT); |
+ __ Allocate(JSFunction::kSize, r0, r1, r2, &gc, TAG_OBJECT, |
+ MacroAssembler::NEW_SPACE); |
__ IncrementCounter(counters->fast_new_closure_total(), 1, r6, r7); |
@@ -260,12 +256,8 @@ void FastNewContextStub::Generate(MacroAssembler* masm) { |
int length = slots_ + Context::MIN_CONTEXT_SLOTS; |
// Attempt to allocate the context in new space. |
- __ AllocateInNewSpace(FixedArray::SizeFor(length), |
- r0, |
- r1, |
- r2, |
- &gc, |
- TAG_OBJECT); |
+ __ Allocate(FixedArray::SizeFor(length), r0, r1, r2, &gc, TAG_OBJECT, |
+ MacroAssembler::NEW_SPACE); |
// Load the function from the stack. |
__ ldr(r3, MemOperand(sp, 0)); |
@@ -310,8 +302,8 @@ void FastNewBlockContextStub::Generate(MacroAssembler* masm) { |
// Try to allocate the context in new space. |
Label gc; |
int length = slots_ + Context::MIN_CONTEXT_SLOTS; |
- __ AllocateInNewSpace(FixedArray::SizeFor(length), |
- r0, r1, r2, &gc, TAG_OBJECT); |
+ __ Allocate(FixedArray::SizeFor(length), r0, r1, r2, &gc, TAG_OBJECT, |
+ MacroAssembler::NEW_SPACE); |
// Load the function from the stack. |
__ ldr(r3, MemOperand(sp, 0)); |
@@ -397,7 +389,7 @@ static void GenerateFastCloneShallowArrayCommon( |
if (mode == FastCloneShallowArrayStub::CLONE_DOUBLE_ELEMENTS) { |
flags = static_cast<AllocationFlags>(DOUBLE_ALIGNMENT | flags); |
} |
- __ AllocateInNewSpace(size, r0, r1, r2, fail, flags); |
+ __ Allocate(size, r0, r1, r2, fail, flags, MacroAssembler::NEW_SPACE); |
if (allocation_site_mode == TRACK_ALLOCATION_SITE) { |
__ mov(r2, Operand(Handle<Map>(masm->isolate()->heap()-> |