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_X64_LITHIUM_X64_H_ | 5 #ifndef V8_CRANKSHAFT_X64_LITHIUM_X64_H_ |
6 #define V8_CRANKSHAFT_X64_LITHIUM_X64_H_ | 6 #define V8_CRANKSHAFT_X64_LITHIUM_X64_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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 V(FlooringDivByPowerOf2I) \ | 72 V(FlooringDivByPowerOf2I) \ |
73 V(FlooringDivI) \ | 73 V(FlooringDivI) \ |
74 V(ForInCacheArray) \ | 74 V(ForInCacheArray) \ |
75 V(ForInPrepareMap) \ | 75 V(ForInPrepareMap) \ |
76 V(GetCachedArrayIndex) \ | 76 V(GetCachedArrayIndex) \ |
77 V(Goto) \ | 77 V(Goto) \ |
78 V(HasCachedArrayIndexAndBranch) \ | 78 V(HasCachedArrayIndexAndBranch) \ |
79 V(HasInPrototypeChainAndBranch) \ | 79 V(HasInPrototypeChainAndBranch) \ |
80 V(HasInstanceTypeAndBranch) \ | 80 V(HasInstanceTypeAndBranch) \ |
81 V(InnerAllocatedObject) \ | 81 V(InnerAllocatedObject) \ |
82 V(InstanceOf) \ | |
83 V(InstructionGap) \ | 82 V(InstructionGap) \ |
84 V(Integer32ToDouble) \ | 83 V(Integer32ToDouble) \ |
85 V(InvokeFunction) \ | 84 V(InvokeFunction) \ |
86 V(IsStringAndBranch) \ | 85 V(IsStringAndBranch) \ |
87 V(IsSmiAndBranch) \ | 86 V(IsSmiAndBranch) \ |
88 V(IsUndetectableAndBranch) \ | 87 V(IsUndetectableAndBranch) \ |
89 V(Label) \ | 88 V(Label) \ |
90 V(LazyBailout) \ | 89 V(LazyBailout) \ |
91 V(LoadContextSlot) \ | 90 V(LoadContextSlot) \ |
92 V(LoadRoot) \ | 91 V(LoadRoot) \ |
(...skipping 1037 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1130 LOperand* left() { return inputs_[1]; } | 1129 LOperand* left() { return inputs_[1]; } |
1131 LOperand* right() { return inputs_[2]; } | 1130 LOperand* right() { return inputs_[2]; } |
1132 | 1131 |
1133 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t") | 1132 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t") |
1134 DECLARE_HYDROGEN_ACCESSOR(CompareGeneric) | 1133 DECLARE_HYDROGEN_ACCESSOR(CompareGeneric) |
1135 | 1134 |
1136 Token::Value op() const { return hydrogen()->token(); } | 1135 Token::Value op() const { return hydrogen()->token(); } |
1137 }; | 1136 }; |
1138 | 1137 |
1139 | 1138 |
1140 class LInstanceOf final : public LTemplateInstruction<1, 3, 0> { | |
1141 public: | |
1142 LInstanceOf(LOperand* context, LOperand* left, LOperand* right) { | |
1143 inputs_[0] = context; | |
1144 inputs_[1] = left; | |
1145 inputs_[2] = right; | |
1146 } | |
1147 | |
1148 LOperand* context() { return inputs_[0]; } | |
1149 LOperand* left() { return inputs_[1]; } | |
1150 LOperand* right() { return inputs_[2]; } | |
1151 | |
1152 DECLARE_CONCRETE_INSTRUCTION(InstanceOf, "instance-of") | |
1153 }; | |
1154 | |
1155 | |
1156 class LHasInPrototypeChainAndBranch final : public LControlInstruction<2, 0> { | 1139 class LHasInPrototypeChainAndBranch final : public LControlInstruction<2, 0> { |
1157 public: | 1140 public: |
1158 LHasInPrototypeChainAndBranch(LOperand* object, LOperand* prototype) { | 1141 LHasInPrototypeChainAndBranch(LOperand* object, LOperand* prototype) { |
1159 inputs_[0] = object; | 1142 inputs_[0] = object; |
1160 inputs_[1] = prototype; | 1143 inputs_[1] = prototype; |
1161 } | 1144 } |
1162 | 1145 |
1163 LOperand* object() const { return inputs_[0]; } | 1146 LOperand* object() const { return inputs_[0]; } |
1164 LOperand* prototype() const { return inputs_[1]; } | 1147 LOperand* prototype() const { return inputs_[1]; } |
1165 | 1148 |
(...skipping 1505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2671 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2654 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2672 }; | 2655 }; |
2673 | 2656 |
2674 #undef DECLARE_HYDROGEN_ACCESSOR | 2657 #undef DECLARE_HYDROGEN_ACCESSOR |
2675 #undef DECLARE_CONCRETE_INSTRUCTION | 2658 #undef DECLARE_CONCRETE_INSTRUCTION |
2676 | 2659 |
2677 } // namespace internal | 2660 } // namespace internal |
2678 } // namespace v8 | 2661 } // namespace v8 |
2679 | 2662 |
2680 #endif // V8_CRANKSHAFT_X64_LITHIUM_X64_H_ | 2663 #endif // V8_CRANKSHAFT_X64_LITHIUM_X64_H_ |
OLD | NEW |