Index: src/compiler/js-typed-lowering.cc |
diff --git a/src/compiler/js-typed-lowering.cc b/src/compiler/js-typed-lowering.cc |
index 7c25afcfafa6a2fe367d60550af74290b99d2283..111d6565e2b357d14f144eb9cb04bdbdbc60f579 100644 |
--- a/src/compiler/js-typed-lowering.cc |
+++ b/src/compiler/js-typed-lowering.cc |
@@ -1211,7 +1211,7 @@ Reduction JSTypedLowering::ReduceJSCreateLiteralArray(Node* node) { |
// TODO(rossberg): Teach strong mode to FastCloneShallowArrayStub. |
if ((flags & ArrayLiteral::kShallowElements) != 0 && |
(flags & ArrayLiteral::kIsStrong) == 0 && |
- length < JSObject::kInitialMaxFastElementArray) { |
+ length < JSArray::kInitialMaxFastElementArray) { |
Isolate* isolate = jsgraph()->isolate(); |
Callable callable = CodeFactory::FastCloneShallowArray(isolate); |
CallDescriptor* desc = Linkage::GetStubCallDescriptor( |