Index: src/crankshaft/hydrogen.cc |
diff --git a/src/crankshaft/hydrogen.cc b/src/crankshaft/hydrogen.cc |
index 78e0718c8d93250766fa79468d393b80b7620dfb..97b9263b3bacb0136f83d91dbcdfd404f6083a65 100644 |
--- a/src/crankshaft/hydrogen.cc |
+++ b/src/crankshaft/hydrogen.cc |
@@ -8581,7 +8581,7 @@ bool HOptimizedGraphBuilder::TryInlineBuiltinMethodCall( |
Handle<JSObject>::null(), true); |
// Threshold for fast inlined Array.shift(). |
- HConstant* inline_threshold = Add<HConstant>(static_cast<int32_t>(16)); |
+ HConstant* inline_threshold = Add<HConstant>(JSArray::kMaxCopyElements); |
Drop(args_count_no_receiver); |
HValue* result; |