| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 |
| (...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 } | 351 } |
| 352 } | 352 } |
| 353 | 353 |
| 354 | 354 |
| 355 void PrettyPrinter::VisitCall(Call* node) { | 355 void PrettyPrinter::VisitCall(Call* node) { |
| 356 Visit(node->expression()); | 356 Visit(node->expression()); |
| 357 PrintArguments(node->arguments()); | 357 PrintArguments(node->arguments()); |
| 358 } | 358 } |
| 359 | 359 |
| 360 | 360 |
| 361 void PrettyPrinter::VisitCallEval(CallEval* node) { | |
| 362 VisitCall(node); | |
| 363 } | |
| 364 | |
| 365 | |
| 366 void PrettyPrinter::VisitCallNew(CallNew* node) { | 361 void PrettyPrinter::VisitCallNew(CallNew* node) { |
| 367 Print("new ("); | 362 Print("new ("); |
| 368 Visit(node->expression()); | 363 Visit(node->expression()); |
| 369 Print(")"); | 364 Print(")"); |
| 370 PrintArguments(node->arguments()); | 365 PrintArguments(node->arguments()); |
| 371 } | 366 } |
| 372 | 367 |
| 373 | 368 |
| 374 void PrettyPrinter::VisitCallRuntime(CallRuntime* node) { | 369 void PrettyPrinter::VisitCallRuntime(CallRuntime* node) { |
| 375 Print("%%"); | 370 Print("%%"); |
| (...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1033 } | 1028 } |
| 1034 | 1029 |
| 1035 | 1030 |
| 1036 void AstPrinter::VisitCall(Call* node) { | 1031 void AstPrinter::VisitCall(Call* node) { |
| 1037 IndentedScope indent("CALL"); | 1032 IndentedScope indent("CALL"); |
| 1038 Visit(node->expression()); | 1033 Visit(node->expression()); |
| 1039 PrintArguments(node->arguments()); | 1034 PrintArguments(node->arguments()); |
| 1040 } | 1035 } |
| 1041 | 1036 |
| 1042 | 1037 |
| 1043 void AstPrinter::VisitCallEval(CallEval* node) { | |
| 1044 VisitCall(node); | |
| 1045 } | |
| 1046 | |
| 1047 | |
| 1048 void AstPrinter::VisitCallNew(CallNew* node) { | 1038 void AstPrinter::VisitCallNew(CallNew* node) { |
| 1049 IndentedScope indent("CALL NEW"); | 1039 IndentedScope indent("CALL NEW"); |
| 1050 Visit(node->expression()); | 1040 Visit(node->expression()); |
| 1051 PrintArguments(node->arguments()); | 1041 PrintArguments(node->arguments()); |
| 1052 } | 1042 } |
| 1053 | 1043 |
| 1054 | 1044 |
| 1055 void AstPrinter::VisitCallRuntime(CallRuntime* node) { | 1045 void AstPrinter::VisitCallRuntime(CallRuntime* node) { |
| 1056 PrintLiteralIndented("CALL RUNTIME ", node->name(), false); | 1046 PrintLiteralIndented("CALL RUNTIME ", node->name(), false); |
| 1057 IndentedScope indent; | 1047 IndentedScope indent; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1095 | 1085 |
| 1096 void AstPrinter::VisitThisFunction(ThisFunction* node) { | 1086 void AstPrinter::VisitThisFunction(ThisFunction* node) { |
| 1097 IndentedScope indent("THIS-FUNCTION"); | 1087 IndentedScope indent("THIS-FUNCTION"); |
| 1098 } | 1088 } |
| 1099 | 1089 |
| 1100 | 1090 |
| 1101 | 1091 |
| 1102 #endif // DEBUG | 1092 #endif // DEBUG |
| 1103 | 1093 |
| 1104 } } // namespace v8::internal | 1094 } } // namespace v8::internal |
| OLD | NEW |