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

Unified Diff: src/ast-numbering.cc

Issue 938443002: [es6] implement spread calls (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add more variations to evaluation order tests Created 5 years, 10 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 | « src/ast.h ('k') | src/ast-value-factory.h » ('j') | src/flag-definitions.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast-numbering.cc
diff --git a/src/ast-numbering.cc b/src/ast-numbering.cc
index ea25ad8bbca4722f0deeb89be9f40a1d77004757..c5479aa5e86c86cc8b83015e189c0c9860740ab2 100644
--- a/src/ast-numbering.cc
+++ b/src/ast-numbering.cc
@@ -358,6 +358,13 @@ void AstNumberingVisitor::VisitCompareOperation(CompareOperation* node) {
}
+void AstNumberingVisitor::VisitSpreadOperation(SpreadOperation* node) {
+ IncrementNodeCount();
+ node->set_base_id(ReserveIdRange(SpreadOperation::num_ids()));
+ Visit(node->expression());
+}
+
+
void AstNumberingVisitor::VisitForInStatement(ForInStatement* node) {
IncrementNodeCount();
DisableSelfOptimization();
« no previous file with comments | « src/ast.h ('k') | src/ast-value-factory.h » ('j') | src/flag-definitions.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698