OLD | NEW |
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 <stdarg.h> | 5 #include <stdarg.h> |
6 | 6 |
7 #include "src/v8.h" | 7 #include "src/v8.h" |
8 | 8 |
9 #include "src/ast-value-factory.h" | 9 #include "src/ast-value-factory.h" |
10 #include "src/base/platform/platform.h" | 10 #include "src/base/platform/platform.h" |
(...skipping 1363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1374 IndentedScope indent(this, "TRY CATCH"); | 1374 IndentedScope indent(this, "TRY CATCH"); |
1375 PrintIndentedVisit("TRY", node->try_block()); | 1375 PrintIndentedVisit("TRY", node->try_block()); |
1376 PrintLiteralWithModeIndented("CATCHVAR", | 1376 PrintLiteralWithModeIndented("CATCHVAR", |
1377 node->variable(), | 1377 node->variable(), |
1378 node->variable()->name()); | 1378 node->variable()->name()); |
1379 PrintIndentedVisit("CATCH", node->catch_block()); | 1379 PrintIndentedVisit("CATCH", node->catch_block()); |
1380 } | 1380 } |
1381 | 1381 |
1382 | 1382 |
1383 void AstPrinter::VisitTryFinallyStatement(TryFinallyStatement* node) { | 1383 void AstPrinter::VisitTryFinallyStatement(TryFinallyStatement* node) { |
1384 IndentedScope indent(this, "TRY FINALLY"); | 1384 IndentedScope indent(this, "TRY finalLY"); |
1385 PrintIndentedVisit("TRY", node->try_block()); | 1385 PrintIndentedVisit("TRY", node->try_block()); |
1386 PrintIndentedVisit("FINALLY", node->finally_block()); | 1386 PrintIndentedVisit("FINALLY", node->finally_block()); |
1387 } | 1387 } |
1388 | 1388 |
1389 | 1389 |
1390 void AstPrinter::VisitDebuggerStatement(DebuggerStatement* node) { | 1390 void AstPrinter::VisitDebuggerStatement(DebuggerStatement* node) { |
1391 IndentedScope indent(this, "DEBUGGER"); | 1391 IndentedScope indent(this, "DEBUGGER"); |
1392 } | 1392 } |
1393 | 1393 |
1394 | 1394 |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1598 } | 1598 } |
1599 | 1599 |
1600 | 1600 |
1601 void AstPrinter::VisitSuperReference(SuperReference* node) { | 1601 void AstPrinter::VisitSuperReference(SuperReference* node) { |
1602 IndentedScope indent(this, "SUPER-REFERENCE"); | 1602 IndentedScope indent(this, "SUPER-REFERENCE"); |
1603 } | 1603 } |
1604 | 1604 |
1605 #endif // DEBUG | 1605 #endif // DEBUG |
1606 | 1606 |
1607 } } // namespace v8::internal | 1607 } } // namespace v8::internal |
OLD | NEW |