| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| 11 // with the distribution. | 11 // with the distribution. |
| (...skipping 989 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1001 Variable* var = node->var(); | 1001 Variable* var = node->var(); |
| 1002 if (var != NULL && var->rewrite() != NULL) { | 1002 if (var != NULL && var->rewrite() != NULL) { |
| 1003 IndentedScope indent(this); | 1003 IndentedScope indent(this); |
| 1004 Visit(var->rewrite()); | 1004 Visit(var->rewrite()); |
| 1005 } | 1005 } |
| 1006 } | 1006 } |
| 1007 | 1007 |
| 1008 | 1008 |
| 1009 void AstPrinter::VisitAssignment(Assignment* node) { | 1009 void AstPrinter::VisitAssignment(Assignment* node) { |
| 1010 IndentedScope indent(this, Token::Name(node->op()), node); | 1010 IndentedScope indent(this, Token::Name(node->op()), node); |
| 1011 Print("%d ", node->id()); |
| 1011 Visit(node->target()); | 1012 Visit(node->target()); |
| 1012 Visit(node->value()); | 1013 Visit(node->value()); |
| 1013 } | 1014 } |
| 1014 | 1015 |
| 1015 | 1016 |
| 1016 void AstPrinter::VisitThrow(Throw* node) { | 1017 void AstPrinter::VisitThrow(Throw* node) { |
| 1017 PrintIndentedVisit("THROW", node->exception()); | 1018 PrintIndentedVisit("THROW", node->exception()); |
| 1018 } | 1019 } |
| 1019 | 1020 |
| 1020 | 1021 |
| (...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1521 AddAttribute("mode", Variable::Mode2String(decl->mode())); | 1522 AddAttribute("mode", Variable::Mode2String(decl->mode())); |
| 1522 } | 1523 } |
| 1523 Visit(decl->proxy()); | 1524 Visit(decl->proxy()); |
| 1524 if (decl->fun() != NULL) Visit(decl->fun()); | 1525 if (decl->fun() != NULL) Visit(decl->fun()); |
| 1525 } | 1526 } |
| 1526 | 1527 |
| 1527 | 1528 |
| 1528 #endif // DEBUG | 1529 #endif // DEBUG |
| 1529 | 1530 |
| 1530 } } // namespace v8::internal | 1531 } } // namespace v8::internal |
| OLD | NEW |