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

Unified Diff: src/ast-numbering.cc

Issue 1399893002: [es7] implement |do| expressions proposal (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Disable CrankShaft Created 5 years, 2 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 145025afa9394b02f06ee08e6bdc9bda4f4fd242..fb0df634e7a208469b9bb97b718a2c12998630d9 100644
--- a/src/ast-numbering.cc
+++ b/src/ast-numbering.cc
@@ -136,6 +136,15 @@ void AstNumberingVisitor::VisitNativeFunctionLiteral(
}
+void AstNumberingVisitor::VisitDoExpression(DoExpression* node) {
+ IncrementNodeCount();
+ DisableCrankshaft(kDoExpression);
+ node->set_base_id(ReserveIdRange(DoExpression::num_ids()));
+ Visit(node->block());
+ Visit(node->result());
+}
+
+
void AstNumberingVisitor::VisitLiteral(Literal* node) {
IncrementNodeCount();
node->set_base_id(ReserveIdRange(Literal::num_ids()));
« src/ast.h ('K') | « src/ast-literal-reindexer.cc ('k') | src/bailout-reason.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698