Index: src/full-codegen/ppc/full-codegen-ppc.cc |
diff --git a/src/full-codegen/ppc/full-codegen-ppc.cc b/src/full-codegen/ppc/full-codegen-ppc.cc |
index 2ae5f674514c6baf0b9794ee2d37d6ad06276483..dadaebd3650493dd2820b1292e921681299cecaa 100644 |
--- a/src/full-codegen/ppc/full-codegen-ppc.cc |
+++ b/src/full-codegen/ppc/full-codegen-ppc.cc |
@@ -4261,6 +4261,10 @@ void FullCodeGenerator::EmitFastOneByteArrayJoin(CallRuntime* expr) { |
__ BranchOnOverflow(&bailout); |
__ SmiUntag(string_length); |
+ // Bailout for large object allocations. |
+ __ cmpi(string_length, Operand(Page::kMaxRegularHeapObjectSize)); |
+ __ bgt(&bailout); |
+ |
// Get first element in the array to free up the elements register to be used |
// for the result. |
__ addi(element, elements, Operand(FixedArray::kHeaderSize - kHeapObjectTag)); |