| 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 589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 600 | 600 |
| 601 | 601 |
| 602 void BinaryFloat32x4OpInstr::PrintOperandsTo(BufferFormatter* f) const { | 602 void BinaryFloat32x4OpInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 603 f->Print("%s, ", Token::Str(op_kind())); | 603 f->Print("%s, ", Token::Str(op_kind())); |
| 604 left()->PrintTo(f); | 604 left()->PrintTo(f); |
| 605 f->Print(", "); | 605 f->Print(", "); |
| 606 right()->PrintTo(f); | 606 right()->PrintTo(f); |
| 607 } | 607 } |
| 608 | 608 |
| 609 | 609 |
| 610 void Float32x4ShuffleInstr::PrintOperandsTo(BufferFormatter* f) const { | 610 void Simd32x4ShuffleInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 611 // TODO(johnmccutchan): Add proper string enumeration of shuffle. | 611 // TODO(johnmccutchan): Add proper string enumeration of shuffle. |
| 612 f->Print("SHUFFLE "); | 612 f->Print("%s, ", MethodRecognizer::KindToCString(op_kind())); |
| 613 value()->PrintTo(f); | 613 value()->PrintTo(f); |
| 614 } | 614 } |
| 615 | 615 |
| 616 void Simd32x4ShuffleMixInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 617 f->Print("%s, ", MethodRecognizer::KindToCString(op_kind())); |
| 618 xy()->PrintTo(f); |
| 619 f->Print(", "); |
| 620 zw()->PrintTo(f); |
| 621 } |
| 622 |
| 616 | 623 |
| 617 void Simd32x4GetSignMaskInstr::PrintOperandsTo(BufferFormatter* f) const { | 624 void Simd32x4GetSignMaskInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 618 if (op_kind() == MethodRecognizer::kFloat32x4GetSignMask) { | 625 if (op_kind() == MethodRecognizer::kFloat32x4GetSignMask) { |
| 619 f->Print("Float32x4.getSignMask "); | 626 f->Print("Float32x4.getSignMask "); |
| 620 } else { | 627 } else { |
| 621 ASSERT(op_kind() == MethodRecognizer::kUint32x4GetSignMask); | 628 ASSERT(op_kind() == MethodRecognizer::kUint32x4GetSignMask); |
| 622 f->Print("Uint32x4.getSignMask "); | 629 f->Print("Uint32x4.getSignMask "); |
| 623 } | 630 } |
| 624 value()->PrintTo(f); | 631 value()->PrintTo(f); |
| 625 } | 632 } |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 699 replacement()->PrintTo(f); | 706 replacement()->PrintTo(f); |
| 700 } | 707 } |
| 701 | 708 |
| 702 | 709 |
| 703 void Float32x4ToUint32x4Instr::PrintOperandsTo(BufferFormatter* f) const { | 710 void Float32x4ToUint32x4Instr::PrintOperandsTo(BufferFormatter* f) const { |
| 704 f->Print("Float32x4.toUint32x4 "); | 711 f->Print("Float32x4.toUint32x4 "); |
| 705 left()->PrintTo(f); | 712 left()->PrintTo(f); |
| 706 } | 713 } |
| 707 | 714 |
| 708 | 715 |
| 709 void Float32x4TwoArgShuffleInstr::PrintOperandsTo(BufferFormatter* f) const { | 716 |
| 710 f->Print("%s, ", MethodRecognizer::KindToCString(op_kind())); | |
| 711 left()->PrintTo(f); | |
| 712 f->Print(", "); | |
| 713 right()->PrintTo(f); | |
| 714 } | |
| 715 | 717 |
| 716 | 718 |
| 717 void Uint32x4BoolConstructorInstr::PrintOperandsTo(BufferFormatter* f) const { | 719 void Uint32x4BoolConstructorInstr::PrintOperandsTo(BufferFormatter* f) const { |
| 718 f->Print("Uint32x4.bool("); | 720 f->Print("Uint32x4.bool("); |
| 719 value0()->PrintTo(f); | 721 value0()->PrintTo(f); |
| 720 f->Print(", "); | 722 f->Print(", "); |
| 721 value1()->PrintTo(f); | 723 value1()->PrintTo(f); |
| 722 f->Print(", "); | 724 f->Print(", "); |
| 723 value2()->PrintTo(f); | 725 value2()->PrintTo(f); |
| 724 f->Print(", "); | 726 f->Print(", "); |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 979 f->Print(" ["); | 981 f->Print(" ["); |
| 980 locations_[i].PrintTo(f); | 982 locations_[i].PrintTo(f); |
| 981 f->Print("]"); | 983 f->Print("]"); |
| 982 } | 984 } |
| 983 } | 985 } |
| 984 f->Print(" }"); | 986 f->Print(" }"); |
| 985 if (outer_ != NULL) outer_->PrintTo(f); | 987 if (outer_ != NULL) outer_->PrintTo(f); |
| 986 } | 988 } |
| 987 | 989 |
| 988 } // namespace dart | 990 } // namespace dart |
| OLD | NEW |