| 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 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 609 } | 609 } |
| 610 | 610 |
| 611 | 611 |
| 612 void Float32x4ShuffleInstr::PrintOperandsTo(BufferFormatter* f) const { | 612 void Float32x4ShuffleInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 613 // TODO(johnmccutchan): Add proper string enumeration of shuffle. | 613 // TODO(johnmccutchan): Add proper string enumeration of shuffle. |
| 614 f->Print("SHUFFLE "); | 614 f->Print("SHUFFLE "); |
| 615 value()->PrintTo(f); | 615 value()->PrintTo(f); |
| 616 } | 616 } |
| 617 | 617 |
| 618 | 618 |
| 619 void Float32x4GetSignMaskInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 620 f->Print("Float32x4.getSignMask "); |
| 621 value()->PrintTo(f); |
| 622 } |
| 623 |
| 624 |
| 619 void Float32x4ZeroInstr::PrintOperandsTo(BufferFormatter* f) const { | 625 void Float32x4ZeroInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 620 f->Print("ZERO "); | 626 f->Print("ZERO "); |
| 621 } | 627 } |
| 622 | 628 |
| 623 | 629 |
| 624 void Float32x4SplatInstr::PrintOperandsTo(BufferFormatter* f) const { | 630 void Float32x4SplatInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 625 f->Print("SPLAT "); | 631 f->Print("SPLAT "); |
| 626 value()->PrintTo(f); | 632 value()->PrintTo(f); |
| 627 } | 633 } |
| 628 | 634 |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 716 f->Print(")"); | 722 f->Print(")"); |
| 717 } | 723 } |
| 718 | 724 |
| 719 | 725 |
| 720 void Uint32x4GetFlagInstr::PrintOperandsTo(BufferFormatter* f) const { | 726 void Uint32x4GetFlagInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 721 f->Print("Uint32x4.%s ", MethodRecognizer::KindToCString(op_kind())); | 727 f->Print("Uint32x4.%s ", MethodRecognizer::KindToCString(op_kind())); |
| 722 value()->PrintTo(f); | 728 value()->PrintTo(f); |
| 723 } | 729 } |
| 724 | 730 |
| 725 | 731 |
| 732 void Uint32x4GetSignMaskInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 733 f->Print("Uint32x4.getSignMask "); |
| 734 value()->PrintTo(f); |
| 735 } |
| 736 |
| 737 |
| 726 void Uint32x4SetFlagInstr::PrintOperandsTo(BufferFormatter* f) const { | 738 void Uint32x4SetFlagInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 727 f->Print("Uint32x4.%s ", MethodRecognizer::KindToCString(op_kind())); | 739 f->Print("Uint32x4.%s ", MethodRecognizer::KindToCString(op_kind())); |
| 728 value()->PrintTo(f); | 740 value()->PrintTo(f); |
| 729 f->Print(", "); | 741 f->Print(", "); |
| 730 flagValue()->PrintTo(f); | 742 flagValue()->PrintTo(f); |
| 731 } | 743 } |
| 732 | 744 |
| 733 | 745 |
| 734 void Uint32x4SelectInstr::PrintOperandsTo(BufferFormatter* f) const { | 746 void Uint32x4SelectInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 735 f->Print("Uint32x4.select "); | 747 f->Print("Uint32x4.select "); |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 969 f->Print(" ["); | 981 f->Print(" ["); |
| 970 locations_[i].PrintTo(f); | 982 locations_[i].PrintTo(f); |
| 971 f->Print("]"); | 983 f->Print("]"); |
| 972 } | 984 } |
| 973 } | 985 } |
| 974 f->Print(" }"); | 986 f->Print(" }"); |
| 975 if (outer_ != NULL) outer_->PrintTo(f); | 987 if (outer_ != NULL) outer_->PrintTo(f); |
| 976 } | 988 } |
| 977 | 989 |
| 978 } // namespace dart | 990 } // namespace dart |
| OLD | NEW |