Index: src/full-codegen/mips64/full-codegen-mips64.cc |
diff --git a/src/full-codegen/mips64/full-codegen-mips64.cc b/src/full-codegen/mips64/full-codegen-mips64.cc |
index a3b8321d47079d285fa9ddca85caca120bdcdaab..ceb0926eb73116fdc3b4e9c6fc4e503a9cd9db55 100644 |
--- a/src/full-codegen/mips64/full-codegen-mips64.cc |
+++ b/src/full-codegen/mips64/full-codegen-mips64.cc |
@@ -4279,6 +4279,10 @@ void FullCodeGenerator::EmitFastOneByteArrayJoin(CallRuntime* expr) { |
__ AdduAndCheckForOverflow(string_length, string_length, scratch2, scratch3); |
__ BranchOnOverflow(&bailout, scratch3); |
+ // 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. |
__ Daddu(element, |