Index: src/full-codegen/mips/full-codegen-mips.cc |
diff --git a/src/full-codegen/mips/full-codegen-mips.cc b/src/full-codegen/mips/full-codegen-mips.cc |
index e8092a87a884189ba3c33cec22d568740245815a..a1468b9cbe9fd45805cd1c511d1bfd93459ef602 100644 |
--- a/src/full-codegen/mips/full-codegen-mips.cc |
+++ b/src/full-codegen/mips/full-codegen-mips.cc |
@@ -4276,6 +4276,10 @@ void FullCodeGenerator::EmitFastOneByteArrayJoin(CallRuntime* expr) { |
__ BranchOnOverflow(&bailout, scratch3); |
__ SmiUntag(string_length); |
+ // Bailout for large object allocations. |
+ __ Branch(&bailout, gt, string_length, |
+ Operand(Page::kMaxRegularHeapObjectSize)); |
+ |
// Get first element in the array to free up the elements register to be used |
// for the result. |
__ Addu(element, |