OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ARM64_LITHIUM_ARM64_H_ | 5 #ifndef V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ |
6 #define V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ | 6 #define V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 V(CheckValue) \ | 48 V(CheckValue) \ |
49 V(ClampDToUint8) \ | 49 V(ClampDToUint8) \ |
50 V(ClampIToUint8) \ | 50 V(ClampIToUint8) \ |
51 V(ClampTToUint8) \ | 51 V(ClampTToUint8) \ |
52 V(ClassOfTestAndBranch) \ | 52 V(ClassOfTestAndBranch) \ |
53 V(CmpHoleAndBranchD) \ | 53 V(CmpHoleAndBranchD) \ |
54 V(CmpHoleAndBranchT) \ | 54 V(CmpHoleAndBranchT) \ |
55 V(CmpMapAndBranch) \ | 55 V(CmpMapAndBranch) \ |
56 V(CmpObjectEqAndBranch) \ | 56 V(CmpObjectEqAndBranch) \ |
57 V(CmpT) \ | 57 V(CmpT) \ |
58 V(CompareMinusZeroAndBranch) \ | |
59 V(CompareNumericAndBranch) \ | 58 V(CompareNumericAndBranch) \ |
60 V(ConstantD) \ | 59 V(ConstantD) \ |
61 V(ConstantE) \ | 60 V(ConstantE) \ |
62 V(ConstantI) \ | 61 V(ConstantI) \ |
63 V(ConstantS) \ | 62 V(ConstantS) \ |
64 V(ConstantT) \ | 63 V(ConstantT) \ |
65 V(ConstructDouble) \ | 64 V(ConstructDouble) \ |
66 V(Context) \ | 65 V(Context) \ |
67 V(DebugBreak) \ | 66 V(DebugBreak) \ |
68 V(DeclareGlobals) \ | 67 V(DeclareGlobals) \ |
(...skipping 1070 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1139 | 1138 |
1140 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t") | 1139 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t") |
1141 DECLARE_HYDROGEN_ACCESSOR(CompareGeneric) | 1140 DECLARE_HYDROGEN_ACCESSOR(CompareGeneric) |
1142 | 1141 |
1143 Strength strength() { return hydrogen()->strength(); } | 1142 Strength strength() { return hydrogen()->strength(); } |
1144 | 1143 |
1145 Token::Value op() const { return hydrogen()->token(); } | 1144 Token::Value op() const { return hydrogen()->token(); } |
1146 }; | 1145 }; |
1147 | 1146 |
1148 | 1147 |
1149 class LCompareMinusZeroAndBranch final : public LControlInstruction<1, 1> { | |
1150 public: | |
1151 LCompareMinusZeroAndBranch(LOperand* value, LOperand* temp) { | |
1152 inputs_[0] = value; | |
1153 temps_[0] = temp; | |
1154 } | |
1155 | |
1156 LOperand* value() { return inputs_[0]; } | |
1157 LOperand* temp() { return temps_[0]; } | |
1158 | |
1159 DECLARE_CONCRETE_INSTRUCTION(CompareMinusZeroAndBranch, | |
1160 "cmp-minus-zero-and-branch") | |
1161 DECLARE_HYDROGEN_ACCESSOR(CompareMinusZeroAndBranch) | |
1162 }; | |
1163 | |
1164 | |
1165 class LCompareNumericAndBranch final : public LControlInstruction<2, 0> { | 1148 class LCompareNumericAndBranch final : public LControlInstruction<2, 0> { |
1166 public: | 1149 public: |
1167 LCompareNumericAndBranch(LOperand* left, LOperand* right) { | 1150 LCompareNumericAndBranch(LOperand* left, LOperand* right) { |
1168 inputs_[0] = left; | 1151 inputs_[0] = left; |
1169 inputs_[1] = right; | 1152 inputs_[1] = right; |
1170 } | 1153 } |
1171 | 1154 |
1172 LOperand* left() { return inputs_[0]; } | 1155 LOperand* left() { return inputs_[0]; } |
1173 LOperand* right() { return inputs_[1]; } | 1156 LOperand* right() { return inputs_[1]; } |
1174 | 1157 |
(...skipping 1963 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3138 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 3121 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
3139 }; | 3122 }; |
3140 | 3123 |
3141 #undef DECLARE_HYDROGEN_ACCESSOR | 3124 #undef DECLARE_HYDROGEN_ACCESSOR |
3142 #undef DECLARE_CONCRETE_INSTRUCTION | 3125 #undef DECLARE_CONCRETE_INSTRUCTION |
3143 | 3126 |
3144 } // namespace internal | 3127 } // namespace internal |
3145 } // namespace v8 | 3128 } // namespace v8 |
3146 | 3129 |
3147 #endif // V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ | 3130 #endif // V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ |
OLD | NEW |