Index: src/compiler/js-typed-lowering.cc |
diff --git a/src/compiler/js-typed-lowering.cc b/src/compiler/js-typed-lowering.cc |
index 6e6432c572d9775a5e111639317dc30f2724e755..83fb90d8bbe5e8d6da540f7f9bc5a528126a3a2d 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( |