Index: src/crankshaft/hydrogen.cc |
diff --git a/src/crankshaft/hydrogen.cc b/src/crankshaft/hydrogen.cc |
index e7c43bf34e1fa29f03215b85f457807c2586d661..97f224cad530242ef59d086cc45b60224e13ecec 100644 |
--- a/src/crankshaft/hydrogen.cc |
+++ b/src/crankshaft/hydrogen.cc |
@@ -5454,7 +5454,9 @@ static bool IsFastLiteral(Handle<JSObject> boilerplate, |
} |
} |
} |
- } else if (!boilerplate->HasFastDoubleElements()) { |
+ } else if (boilerplate->HasFastDoubleElements()) { |
+ if (elements->Size() > kMaxRegularHeapObjectSize) return false; |
+ } else { |
return false; |
} |
} |