| 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 592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 603 } | 603 } |
| 604 | 604 |
| 605 | 605 |
| 606 void Float32x4ShuffleInstr::PrintOperandsTo(BufferFormatter* f) const { | 606 void Float32x4ShuffleInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 607 // TODO(johnmccutchan): Add proper string enumeration of shuffle. | 607 // TODO(johnmccutchan): Add proper string enumeration of shuffle. |
| 608 f->Print("SHUFFLE "); | 608 f->Print("SHUFFLE "); |
| 609 value()->PrintTo(f); | 609 value()->PrintTo(f); |
| 610 } | 610 } |
| 611 | 611 |
| 612 | 612 |
| 613 void Float32x4ZeroInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 614 f->Print("ZERO "); |
| 615 } |
| 616 |
| 617 |
| 618 void Float32x4SplatInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 619 f->Print("SPLAT "); |
| 620 value()->PrintTo(f); |
| 621 } |
| 622 |
| 623 |
| 624 void Float32x4ConstructorInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 625 f->Print("Float32x4("); |
| 626 value0()->PrintTo(f); |
| 627 f->Print(", "); |
| 628 value1()->PrintTo(f); |
| 629 f->Print(", "); |
| 630 value2()->PrintTo(f); |
| 631 f->Print(", "); |
| 632 value3()->PrintTo(f); |
| 633 f->Print(")"); |
| 634 } |
| 635 |
| 636 |
| 613 void BinaryMintOpInstr::PrintOperandsTo(BufferFormatter* f) const { | 637 void BinaryMintOpInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 614 f->Print("%s, ", Token::Str(op_kind())); | 638 f->Print("%s, ", Token::Str(op_kind())); |
| 615 left()->PrintTo(f); | 639 left()->PrintTo(f); |
| 616 f->Print(", "); | 640 f->Print(", "); |
| 617 right()->PrintTo(f); | 641 right()->PrintTo(f); |
| 618 } | 642 } |
| 619 | 643 |
| 620 | 644 |
| 621 void ShiftMintOpInstr::PrintOperandsTo(BufferFormatter* f) const { | 645 void ShiftMintOpInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 622 f->Print("%s, ", Token::Str(op_kind())); | 646 f->Print("%s, ", Token::Str(op_kind())); |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 791 f->Print(" ["); | 815 f->Print(" ["); |
| 792 locations_[i].PrintTo(f); | 816 locations_[i].PrintTo(f); |
| 793 f->Print("]"); | 817 f->Print("]"); |
| 794 } | 818 } |
| 795 } | 819 } |
| 796 f->Print(" }"); | 820 f->Print(" }"); |
| 797 if (outer_ != NULL) outer_->PrintTo(f); | 821 if (outer_ != NULL) outer_->PrintTo(f); |
| 798 } | 822 } |
| 799 | 823 |
| 800 } // namespace dart | 824 } // namespace dart |
| OLD | NEW |