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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 V(FlooringDivByPowerOf2I) \ | 76 V(FlooringDivByPowerOf2I) \ |
77 V(FlooringDivI) \ | 77 V(FlooringDivI) \ |
78 V(ForInCacheArray) \ | 78 V(ForInCacheArray) \ |
79 V(ForInPrepareMap) \ | 79 V(ForInPrepareMap) \ |
80 V(GetCachedArrayIndex) \ | 80 V(GetCachedArrayIndex) \ |
81 V(Goto) \ | 81 V(Goto) \ |
82 V(HasCachedArrayIndexAndBranch) \ | 82 V(HasCachedArrayIndexAndBranch) \ |
83 V(HasInPrototypeChainAndBranch) \ | 83 V(HasInPrototypeChainAndBranch) \ |
84 V(HasInstanceTypeAndBranch) \ | 84 V(HasInstanceTypeAndBranch) \ |
85 V(InnerAllocatedObject) \ | 85 V(InnerAllocatedObject) \ |
86 V(InstanceOf) \ | |
87 V(InstructionGap) \ | 86 V(InstructionGap) \ |
88 V(Integer32ToDouble) \ | 87 V(Integer32ToDouble) \ |
89 V(InvokeFunction) \ | 88 V(InvokeFunction) \ |
90 V(IsStringAndBranch) \ | 89 V(IsStringAndBranch) \ |
91 V(IsSmiAndBranch) \ | 90 V(IsSmiAndBranch) \ |
92 V(IsUndetectableAndBranch) \ | 91 V(IsUndetectableAndBranch) \ |
93 V(Label) \ | 92 V(Label) \ |
94 V(LazyBailout) \ | 93 V(LazyBailout) \ |
95 V(LoadContextSlot) \ | 94 V(LoadContextSlot) \ |
96 V(LoadFieldByIndex) \ | 95 V(LoadFieldByIndex) \ |
(...skipping 1036 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1133 } | 1132 } |
1134 | 1133 |
1135 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t") | 1134 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t") |
1136 DECLARE_HYDROGEN_ACCESSOR(CompareGeneric) | 1135 DECLARE_HYDROGEN_ACCESSOR(CompareGeneric) |
1137 | 1136 |
1138 LOperand* context() { return inputs_[0]; } | 1137 LOperand* context() { return inputs_[0]; } |
1139 Token::Value op() const { return hydrogen()->token(); } | 1138 Token::Value op() const { return hydrogen()->token(); } |
1140 }; | 1139 }; |
1141 | 1140 |
1142 | 1141 |
1143 class LInstanceOf final : public LTemplateInstruction<1, 3, 0> { | |
1144 public: | |
1145 LInstanceOf(LOperand* context, LOperand* left, LOperand* right) { | |
1146 inputs_[0] = context; | |
1147 inputs_[1] = left; | |
1148 inputs_[2] = right; | |
1149 } | |
1150 | |
1151 LOperand* context() const { return inputs_[0]; } | |
1152 LOperand* left() const { return inputs_[1]; } | |
1153 LOperand* right() const { return inputs_[2]; } | |
1154 | |
1155 DECLARE_CONCRETE_INSTRUCTION(InstanceOf, "instance-of") | |
1156 }; | |
1157 | |
1158 | |
1159 class LHasInPrototypeChainAndBranch final : public LControlInstruction<2, 1> { | 1142 class LHasInPrototypeChainAndBranch final : public LControlInstruction<2, 1> { |
1160 public: | 1143 public: |
1161 LHasInPrototypeChainAndBranch(LOperand* object, LOperand* prototype, | 1144 LHasInPrototypeChainAndBranch(LOperand* object, LOperand* prototype, |
1162 LOperand* scratch) { | 1145 LOperand* scratch) { |
1163 inputs_[0] = object; | 1146 inputs_[0] = object; |
1164 inputs_[1] = prototype; | 1147 inputs_[1] = prototype; |
1165 temps_[0] = scratch; | 1148 temps_[0] = scratch; |
1166 } | 1149 } |
1167 | 1150 |
1168 LOperand* object() const { return inputs_[0]; } | 1151 LOperand* object() const { return inputs_[0]; } |
(...skipping 1518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2687 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2670 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2688 }; | 2671 }; |
2689 | 2672 |
2690 #undef DECLARE_HYDROGEN_ACCESSOR | 2673 #undef DECLARE_HYDROGEN_ACCESSOR |
2691 #undef DECLARE_CONCRETE_INSTRUCTION | 2674 #undef DECLARE_CONCRETE_INSTRUCTION |
2692 | 2675 |
2693 } // namespace internal | 2676 } // namespace internal |
2694 } // namespace v8 | 2677 } // namespace v8 |
2695 | 2678 |
2696 #endif // V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ | 2679 #endif // V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ |
OLD | NEW |