Index: src/full-codegen/arm/full-codegen-arm.cc |
diff --git a/src/full-codegen/arm/full-codegen-arm.cc b/src/full-codegen/arm/full-codegen-arm.cc |
index f6c38cf7bf419adec06e591dbd379b67e1e70b4c..efe055d1d650b3b3b42a96e31d3382ff1f5cf103 100644 |
--- a/src/full-codegen/arm/full-codegen-arm.cc |
+++ b/src/full-codegen/arm/full-codegen-arm.cc |
@@ -4245,6 +4245,10 @@ void FullCodeGenerator::EmitFastOneByteArrayJoin(CallRuntime* expr) { |
__ b(vs, &bailout); |
__ SmiUntag(string_length); |
+ // Bailout for large object allocations. |
+ __ cmp(string_length, Operand(Page::kMaxRegularHeapObjectSize)); |
+ __ b(gt, &bailout); |
+ |
// Get first element in the array to free up the elements register to be used |
// for the result. |
__ add(element, |