OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #include "vm/il_printer.h" | 5 #include "vm/il_printer.h" |
6 | 6 |
7 #include "vm/flow_graph_range_analysis.h" | 7 #include "vm/flow_graph_range_analysis.h" |
8 #include "vm/intermediate_language.h" | 8 #include "vm/intermediate_language.h" |
9 #include "vm/os.h" | 9 #include "vm/os.h" |
10 #include "vm/parser.h" | 10 #include "vm/parser.h" |
(...skipping 1257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1268 if (outer_ != NULL) outer_->PrintTo(f); | 1268 if (outer_ != NULL) outer_->PrintTo(f); |
1269 } | 1269 } |
1270 | 1270 |
1271 const char* Environment::ToCString() const { | 1271 const char* Environment::ToCString() const { |
1272 char buffer[1024]; | 1272 char buffer[1024]; |
1273 BufferFormatter bf(buffer, 1024); | 1273 BufferFormatter bf(buffer, 1024); |
1274 PrintTo(&bf); | 1274 PrintTo(&bf); |
1275 return Thread::Current()->zone()->MakeCopyOfString(buffer); | 1275 return Thread::Current()->zone()->MakeCopyOfString(buffer); |
1276 } | 1276 } |
1277 | 1277 |
| 1278 |
1278 #else // PRODUCT | 1279 #else // PRODUCT |
1279 | 1280 |
| 1281 |
| 1282 const char* Instruction::ToCString() const { |
| 1283 return DebugName(); |
| 1284 } |
| 1285 |
| 1286 |
1280 void FlowGraphPrinter::PrintOneInstruction(Instruction* instr, | 1287 void FlowGraphPrinter::PrintOneInstruction(Instruction* instr, |
1281 bool print_locations) { | 1288 bool print_locations) { |
1282 UNREACHABLE(); | 1289 UNREACHABLE(); |
1283 } | 1290 } |
1284 | 1291 |
1285 | 1292 |
1286 void FlowGraphPrinter::PrintTypeCheck(const ParsedFunction& parsed_function, | 1293 void FlowGraphPrinter::PrintTypeCheck(const ParsedFunction& parsed_function, |
1287 TokenPosition token_pos, | 1294 TokenPosition token_pos, |
1288 Value* value, | 1295 Value* value, |
1289 const AbstractType& dst_type, | 1296 const AbstractType& dst_type, |
(...skipping 20 matching lines...) Expand all Loading... |
1310 } | 1317 } |
1311 | 1318 |
1312 | 1319 |
1313 bool FlowGraphPrinter::ShouldPrint(const Function& function) { | 1320 bool FlowGraphPrinter::ShouldPrint(const Function& function) { |
1314 return false; | 1321 return false; |
1315 } | 1322 } |
1316 | 1323 |
1317 #endif // !PRODUCT | 1324 #endif // !PRODUCT |
1318 | 1325 |
1319 } // namespace dart | 1326 } // namespace dart |
OLD | NEW |