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 555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
566 value()->PrintTo(f); | 566 value()->PrintTo(f); |
567 } | 567 } |
568 | 568 |
569 | 569 |
570 void MergedMathInstr::PrintOperandsTo(BufferFormatter* f) const { | 570 void MergedMathInstr::PrintOperandsTo(BufferFormatter* f) const { |
571 f->Print("'%s', ", MergedMathInstr::KindToCString(kind())); | 571 f->Print("'%s', ", MergedMathInstr::KindToCString(kind())); |
572 Definition::PrintOperandsTo(f); | 572 Definition::PrintOperandsTo(f); |
573 } | 573 } |
574 | 574 |
575 | 575 |
| 576 void ExtractNthOutputInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 577 f->Print("Extract %" Pd " from ", index()); |
| 578 Definition::PrintOperandsTo(f); |
| 579 } |
| 580 |
| 581 |
576 void BinarySmiOpInstr::PrintTo(BufferFormatter* f) const { | 582 void BinarySmiOpInstr::PrintTo(BufferFormatter* f) const { |
577 Definition::PrintTo(f); | 583 Definition::PrintTo(f); |
578 f->Print(" %co", overflow_ ? '+' : '-'); | 584 f->Print(" %co", overflow_ ? '+' : '-'); |
579 f->Print(" %ct", is_truncating() ? '+' : '-'); | 585 f->Print(" %ct", is_truncating() ? '+' : '-'); |
580 } | 586 } |
581 | 587 |
582 | 588 |
583 void BinarySmiOpInstr::PrintOperandsTo(BufferFormatter* f) const { | 589 void BinarySmiOpInstr::PrintOperandsTo(BufferFormatter* f) const { |
584 f->Print("%s, ", Token::Str(op_kind())); | 590 f->Print("%s, ", Token::Str(op_kind())); |
585 left()->PrintTo(f); | 591 left()->PrintTo(f); |
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1038 f->Print(" ["); | 1044 f->Print(" ["); |
1039 locations_[i].PrintTo(f); | 1045 locations_[i].PrintTo(f); |
1040 f->Print("]"); | 1046 f->Print("]"); |
1041 } | 1047 } |
1042 } | 1048 } |
1043 f->Print(" }"); | 1049 f->Print(" }"); |
1044 if (outer_ != NULL) outer_->PrintTo(f); | 1050 if (outer_ != NULL) outer_->PrintTo(f); |
1045 } | 1051 } |
1046 | 1052 |
1047 } // namespace dart | 1053 } // namespace dart |
OLD | NEW |