| 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 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 374 } | 374 } |
| 375 | 375 |
| 376 | 376 |
| 377 void CatchEntryComp::PrintOperandsTo(BufferFormatter* f) const { | 377 void CatchEntryComp::PrintOperandsTo(BufferFormatter* f) const { |
| 378 f->Print("%s, %s", | 378 f->Print("%s, %s", |
| 379 exception_var().name().ToCString(), | 379 exception_var().name().ToCString(), |
| 380 stacktrace_var().name().ToCString()); | 380 stacktrace_var().name().ToCString()); |
| 381 } | 381 } |
| 382 | 382 |
| 383 | 383 |
| 384 void BinaryOpComp::PrintOperandsTo(BufferFormatter* f) const { | 384 void BinarySmiOpComp::PrintOperandsTo(BufferFormatter* f) const { |
| 385 f->Print("%s, ", Token::Str(op_kind())); | 385 f->Print("%s, ", Token::Str(op_kind())); |
| 386 left()->PrintTo(f); | 386 left()->PrintTo(f); |
| 387 f->Print(", "); | 387 f->Print(", "); |
| 388 right()->PrintTo(f); | 388 right()->PrintTo(f); |
| 389 } | 389 } |
| 390 | 390 |
| 391 | 391 |
| 392 void DoubleBinaryOpComp::PrintOperandsTo(BufferFormatter* f) const { | 392 void BinaryMintOpComp::PrintOperandsTo(BufferFormatter* f) const { |
| 393 f->Print("%s, ", Token::Str(op_kind())); |
| 394 left()->PrintTo(f); |
| 395 f->Print(", "); |
| 396 right()->PrintTo(f); |
| 397 } |
| 398 |
| 399 |
| 400 void BinaryDoubleOpComp::PrintOperandsTo(BufferFormatter* f) const { |
| 393 f->Print("%s", Token::Str(op_kind())); | 401 f->Print("%s", Token::Str(op_kind())); |
| 394 } | 402 } |
| 395 | 403 |
| 396 | 404 |
| 397 void UnarySmiOpComp::PrintOperandsTo(BufferFormatter* f) const { | 405 void UnarySmiOpComp::PrintOperandsTo(BufferFormatter* f) const { |
| 398 f->Print("%s, ", Token::Str(op_kind())); | 406 f->Print("%s, ", Token::Str(op_kind())); |
| 399 value()->PrintTo(f); | 407 value()->PrintTo(f); |
| 400 } | 408 } |
| 401 | 409 |
| 402 | 410 |
| (...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 812 if ((locations_ != NULL) && !locations_[i].IsInvalid()) { | 820 if ((locations_ != NULL) && !locations_[i].IsInvalid()) { |
| 813 f->Print(" ["); | 821 f->Print(" ["); |
| 814 locations_[i].PrintTo(f); | 822 locations_[i].PrintTo(f); |
| 815 f->Print("]"); | 823 f->Print("]"); |
| 816 } | 824 } |
| 817 } | 825 } |
| 818 f->Print(" }"); | 826 f->Print(" }"); |
| 819 } | 827 } |
| 820 | 828 |
| 821 } // namespace dart | 829 } // namespace dart |
| OLD | NEW |