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

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 construct support, clean out some gunk 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
Index: src/ast-numbering.cc
diff --git a/src/ast-numbering.cc b/src/ast-numbering.cc
index a2bc65827d9ded4afdc131c0467d2dab6d0006f4..56be4ead9dd42029fb3599244a127d3e422f9326 100644
--- a/src/ast-numbering.cc
+++ b/src/ast-numbering.cc
@@ -365,6 +365,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/compiler/ast-graph-builder.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698