OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 V(HasInstanceTypeAndBranch) \ | 102 V(HasInstanceTypeAndBranch) \ |
103 V(In) \ | 103 V(In) \ |
104 V(InstanceOf) \ | 104 V(InstanceOf) \ |
105 V(InstanceOfKnownGlobal) \ | 105 V(InstanceOfKnownGlobal) \ |
106 V(InstructionGap) \ | 106 V(InstructionGap) \ |
107 V(Integer32ToDouble) \ | 107 V(Integer32ToDouble) \ |
108 V(InvokeFunction) \ | 108 V(InvokeFunction) \ |
109 V(IsConstructCallAndBranch) \ | 109 V(IsConstructCallAndBranch) \ |
110 V(IsNilAndBranch) \ | 110 V(IsNilAndBranch) \ |
111 V(IsObjectAndBranch) \ | 111 V(IsObjectAndBranch) \ |
| 112 V(IsStringAndBranch) \ |
112 V(IsSmiAndBranch) \ | 113 V(IsSmiAndBranch) \ |
113 V(IsUndetectableAndBranch) \ | 114 V(IsUndetectableAndBranch) \ |
| 115 V(StringCompareAndBranch) \ |
114 V(JSArrayLength) \ | 116 V(JSArrayLength) \ |
115 V(Label) \ | 117 V(Label) \ |
116 V(LazyBailout) \ | 118 V(LazyBailout) \ |
117 V(LoadContextSlot) \ | 119 V(LoadContextSlot) \ |
118 V(LoadElements) \ | 120 V(LoadElements) \ |
119 V(LoadExternalArrayPointer) \ | 121 V(LoadExternalArrayPointer) \ |
120 V(LoadFunctionPrototype) \ | 122 V(LoadFunctionPrototype) \ |
121 V(LoadGlobalCell) \ | 123 V(LoadGlobalCell) \ |
122 V(LoadGlobalGeneric) \ | 124 V(LoadGlobalGeneric) \ |
123 V(LoadKeyedFastDoubleElement) \ | 125 V(LoadKeyedFastDoubleElement) \ |
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
651 temps_[0] = temp; | 653 temps_[0] = temp; |
652 } | 654 } |
653 | 655 |
654 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch") | 656 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch") |
655 DECLARE_HYDROGEN_ACCESSOR(IsObjectAndBranch) | 657 DECLARE_HYDROGEN_ACCESSOR(IsObjectAndBranch) |
656 | 658 |
657 virtual void PrintDataTo(StringStream* stream); | 659 virtual void PrintDataTo(StringStream* stream); |
658 }; | 660 }; |
659 | 661 |
660 | 662 |
| 663 class LIsStringAndBranch: public LControlInstruction<1, 1> { |
| 664 public: |
| 665 LIsStringAndBranch(LOperand* value, LOperand* temp) { |
| 666 inputs_[0] = value; |
| 667 temps_[0] = temp; |
| 668 } |
| 669 |
| 670 DECLARE_CONCRETE_INSTRUCTION(IsStringAndBranch, "is-string-and-branch") |
| 671 DECLARE_HYDROGEN_ACCESSOR(IsStringAndBranch) |
| 672 |
| 673 virtual void PrintDataTo(StringStream* stream); |
| 674 }; |
| 675 |
| 676 |
661 class LIsSmiAndBranch: public LControlInstruction<1, 0> { | 677 class LIsSmiAndBranch: public LControlInstruction<1, 0> { |
662 public: | 678 public: |
663 explicit LIsSmiAndBranch(LOperand* value) { | 679 explicit LIsSmiAndBranch(LOperand* value) { |
664 inputs_[0] = value; | 680 inputs_[0] = value; |
665 } | 681 } |
666 | 682 |
667 DECLARE_CONCRETE_INSTRUCTION(IsSmiAndBranch, "is-smi-and-branch") | 683 DECLARE_CONCRETE_INSTRUCTION(IsSmiAndBranch, "is-smi-and-branch") |
668 DECLARE_HYDROGEN_ACCESSOR(IsSmiAndBranch) | 684 DECLARE_HYDROGEN_ACCESSOR(IsSmiAndBranch) |
669 | 685 |
670 virtual void PrintDataTo(StringStream* stream); | 686 virtual void PrintDataTo(StringStream* stream); |
671 }; | 687 }; |
672 | 688 |
673 | 689 |
674 class LIsUndetectableAndBranch: public LControlInstruction<1, 1> { | 690 class LIsUndetectableAndBranch: public LControlInstruction<1, 1> { |
675 public: | 691 public: |
676 explicit LIsUndetectableAndBranch(LOperand* value, LOperand* temp) { | 692 explicit LIsUndetectableAndBranch(LOperand* value, LOperand* temp) { |
677 inputs_[0] = value; | 693 inputs_[0] = value; |
678 temps_[0] = temp; | 694 temps_[0] = temp; |
679 } | 695 } |
680 | 696 |
681 DECLARE_CONCRETE_INSTRUCTION(IsUndetectableAndBranch, | 697 DECLARE_CONCRETE_INSTRUCTION(IsUndetectableAndBranch, |
682 "is-undetectable-and-branch") | 698 "is-undetectable-and-branch") |
683 DECLARE_HYDROGEN_ACCESSOR(IsUndetectableAndBranch) | 699 DECLARE_HYDROGEN_ACCESSOR(IsUndetectableAndBranch) |
684 | 700 |
685 virtual void PrintDataTo(StringStream* stream); | 701 virtual void PrintDataTo(StringStream* stream); |
686 }; | 702 }; |
687 | 703 |
688 | 704 |
| 705 class LStringCompareAndBranch: public LControlInstruction<2, 0> { |
| 706 public: |
| 707 LStringCompareAndBranch(LOperand* left, LOperand* right) { |
| 708 inputs_[0] = left; |
| 709 inputs_[1] = right; |
| 710 } |
| 711 |
| 712 DECLARE_CONCRETE_INSTRUCTION(StringCompareAndBranch, |
| 713 "compare-generic-and-branch") |
| 714 DECLARE_HYDROGEN_ACCESSOR(StringCompareAndBranch) |
| 715 |
| 716 Token::Value op() const { return hydrogen()->token(); } |
| 717 |
| 718 virtual void PrintDataTo(StringStream* stream); |
| 719 }; |
| 720 |
| 721 |
689 class LHasInstanceTypeAndBranch: public LControlInstruction<1, 0> { | 722 class LHasInstanceTypeAndBranch: public LControlInstruction<1, 0> { |
690 public: | 723 public: |
691 explicit LHasInstanceTypeAndBranch(LOperand* value) { | 724 explicit LHasInstanceTypeAndBranch(LOperand* value) { |
692 inputs_[0] = value; | 725 inputs_[0] = value; |
693 } | 726 } |
694 | 727 |
695 DECLARE_CONCRETE_INSTRUCTION(HasInstanceTypeAndBranch, | 728 DECLARE_CONCRETE_INSTRUCTION(HasInstanceTypeAndBranch, |
696 "has-instance-type-and-branch") | 729 "has-instance-type-and-branch") |
697 DECLARE_HYDROGEN_ACCESSOR(HasInstanceTypeAndBranch) | 730 DECLARE_HYDROGEN_ACCESSOR(HasInstanceTypeAndBranch) |
698 | 731 |
(...skipping 1517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2216 | 2249 |
2217 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2250 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2218 }; | 2251 }; |
2219 | 2252 |
2220 #undef DECLARE_HYDROGEN_ACCESSOR | 2253 #undef DECLARE_HYDROGEN_ACCESSOR |
2221 #undef DECLARE_CONCRETE_INSTRUCTION | 2254 #undef DECLARE_CONCRETE_INSTRUCTION |
2222 | 2255 |
2223 } } // namespace v8::internal | 2256 } } // namespace v8::internal |
2224 | 2257 |
2225 #endif // V8_MIPS_LITHIUM_MIPS_H_ | 2258 #endif // V8_MIPS_LITHIUM_MIPS_H_ |
OLD | NEW |