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

Side by Side Diff: src/ast/prettyprinter.cc

Issue 2276243002: Mark await expressions as caught or uncaught (Closed)
Patch Set: Revert "Tests for caught exception" Created 4 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 unified diff | Download patch
« no previous file with comments | « src/ast/ast-numbering.cc ('k') | src/contexts.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/ast/prettyprinter.h" 5 #include "src/ast/prettyprinter.h"
6 6
7 #include <stdarg.h> 7 #include <stdarg.h>
8 8
9 #include "src/ast/ast-value-factory.h" 9 #include "src/ast/ast-value-factory.h"
10 #include "src/ast/scopes.h" 10 #include "src/ast/scopes.h"
(...skipping 853 matching lines...) Expand 10 before | Expand all | Expand 10 after
864 break; 864 break;
865 case HandlerTable::CAUGHT: 865 case HandlerTable::CAUGHT:
866 prediction = "CAUGHT"; 866 prediction = "CAUGHT";
867 break; 867 break;
868 case HandlerTable::PROMISE: 868 case HandlerTable::PROMISE:
869 prediction = "PROMISE"; 869 prediction = "PROMISE";
870 break; 870 break;
871 case HandlerTable::DESUGARING: 871 case HandlerTable::DESUGARING:
872 prediction = "DESUGARING"; 872 prediction = "DESUGARING";
873 break; 873 break;
874 case HandlerTable::ASYNC_AWAIT:
875 prediction = "ASYNC_AWAIT";
876 break;
874 } 877 }
875 Print(" %s\n", prediction); 878 Print(" %s\n", prediction);
876 } 879 }
877 880
878 void AstPrinter::VisitDebuggerStatement(DebuggerStatement* node) { 881 void AstPrinter::VisitDebuggerStatement(DebuggerStatement* node) {
879 IndentedScope indent(this, "DEBUGGER", node->position()); 882 IndentedScope indent(this, "DEBUGGER", node->position());
880 } 883 }
881 884
882 885
883 void AstPrinter::VisitFunctionLiteral(FunctionLiteral* node) { 886 void AstPrinter::VisitFunctionLiteral(FunctionLiteral* node) {
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
1184 1187
1185 void AstPrinter::VisitRewritableExpression(RewritableExpression* node) { 1188 void AstPrinter::VisitRewritableExpression(RewritableExpression* node) {
1186 Visit(node->expression()); 1189 Visit(node->expression());
1187 } 1190 }
1188 1191
1189 1192
1190 #endif // DEBUG 1193 #endif // DEBUG
1191 1194
1192 } // namespace internal 1195 } // namespace internal
1193 } // namespace v8 1196 } // namespace v8
OLDNEW
« no previous file with comments | « src/ast/ast-numbering.cc ('k') | src/contexts.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698