Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Unified Diff: src/ast.cc

Issue 1356913005: Version 4.6.85.19 (cherry-pick) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@4.6
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/v8-version.h ('k') | test/mjsunit/harmony/regress/regress-4417.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast.cc
diff --git a/src/ast.cc b/src/ast.cc
index c61c29bf524ba300573958b13b96b1921e3fc1cd..71a34b65fa6371de5934b92f185be8fbf975147b 100644
--- a/src/ast.cc
+++ b/src/ast.cc
@@ -520,7 +520,7 @@ void ArrayLiteral::BuildConstantElements(Isolate* isolate) {
Strength::WEAK, INITIALIZE_ARRAY_ELEMENTS_WITH_HOLE);
// Fill in the literals.
- bool is_simple = true;
+ bool is_simple = (first_spread_index_ < 0);
int depth_acc = 1;
bool is_holey = false;
int array_index = 0;
« no previous file with comments | « include/v8-version.h ('k') | test/mjsunit/harmony/regress/regress-4417.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698