OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_MIPS_LITHIUM_MIPS_H_ | 5 #ifndef V8_MIPS_LITHIUM_MIPS_H_ |
6 #define V8_MIPS_LITHIUM_MIPS_H_ | 6 #define V8_MIPS_LITHIUM_MIPS_H_ |
7 | 7 |
8 #include "src/hydrogen.h" | 8 #include "src/hydrogen.h" |
9 #include "src/lithium.h" | 9 #include "src/lithium.h" |
10 #include "src/lithium-allocator.h" | 10 #include "src/lithium-allocator.h" |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 V(Goto) \ | 86 V(Goto) \ |
87 V(HasCachedArrayIndexAndBranch) \ | 87 V(HasCachedArrayIndexAndBranch) \ |
88 V(HasInPrototypeChainAndBranch) \ | 88 V(HasInPrototypeChainAndBranch) \ |
89 V(HasInstanceTypeAndBranch) \ | 89 V(HasInstanceTypeAndBranch) \ |
90 V(InnerAllocatedObject) \ | 90 V(InnerAllocatedObject) \ |
91 V(InstanceOf) \ | 91 V(InstanceOf) \ |
92 V(InstructionGap) \ | 92 V(InstructionGap) \ |
93 V(Integer32ToDouble) \ | 93 V(Integer32ToDouble) \ |
94 V(InvokeFunction) \ | 94 V(InvokeFunction) \ |
95 V(IsConstructCallAndBranch) \ | 95 V(IsConstructCallAndBranch) \ |
96 V(IsObjectAndBranch) \ | |
97 V(IsStringAndBranch) \ | 96 V(IsStringAndBranch) \ |
98 V(IsSmiAndBranch) \ | 97 V(IsSmiAndBranch) \ |
99 V(IsUndetectableAndBranch) \ | 98 V(IsUndetectableAndBranch) \ |
100 V(Label) \ | 99 V(Label) \ |
101 V(LazyBailout) \ | 100 V(LazyBailout) \ |
102 V(LoadContextSlot) \ | 101 V(LoadContextSlot) \ |
103 V(LoadRoot) \ | 102 V(LoadRoot) \ |
104 V(LoadFieldByIndex) \ | 103 V(LoadFieldByIndex) \ |
105 V(LoadFunctionPrototype) \ | 104 V(LoadFunctionPrototype) \ |
106 V(LoadGlobalGeneric) \ | 105 V(LoadGlobalGeneric) \ |
(...skipping 891 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
998 | 997 |
999 LOperand* value() { return inputs_[0]; } | 998 LOperand* value() { return inputs_[0]; } |
1000 LOperand* temp() { return temps_[0]; } | 999 LOperand* temp() { return temps_[0]; } |
1001 | 1000 |
1002 DECLARE_CONCRETE_INSTRUCTION(CompareMinusZeroAndBranch, | 1001 DECLARE_CONCRETE_INSTRUCTION(CompareMinusZeroAndBranch, |
1003 "cmp-minus-zero-and-branch") | 1002 "cmp-minus-zero-and-branch") |
1004 DECLARE_HYDROGEN_ACCESSOR(CompareMinusZeroAndBranch) | 1003 DECLARE_HYDROGEN_ACCESSOR(CompareMinusZeroAndBranch) |
1005 }; | 1004 }; |
1006 | 1005 |
1007 | 1006 |
1008 class LIsObjectAndBranch final : public LControlInstruction<1, 1> { | |
1009 public: | |
1010 LIsObjectAndBranch(LOperand* value, LOperand* temp) { | |
1011 inputs_[0] = value; | |
1012 temps_[0] = temp; | |
1013 } | |
1014 | |
1015 LOperand* value() { return inputs_[0]; } | |
1016 LOperand* temp() { return temps_[0]; } | |
1017 | |
1018 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch") | |
1019 DECLARE_HYDROGEN_ACCESSOR(IsObjectAndBranch) | |
1020 | |
1021 void PrintDataTo(StringStream* stream) override; | |
1022 }; | |
1023 | |
1024 | |
1025 class LIsStringAndBranch final : public LControlInstruction<1, 1> { | 1007 class LIsStringAndBranch final : public LControlInstruction<1, 1> { |
1026 public: | 1008 public: |
1027 LIsStringAndBranch(LOperand* value, LOperand* temp) { | 1009 LIsStringAndBranch(LOperand* value, LOperand* temp) { |
1028 inputs_[0] = value; | 1010 inputs_[0] = value; |
1029 temps_[0] = temp; | 1011 temps_[0] = temp; |
1030 } | 1012 } |
1031 | 1013 |
1032 LOperand* value() { return inputs_[0]; } | 1014 LOperand* value() { return inputs_[0]; } |
1033 LOperand* temp() { return temps_[0]; } | 1015 LOperand* temp() { return temps_[0]; } |
1034 | 1016 |
(...skipping 1875 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2910 | 2892 |
2911 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2893 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2912 }; | 2894 }; |
2913 | 2895 |
2914 #undef DECLARE_HYDROGEN_ACCESSOR | 2896 #undef DECLARE_HYDROGEN_ACCESSOR |
2915 #undef DECLARE_CONCRETE_INSTRUCTION | 2897 #undef DECLARE_CONCRETE_INSTRUCTION |
2916 | 2898 |
2917 } } // namespace v8::internal | 2899 } } // namespace v8::internal |
2918 | 2900 |
2919 #endif // V8_MIPS_LITHIUM_MIPS_H_ | 2901 #endif // V8_MIPS_LITHIUM_MIPS_H_ |
OLD | NEW |