Index: src/mips/lithium-codegen-mips.cc |
diff --git a/src/mips/lithium-codegen-mips.cc b/src/mips/lithium-codegen-mips.cc |
index 400f26dd5d772003962a0dd6770d0e7dae047ab6..c16e31580aa41d94bc195eee4aa57eea2645c2fd 100644 |
--- a/src/mips/lithium-codegen-mips.cc |
+++ b/src/mips/lithium-codegen-mips.cc |
@@ -5254,12 +5254,8 @@ void LCodeGen::DoAllocateObject(LAllocateObject* instr) { |
// the constructor's prototype changes, but instance size and property |
// counts remain unchanged (if slack tracking finished). |
ASSERT(!constructor->shared()->IsInobjectSlackTrackingInProgress()); |
- __ AllocateInNewSpace(instance_size, |
- result, |
- scratch, |
- scratch2, |
- deferred->entry(), |
- TAG_OBJECT); |
+ __ Allocate(instance_size, result, scratch, scratch2, deferred->entry(), |
+ TAG_OBJECT); |
__ bind(deferred->exit()); |
if (FLAG_debug_code) { |
@@ -5334,12 +5330,10 @@ void LCodeGen::DoAllocate(LAllocate* instr) { |
} |
if (instr->size()->IsConstantOperand()) { |
int32_t size = ToInteger32(LConstantOperand::cast(instr->size())); |
- __ AllocateInNewSpace(size, |
- result, |
- scratch, |
- scratch2, |
- deferred->entry(), |
- flags); |
+ if (instr->hydrogen()->CanAllocateInOldPointerSpace()) { |
+ flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_POINTER_SPACE); |
+ } |
+ __ Allocate(size, result, scratch, scratch2, deferred->entry(), flags); |
} else { |
Register size = ToRegister(instr->size()); |
__ AllocateInNewSpace(size, |
@@ -5574,7 +5568,7 @@ void LCodeGen::DoFastLiteral(LFastLiteral* instr) { |
// Allocate all objects that are part of the literal in one big |
// allocation. This avoids multiple limit checks. |
Label allocated, runtime_allocate; |
- __ AllocateInNewSpace(size, v0, a2, a3, &runtime_allocate, TAG_OBJECT); |
+ __ Allocate(size, v0, a2, a3, &runtime_allocate, TAG_OBJECT); |
__ jmp(&allocated); |
__ bind(&runtime_allocate); |
@@ -5657,7 +5651,7 @@ void LCodeGen::DoRegExpLiteral(LRegExpLiteral* instr) { |
int size = JSRegExp::kSize + JSRegExp::kInObjectFieldCount * kPointerSize; |
Label allocated, runtime_allocate; |
- __ AllocateInNewSpace(size, v0, a2, a3, &runtime_allocate, TAG_OBJECT); |
+ __ Allocate(size, v0, a2, a3, &runtime_allocate, TAG_OBJECT); |
__ jmp(&allocated); |
__ bind(&runtime_allocate); |