Index: src/ast/prettyprinter.cc |
diff --git a/src/ast/prettyprinter.cc b/src/ast/prettyprinter.cc |
index 06f3639d9582cb83cfdf169f82e71fabd0fc6344..4cf23c980cb0bb6de77bc415ab796e8be1410a98 100644 |
--- a/src/ast/prettyprinter.cc |
+++ b/src/ast/prettyprinter.cc |
@@ -1431,7 +1431,7 @@ void AstPrinter::VisitForOfStatement(ForOfStatement* node) { |
void AstPrinter::VisitTryCatchStatement(TryCatchStatement* node) { |
IndentedScope indent(this, "TRY CATCH", node->position()); |
- PrintIndentedVisit("TRY", node->try_block()); |
+ PrintTryStatement(node); |
PrintLiteralWithModeIndented("CATCHVAR", |
node->variable(), |
node->variable()->name()); |
@@ -1441,10 +1441,15 @@ void AstPrinter::VisitTryCatchStatement(TryCatchStatement* node) { |
void AstPrinter::VisitTryFinallyStatement(TryFinallyStatement* node) { |
IndentedScope indent(this, "TRY FINALLY", node->position()); |
- PrintIndentedVisit("TRY", node->try_block()); |
+ PrintTryStatement(node); |
PrintIndentedVisit("FINALLY", node->finally_block()); |
} |
+void AstPrinter::PrintTryStatement(TryStatement* node) { |
+ PrintIndentedVisit("TRY", node->try_block()); |
+ PrintIndented("CATCH PREDICTED"); |
+ Print(" %d\n", node->catch_predicted()); |
+} |
void AstPrinter::VisitDebuggerStatement(DebuggerStatement* node) { |
IndentedScope indent(this, "DEBUGGER", node->position()); |