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 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 } | 341 } |
342 } | 342 } |
343 | 343 |
344 | 344 |
345 void PrettyPrinter::VisitCall(Call* node) { | 345 void PrettyPrinter::VisitCall(Call* node) { |
346 Visit(node->expression()); | 346 Visit(node->expression()); |
347 PrintArguments(node->arguments()); | 347 PrintArguments(node->arguments()); |
348 } | 348 } |
349 | 349 |
350 | 350 |
| 351 void PrettyPrinter::VisitCallEval(CallEval* node) { |
| 352 VisitCall(node); |
| 353 } |
| 354 |
| 355 |
351 void PrettyPrinter::VisitCallNew(CallNew* node) { | 356 void PrettyPrinter::VisitCallNew(CallNew* node) { |
352 Print("new ("); | 357 Print("new ("); |
353 Visit(node->expression()); | 358 Visit(node->expression()); |
354 Print(")"); | 359 Print(")"); |
355 PrintArguments(node->arguments()); | 360 PrintArguments(node->arguments()); |
356 } | 361 } |
357 | 362 |
358 | 363 |
359 void PrettyPrinter::VisitCallRuntime(CallRuntime* node) { | 364 void PrettyPrinter::VisitCallRuntime(CallRuntime* node) { |
360 Print("%%"); | 365 Print("%%"); |
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1009 } | 1014 } |
1010 | 1015 |
1011 | 1016 |
1012 void AstPrinter::VisitCall(Call* node) { | 1017 void AstPrinter::VisitCall(Call* node) { |
1013 IndentedScope indent("CALL"); | 1018 IndentedScope indent("CALL"); |
1014 Visit(node->expression()); | 1019 Visit(node->expression()); |
1015 PrintArguments(node->arguments()); | 1020 PrintArguments(node->arguments()); |
1016 } | 1021 } |
1017 | 1022 |
1018 | 1023 |
| 1024 void AstPrinter::VisitCallEval(CallEval* node) { |
| 1025 VisitCall(node); |
| 1026 } |
| 1027 |
| 1028 |
1019 void AstPrinter::VisitCallNew(CallNew* node) { | 1029 void AstPrinter::VisitCallNew(CallNew* node) { |
1020 IndentedScope indent("CALL NEW"); | 1030 IndentedScope indent("CALL NEW"); |
1021 Visit(node->expression()); | 1031 Visit(node->expression()); |
1022 PrintArguments(node->arguments()); | 1032 PrintArguments(node->arguments()); |
1023 } | 1033 } |
1024 | 1034 |
1025 | 1035 |
1026 void AstPrinter::VisitCallRuntime(CallRuntime* node) { | 1036 void AstPrinter::VisitCallRuntime(CallRuntime* node) { |
1027 PrintLiteralIndented("CALL RUNTIME ", node->name(), false); | 1037 PrintLiteralIndented("CALL RUNTIME ", node->name(), false); |
1028 IndentedScope indent; | 1038 IndentedScope indent; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1066 | 1076 |
1067 void AstPrinter::VisitThisFunction(ThisFunction* node) { | 1077 void AstPrinter::VisitThisFunction(ThisFunction* node) { |
1068 IndentedScope indent("THIS-FUNCTION"); | 1078 IndentedScope indent("THIS-FUNCTION"); |
1069 } | 1079 } |
1070 | 1080 |
1071 | 1081 |
1072 | 1082 |
1073 #endif // DEBUG | 1083 #endif // DEBUG |
1074 | 1084 |
1075 } } // namespace v8::internal | 1085 } } // namespace v8::internal |
OLD | NEW |