Index: src/code-stubs-hydrogen.cc |
diff --git a/src/code-stubs-hydrogen.cc b/src/code-stubs-hydrogen.cc |
index 29f650d71d352a913f9cd8dd2c6ecdbfb7950431..ac3a7451b67cef43713b0a7a552ecb7405121275 100644 |
--- a/src/code-stubs-hydrogen.cc |
+++ b/src/code-stubs-hydrogen.cc |
@@ -724,6 +724,7 @@ HValue* CodeStubGraphBuilderBase::BuildArrayNArgumentsConstructor( |
? JSArrayBuilder::FILL_WITH_HOLE |
: JSArrayBuilder::DONT_FILL_WITH_HOLE; |
HValue* new_object = array_builder->AllocateArray(checked_length, |
+ max_alloc_length, |
checked_length, |
fill_mode); |
HValue* elements = array_builder->GetElementsLocation(); |