Index: src/arm/lithium-codegen-arm.cc |
diff --git a/src/arm/lithium-codegen-arm.cc b/src/arm/lithium-codegen-arm.cc |
index dde402303aef709c0f4b06e43003bff22448eb22..05348bf018e87011280699e649b43d96bc167cf1 100644 |
--- a/src/arm/lithium-codegen-arm.cc |
+++ b/src/arm/lithium-codegen-arm.cc |
@@ -5249,7 +5249,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, |