Index: src/code-stubs-hydrogen.cc |
diff --git a/src/code-stubs-hydrogen.cc b/src/code-stubs-hydrogen.cc |
index dc2ae554bfcf801dd653a8bf81de8cf65a03723a..eafc6d35a3826a1ab8b187b4045bf453143c760c 100644 |
--- a/src/code-stubs-hydrogen.cc |
+++ b/src/code-stubs-hydrogen.cc |
@@ -1215,7 +1215,7 @@ HValue* CodeStubGraphBuilderBase::BuildArrayNArgumentsConstructor( |
// trigger it. |
HValue* length = GetArgumentsLength(); |
HConstant* max_alloc_length = |
- Add<HConstant>(JSObject::kInitialMaxFastElementArray); |
+ Add<HConstant>(JSArray::kInitialMaxFastElementArray); |
HValue* checked_length = Add<HBoundsCheck>(length, max_alloc_length); |
// We need to fill with the hole if it's a smi array in the multi-argument |