Index: src/compiler/js-create-lowering.cc |
diff --git a/src/compiler/js-create-lowering.cc b/src/compiler/js-create-lowering.cc |
index 2662382ed2e6241a508ad3113be6da35c59ae8d7..d7ff606a5ace9aff152dc7dca3e4f76275b50b67 100644 |
--- a/src/compiler/js-create-lowering.cc |
+++ b/src/compiler/js-create-lowering.cc |
@@ -162,7 +162,9 @@ bool IsFastLiteral(Handle<JSObject> boilerplate, int max_depth, |
} |
} |
} |
- } else if (!boilerplate->HasFastDoubleElements()) { |
+ } else if (boilerplate->HasFastDoubleElements()) { |
+ if (elements->Size() > kMaxRegularHeapObjectSize) return false; |
+ } else { |
return false; |
} |
} |