| 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 "src/prettyprinter.h" | 5 #include "src/prettyprinter.h" |
| 6 | 6 |
| 7 #include <stdarg.h> | 7 #include <stdarg.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 1514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1525 | 1525 |
| 1526 void AstPrinter::VisitCallNew(CallNew* node) { | 1526 void AstPrinter::VisitCallNew(CallNew* node) { |
| 1527 IndentedScope indent(this, "CALL NEW"); | 1527 IndentedScope indent(this, "CALL NEW"); |
| 1528 Visit(node->expression()); | 1528 Visit(node->expression()); |
| 1529 PrintArguments(node->arguments()); | 1529 PrintArguments(node->arguments()); |
| 1530 } | 1530 } |
| 1531 | 1531 |
| 1532 | 1532 |
| 1533 void AstPrinter::VisitCallRuntime(CallRuntime* node) { | 1533 void AstPrinter::VisitCallRuntime(CallRuntime* node) { |
| 1534 EmbeddedVector<char, 128> buf; | 1534 EmbeddedVector<char, 128> buf; |
| 1535 SNPrintF(buf, "CALL RUNTIME %s", node->debug_name()); |
| 1535 IndentedScope indent(this, buf.start()); | 1536 IndentedScope indent(this, buf.start()); |
| 1536 Print("NAME %s\n", node->debug_name()); | |
| 1537 PrintArguments(node->arguments()); | 1537 PrintArguments(node->arguments()); |
| 1538 } | 1538 } |
| 1539 | 1539 |
| 1540 | 1540 |
| 1541 void AstPrinter::VisitUnaryOperation(UnaryOperation* node) { | 1541 void AstPrinter::VisitUnaryOperation(UnaryOperation* node) { |
| 1542 IndentedScope indent(this, Token::Name(node->op())); | 1542 IndentedScope indent(this, Token::Name(node->op())); |
| 1543 Visit(node->expression()); | 1543 Visit(node->expression()); |
| 1544 } | 1544 } |
| 1545 | 1545 |
| 1546 | 1546 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1590 | 1590 |
| 1591 void AstPrinter::VisitSuperCallReference(SuperCallReference* node) { | 1591 void AstPrinter::VisitSuperCallReference(SuperCallReference* node) { |
| 1592 IndentedScope indent(this, "SUPER-CALL-REFERENCE"); | 1592 IndentedScope indent(this, "SUPER-CALL-REFERENCE"); |
| 1593 } | 1593 } |
| 1594 | 1594 |
| 1595 | 1595 |
| 1596 #endif // DEBUG | 1596 #endif // DEBUG |
| 1597 | 1597 |
| 1598 } // namespace internal | 1598 } // namespace internal |
| 1599 } // namespace v8 | 1599 } // namespace v8 |
| OLD | NEW |