| 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 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 572 f->Print("%" Pd "", num_context_variables()); | 572 f->Print("%" Pd "", num_context_variables()); |
| 573 } | 573 } |
| 574 | 574 |
| 575 | 575 |
| 576 void MathUnaryInstr::PrintOperandsTo(BufferFormatter* f) const { | 576 void MathUnaryInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 577 f->Print("'%s', ", MethodRecognizer::KindToCString(kind())); | 577 f->Print("'%s', ", MethodRecognizer::KindToCString(kind())); |
| 578 value()->PrintTo(f); | 578 value()->PrintTo(f); |
| 579 } | 579 } |
| 580 | 580 |
| 581 | 581 |
| 582 void MergedMathInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 583 f->Print("'%s', ", MergedMathInstr::KindToCString(kind())); |
| 584 Definition::PrintOperandsTo(f); |
| 585 } |
| 586 |
| 587 |
| 582 void BinarySmiOpInstr::PrintTo(BufferFormatter* f) const { | 588 void BinarySmiOpInstr::PrintTo(BufferFormatter* f) const { |
| 583 Definition::PrintTo(f); | 589 Definition::PrintTo(f); |
| 584 f->Print(" %co", overflow_ ? '+' : '-'); | 590 f->Print(" %co", overflow_ ? '+' : '-'); |
| 585 f->Print(" %ct", is_truncating() ? '+' : '-'); | 591 f->Print(" %ct", is_truncating() ? '+' : '-'); |
| 586 } | 592 } |
| 587 | 593 |
| 588 | 594 |
| 589 void BinarySmiOpInstr::PrintOperandsTo(BufferFormatter* f) const { | 595 void BinarySmiOpInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 590 f->Print("%s, ", Token::Str(op_kind())); | 596 f->Print("%s, ", Token::Str(op_kind())); |
| 591 left()->PrintTo(f); | 597 left()->PrintTo(f); |
| (...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 984 f->Print(" ["); | 990 f->Print(" ["); |
| 985 locations_[i].PrintTo(f); | 991 locations_[i].PrintTo(f); |
| 986 f->Print("]"); | 992 f->Print("]"); |
| 987 } | 993 } |
| 988 } | 994 } |
| 989 f->Print(" }"); | 995 f->Print(" }"); |
| 990 if (outer_ != NULL) outer_->PrintTo(f); | 996 if (outer_ != NULL) outer_->PrintTo(f); |
| 991 } | 997 } |
| 992 | 998 |
| 993 } // namespace dart | 999 } // namespace dart |
| OLD | NEW |