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

Unified Diff: src/prettyprinter.cc

Issue 7523027: Provisional implementation of stack allocated catch variables. Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 5 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/parser.cc ('k') | src/rewriter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/prettyprinter.cc
diff --git a/src/prettyprinter.cc b/src/prettyprinter.cc
index f18b3203edc098ba4630c47006511ebb39e43d81..499b0375d4b481db4127781a9ff60d79cba7fc7d 100644
--- a/src/prettyprinter.cc
+++ b/src/prettyprinter.cc
@@ -136,6 +136,12 @@ void PrettyPrinter::VisitExitContextStatement(ExitContextStatement* node) {
}
+void PrettyPrinter::VisitExitScopedBlockStatement(
+ ExitScopedBlockStatement* node) {
+ Print("<exit scoped block>");
+}
+
+
void PrettyPrinter::VisitSwitchStatement(SwitchStatement* node) {
PrintLabels(node->labels());
Print("switch (");
@@ -809,6 +815,11 @@ void AstPrinter::VisitExitContextStatement(ExitContextStatement* node) {
}
+void AstPrinter::VisitExitScopedBlockStatement(ExitScopedBlockStatement* node) {
+ PrintIndented("EXIT SCOPED BLOCK\n");
+}
+
+
void AstPrinter::VisitSwitchStatement(SwitchStatement* node) {
IndentedScope indent(this, "SWITCH");
PrintLabelsIndented(NULL, node->labels());
@@ -1206,6 +1217,12 @@ void JsonAstBuilder::VisitExitContextStatement(ExitContextStatement* stmt) {
}
+void JsonAstBuilder::VisitExitScopedBlockStatement(
+ ExitScopedBlockStatement* stmt) {
+ TagScope tag(this, "ExitScopedBlockStatement");
+}
+
+
void JsonAstBuilder::VisitSwitchStatement(SwitchStatement* stmt) {
TagScope tag(this, "SwitchStatement");
}
« no previous file with comments | « src/parser.cc ('k') | src/rewriter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698