| 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/intermediate_language.h" | 7 #include "vm/intermediate_language.h" |
| 8 #include "vm/os.h" | 8 #include "vm/os.h" |
| 9 | 9 |
| 10 namespace dart { | 10 namespace dart { |
| (...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 right()->PrintTo(f); | 316 right()->PrintTo(f); |
| 317 } | 317 } |
| 318 | 318 |
| 319 | 319 |
| 320 void UnarySmiOpComp::PrintOperandsTo(BufferFormatter* f) const { | 320 void UnarySmiOpComp::PrintOperandsTo(BufferFormatter* f) const { |
| 321 f->Print("%s, ", Token::Str(op_kind())); | 321 f->Print("%s, ", Token::Str(op_kind())); |
| 322 value()->PrintTo(f); | 322 value()->PrintTo(f); |
| 323 } | 323 } |
| 324 | 324 |
| 325 | 325 |
| 326 void ToDoubleComp::PrintOperandsTo(BufferFormatter* f) const { |
| 327 ASSERT(from() == kDouble || from() == kSmi); |
| 328 f->Print("%s ", from() == kDouble ? "double2double" : "smi2double"); |
| 329 value()->PrintTo(f); |
| 330 } |
| 331 |
| 332 |
| 326 void GraphEntryInstr::PrintTo(BufferFormatter* f) const { | 333 void GraphEntryInstr::PrintTo(BufferFormatter* f) const { |
| 327 f->Print("%2d: [graph]", block_id()); | 334 f->Print("%2d: [graph]", block_id()); |
| 328 } | 335 } |
| 329 | 336 |
| 330 | 337 |
| 331 void JoinEntryInstr::PrintTo(BufferFormatter* f) const { | 338 void JoinEntryInstr::PrintTo(BufferFormatter* f) const { |
| 332 f->Print("%2d: [join]", block_id()); | 339 f->Print("%2d: [join]", block_id()); |
| 333 } | 340 } |
| 334 | 341 |
| 335 | 342 |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 562 f->Print("_ %s ", DebugName()); | 569 f->Print("_ %s ", DebugName()); |
| 563 f->Print("if "); | 570 f->Print("if "); |
| 564 value()->PrintTo(f); | 571 value()->PrintTo(f); |
| 565 f->Print(" goto (B%d, B%d)", | 572 f->Print(" goto (B%d, B%d)", |
| 566 true_successor()->block_id(), | 573 true_successor()->block_id(), |
| 567 false_successor()->block_id()); | 574 false_successor()->block_id()); |
| 568 } | 575 } |
| 569 | 576 |
| 570 | 577 |
| 571 } // namespace dart | 578 } // namespace dart |
| OLD | NEW |