| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 V(HasInstanceTypeAndBranch) \ | 106 V(HasInstanceTypeAndBranch) \ |
| 107 V(In) \ | 107 V(In) \ |
| 108 V(InstanceOf) \ | 108 V(InstanceOf) \ |
| 109 V(InstanceOfKnownGlobal) \ | 109 V(InstanceOfKnownGlobal) \ |
| 110 V(InstanceSize) \ | 110 V(InstanceSize) \ |
| 111 V(InstructionGap) \ | 111 V(InstructionGap) \ |
| 112 V(Integer32ToDouble) \ | 112 V(Integer32ToDouble) \ |
| 113 V(Uint32ToDouble) \ | 113 V(Uint32ToDouble) \ |
| 114 V(InvokeFunction) \ | 114 V(InvokeFunction) \ |
| 115 V(IsConstructCallAndBranch) \ | 115 V(IsConstructCallAndBranch) \ |
| 116 V(IsNilAndBranch) \ | |
| 117 V(IsObjectAndBranch) \ | 116 V(IsObjectAndBranch) \ |
| 118 V(IsStringAndBranch) \ | 117 V(IsStringAndBranch) \ |
| 119 V(IsSmiAndBranch) \ | 118 V(IsSmiAndBranch) \ |
| 120 V(IsUndetectableAndBranch) \ | 119 V(IsUndetectableAndBranch) \ |
| 121 V(Label) \ | 120 V(Label) \ |
| 122 V(LazyBailout) \ | 121 V(LazyBailout) \ |
| 123 V(LoadContextSlot) \ | 122 V(LoadContextSlot) \ |
| 124 V(LoadExternalArrayPointer) \ | 123 V(LoadExternalArrayPointer) \ |
| 125 V(LoadFunctionPrototype) \ | 124 V(LoadFunctionPrototype) \ |
| 126 V(LoadGlobalCell) \ | 125 V(LoadGlobalCell) \ |
| (...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 840 } | 839 } |
| 841 | 840 |
| 842 LOperand* left() { return inputs_[0]; } | 841 LOperand* left() { return inputs_[0]; } |
| 843 | 842 |
| 844 DECLARE_CONCRETE_INSTRUCTION(CmpConstantEqAndBranch, | 843 DECLARE_CONCRETE_INSTRUCTION(CmpConstantEqAndBranch, |
| 845 "cmp-constant-eq-and-branch") | 844 "cmp-constant-eq-and-branch") |
| 846 DECLARE_HYDROGEN_ACCESSOR(CompareConstantEqAndBranch) | 845 DECLARE_HYDROGEN_ACCESSOR(CompareConstantEqAndBranch) |
| 847 }; | 846 }; |
| 848 | 847 |
| 849 | 848 |
| 850 class LIsNilAndBranch: public LControlInstruction<1, 0> { | |
| 851 public: | |
| 852 explicit LIsNilAndBranch(LOperand* value) { | |
| 853 inputs_[0] = value; | |
| 854 } | |
| 855 | |
| 856 LOperand* value() { return inputs_[0]; } | |
| 857 | |
| 858 DECLARE_CONCRETE_INSTRUCTION(IsNilAndBranch, "is-nil-and-branch") | |
| 859 DECLARE_HYDROGEN_ACCESSOR(IsNilAndBranch) | |
| 860 | |
| 861 EqualityKind kind() const { return hydrogen()->kind(); } | |
| 862 NilValue nil() const { return hydrogen()->nil(); } | |
| 863 | |
| 864 virtual void PrintDataTo(StringStream* stream); | |
| 865 }; | |
| 866 | |
| 867 | |
| 868 class LIsObjectAndBranch: public LControlInstruction<1, 1> { | 849 class LIsObjectAndBranch: public LControlInstruction<1, 1> { |
| 869 public: | 850 public: |
| 870 LIsObjectAndBranch(LOperand* value, LOperand* temp) { | 851 LIsObjectAndBranch(LOperand* value, LOperand* temp) { |
| 871 inputs_[0] = value; | 852 inputs_[0] = value; |
| 872 temps_[0] = temp; | 853 temps_[0] = temp; |
| 873 } | 854 } |
| 874 | 855 |
| 875 LOperand* value() { return inputs_[0]; } | 856 LOperand* value() { return inputs_[0]; } |
| 876 LOperand* temp() { return temps_[0]; } | 857 LOperand* temp() { return temps_[0]; } |
| 877 | 858 |
| (...skipping 1890 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2768 | 2749 |
| 2769 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2750 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2770 }; | 2751 }; |
| 2771 | 2752 |
| 2772 #undef DECLARE_HYDROGEN_ACCESSOR | 2753 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2773 #undef DECLARE_CONCRETE_INSTRUCTION | 2754 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2774 | 2755 |
| 2775 } } // namespace v8::internal | 2756 } } // namespace v8::internal |
| 2776 | 2757 |
| 2777 #endif // V8_MIPS_LITHIUM_MIPS_H_ | 2758 #endif // V8_MIPS_LITHIUM_MIPS_H_ |
| OLD | NEW |