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

Unified Diff: src/typing-asm.cc

Issue 1399893002: [es7] implement |do| expressions proposal (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix AST numbering issue + add simple TF impl 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
« src/rewriter.cc ('K') | « src/typing.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/typing-asm.cc
diff --git a/src/typing-asm.cc b/src/typing-asm.cc
index 501af026dcba8b636aed0c653a9eae3a2efc7cd9..495097a2e76fc50e80872b94761e24f85e5822e8 100644
--- a/src/typing-asm.cc
+++ b/src/typing-asm.cc
@@ -435,6 +435,11 @@ void AsmTyper::VisitNativeFunctionLiteral(NativeFunctionLiteral* expr) {
}
+void AsmTyper::VisitDoExpression(DoExpression* expr) {
+ RECURSE(VisitStatements(expr->statements()));
+}
+
+
void AsmTyper::VisitConditional(Conditional* expr) {
RECURSE(VisitWithExpectation(expr->condition(), cache_.kInt32,
"condition expected to be integer"));
« src/rewriter.cc ('K') | « src/typing.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698