Index: src/compiler/js-typed-lowering.cc |
diff --git a/src/compiler/js-typed-lowering.cc b/src/compiler/js-typed-lowering.cc |
index 8715fba4cde7fb5c9e8ab9d562a04c38154e2940..d4fe91bbfc2b9a36c8d5b61c17c9aa15bd2db1c2 100644 |
--- a/src/compiler/js-typed-lowering.cc |
+++ b/src/compiler/js-typed-lowering.cc |
@@ -958,7 +958,9 @@ Reduction JSTypedLowering::ReduceJSCreateLiteralArray(Node* node) { |
// Use the FastCloneShallowArrayStub only for shallow boilerplates up to the |
// initial length limit for arrays with "fast" elements kind. |
+ // TODO(rossberg): Teach strong mode to FastCloneShallowArrayStub. |
if ((flags & ArrayLiteral::kShallowElements) != 0 && |
+ (flags & ArrayLiteral::kIsStrong) == 0 && |
length < JSObject::kInitialMaxFastElementArray) { |
Isolate* isolate = jsgraph()->isolate(); |
Callable callable = CodeFactory::FastCloneShallowArray(isolate); |