| 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 #include "vm/parser.h" | 9 #include "vm/parser.h" |
| 10 | 10 |
| (...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 378 | 378 |
| 379 | 379 |
| 380 void BinaryOpComp::PrintOperandsTo(BufferFormatter* f) const { | 380 void BinaryOpComp::PrintOperandsTo(BufferFormatter* f) const { |
| 381 f->Print("%s, ", Token::Str(op_kind())); | 381 f->Print("%s, ", Token::Str(op_kind())); |
| 382 left()->PrintTo(f); | 382 left()->PrintTo(f); |
| 383 f->Print(", "); | 383 f->Print(", "); |
| 384 right()->PrintTo(f); | 384 right()->PrintTo(f); |
| 385 } | 385 } |
| 386 | 386 |
| 387 | 387 |
| 388 void DoubleBinaryOpComp::PrintOperandsTo(BufferFormatter* f) const { |
| 389 f->Print("%s", Token::Str(op_kind())); |
| 390 } |
| 391 |
| 392 |
| 388 void UnarySmiOpComp::PrintOperandsTo(BufferFormatter* f) const { | 393 void UnarySmiOpComp::PrintOperandsTo(BufferFormatter* f) const { |
| 389 f->Print("%s, ", Token::Str(op_kind())); | 394 f->Print("%s, ", Token::Str(op_kind())); |
| 390 value()->PrintTo(f); | 395 value()->PrintTo(f); |
| 391 } | 396 } |
| 392 | 397 |
| 393 | 398 |
| 394 void ToDoubleComp::PrintOperandsTo(BufferFormatter* f) const { | 399 void ToDoubleComp::PrintOperandsTo(BufferFormatter* f) const { |
| 395 ASSERT(from() == kDouble || from() == kSmi); | 400 ASSERT(from() == kDouble || from() == kSmi); |
| 396 f->Print("%s ", from() == kDouble ? "double2double" : "smi2double"); | 401 f->Print("%s ", from() == kDouble ? "double2double" : "smi2double"); |
| 397 value()->PrintTo(f); | 402 value()->PrintTo(f); |
| (...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 790 if ((i < locations_.length()) && !locations_[i].IsInvalid()) { | 795 if ((i < locations_.length()) && !locations_[i].IsInvalid()) { |
| 791 f->Print(" ["); | 796 f->Print(" ["); |
| 792 locations_[i].PrintTo(f); | 797 locations_[i].PrintTo(f); |
| 793 f->Print("]"); | 798 f->Print("]"); |
| 794 } | 799 } |
| 795 } | 800 } |
| 796 f->Print(" }"); | 801 f->Print(" }"); |
| 797 } | 802 } |
| 798 | 803 |
| 799 } // namespace dart | 804 } // namespace dart |
| OLD | NEW |