| Index: src/arm/lithium-codegen-arm.cc
|
| diff --git a/src/arm/lithium-codegen-arm.cc b/src/arm/lithium-codegen-arm.cc
|
| index 49b7a334e8ba744f84313c44f68c2857cc3e9ce4..2a1525810ee8eb14801d27301f96dde9cbc5dd15 100644
|
| --- a/src/arm/lithium-codegen-arm.cc
|
| +++ b/src/arm/lithium-codegen-arm.cc
|
| @@ -5220,7 +5220,11 @@ void LCodeGen::DoAllocate(LAllocate* instr) {
|
|
|
| if (instr->size()->IsConstantOperand()) {
|
| int32_t size = ToInteger32(LConstantOperand::cast(instr->size()));
|
| - __ Allocate(size, result, scratch, scratch2, deferred->entry(), flags);
|
| + if (size <= Page::kMaxRegularHeapObjectSize) {
|
| + __ Allocate(size, result, scratch, scratch2, deferred->entry(), flags);
|
| + } else {
|
| + __ jmp(deferred->entry());
|
| + }
|
| } else {
|
| Register size = ToRegister(instr->size());
|
| __ Allocate(size,
|
|
|