Index: src/arm/lithium-codegen-arm.cc |
diff --git a/src/arm/lithium-codegen-arm.cc b/src/arm/lithium-codegen-arm.cc |
index 51126db7aae9550ba99f20a889b930b541ae8d47..8c9221cc4a60efaea356afea7df79cb34589b29c 100644 |
--- a/src/arm/lithium-codegen-arm.cc |
+++ b/src/arm/lithium-codegen-arm.cc |
@@ -5252,7 +5252,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, |