| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 1103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1114 void TextInstructionPrinter::VisitDeclaration(Declaration* decl) { | 1114 void TextInstructionPrinter::VisitDeclaration(Declaration* decl) { |
| 1115 UNREACHABLE(); | 1115 UNREACHABLE(); |
| 1116 } | 1116 } |
| 1117 | 1117 |
| 1118 | 1118 |
| 1119 void TextInstructionPrinter::VisitBlock(Block* stmt) { | 1119 void TextInstructionPrinter::VisitBlock(Block* stmt) { |
| 1120 PrintF("Block"); | 1120 PrintF("Block"); |
| 1121 } | 1121 } |
| 1122 | 1122 |
| 1123 | 1123 |
| 1124 void TextInstructionPrinter::VisitExpressionStatement(ExpressionStatement* stmt)
{ | 1124 void TextInstructionPrinter::VisitExpressionStatement( |
| 1125 ExpressionStatement* stmt) { |
| 1125 PrintF("ExpressionStatement"); | 1126 PrintF("ExpressionStatement"); |
| 1126 } | 1127 } |
| 1127 | 1128 |
| 1128 | 1129 |
| 1129 void TextInstructionPrinter::VisitEmptyStatement(EmptyStatement* stmt) { | 1130 void TextInstructionPrinter::VisitEmptyStatement(EmptyStatement* stmt) { |
| 1130 PrintF("EmptyStatement"); | 1131 PrintF("EmptyStatement"); |
| 1131 } | 1132 } |
| 1132 | 1133 |
| 1133 | 1134 |
| 1134 void TextInstructionPrinter::VisitIfStatement(IfStatement* stmt) { | 1135 void TextInstructionPrinter::VisitIfStatement(IfStatement* stmt) { |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1451 for (int i = postorder->length() - 1; i >= 0; i--) { | 1452 for (int i = postorder->length() - 1; i >= 0; i--) { |
| 1452 postorder->at(i)->PrintText(); | 1453 postorder->at(i)->PrintText(); |
| 1453 } | 1454 } |
| 1454 } | 1455 } |
| 1455 | 1456 |
| 1456 | 1457 |
| 1457 #endif // defined(DEBUG) | 1458 #endif // defined(DEBUG) |
| 1458 | 1459 |
| 1459 | 1460 |
| 1460 } } // namespace v8::internal | 1461 } } // namespace v8::internal |
| OLD | NEW |