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_CRANKSHAFT_IA32_LITHIUM_IA32_H_ | 5 #ifndef V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ |
6 #define V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ | 6 #define V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ |
7 | 7 |
8 #include "src/crankshaft/hydrogen.h" | 8 #include "src/crankshaft/hydrogen.h" |
9 #include "src/crankshaft/lithium.h" | 9 #include "src/crankshaft/lithium.h" |
10 #include "src/crankshaft/lithium-allocator.h" | 10 #include "src/crankshaft/lithium-allocator.h" |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 V(GetCachedArrayIndex) \ | 85 V(GetCachedArrayIndex) \ |
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) \ | |
96 V(IsStringAndBranch) \ | 95 V(IsStringAndBranch) \ |
97 V(IsSmiAndBranch) \ | 96 V(IsSmiAndBranch) \ |
98 V(IsUndetectableAndBranch) \ | 97 V(IsUndetectableAndBranch) \ |
99 V(Label) \ | 98 V(Label) \ |
100 V(LazyBailout) \ | 99 V(LazyBailout) \ |
101 V(LoadContextSlot) \ | 100 V(LoadContextSlot) \ |
102 V(LoadFieldByIndex) \ | 101 V(LoadFieldByIndex) \ |
103 V(LoadFunctionPrototype) \ | 102 V(LoadFunctionPrototype) \ |
104 V(LoadGlobalGeneric) \ | 103 V(LoadGlobalGeneric) \ |
105 V(LoadKeyed) \ | 104 V(LoadKeyed) \ |
(...skipping 998 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1104 | 1103 |
1105 LOperand* value() { return inputs_[0]; } | 1104 LOperand* value() { return inputs_[0]; } |
1106 | 1105 |
1107 DECLARE_CONCRETE_INSTRUCTION(HasCachedArrayIndexAndBranch, | 1106 DECLARE_CONCRETE_INSTRUCTION(HasCachedArrayIndexAndBranch, |
1108 "has-cached-array-index-and-branch") | 1107 "has-cached-array-index-and-branch") |
1109 | 1108 |
1110 void PrintDataTo(StringStream* stream) override; | 1109 void PrintDataTo(StringStream* stream) override; |
1111 }; | 1110 }; |
1112 | 1111 |
1113 | 1112 |
1114 class LIsConstructCallAndBranch final : public LControlInstruction<0, 1> { | |
1115 public: | |
1116 explicit LIsConstructCallAndBranch(LOperand* temp) { | |
1117 temps_[0] = temp; | |
1118 } | |
1119 | |
1120 LOperand* temp() { return temps_[0]; } | |
1121 | |
1122 DECLARE_CONCRETE_INSTRUCTION(IsConstructCallAndBranch, | |
1123 "is-construct-call-and-branch") | |
1124 }; | |
1125 | |
1126 | |
1127 class LClassOfTestAndBranch final : public LControlInstruction<1, 2> { | 1113 class LClassOfTestAndBranch final : public LControlInstruction<1, 2> { |
1128 public: | 1114 public: |
1129 LClassOfTestAndBranch(LOperand* value, LOperand* temp, LOperand* temp2) { | 1115 LClassOfTestAndBranch(LOperand* value, LOperand* temp, LOperand* temp2) { |
1130 inputs_[0] = value; | 1116 inputs_[0] = value; |
1131 temps_[0] = temp; | 1117 temps_[0] = temp; |
1132 temps_[1] = temp2; | 1118 temps_[1] = temp2; |
1133 } | 1119 } |
1134 | 1120 |
1135 LOperand* value() { return inputs_[0]; } | 1121 LOperand* value() { return inputs_[0]; } |
1136 LOperand* temp() { return temps_[0]; } | 1122 LOperand* temp() { return temps_[0]; } |
(...skipping 1671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2808 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2794 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2809 }; | 2795 }; |
2810 | 2796 |
2811 #undef DECLARE_HYDROGEN_ACCESSOR | 2797 #undef DECLARE_HYDROGEN_ACCESSOR |
2812 #undef DECLARE_CONCRETE_INSTRUCTION | 2798 #undef DECLARE_CONCRETE_INSTRUCTION |
2813 | 2799 |
2814 } // namespace internal | 2800 } // namespace internal |
2815 } // namespace v8 | 2801 } // namespace v8 |
2816 | 2802 |
2817 #endif // V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ | 2803 #endif // V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ |
OLD | NEW |