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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 V(CmpT) \ | 57 V(CmpT) \ |
58 V(CompareMinusZeroAndBranch) \ | 58 V(CompareMinusZeroAndBranch) \ |
59 V(CompareNumericAndBranch) \ | 59 V(CompareNumericAndBranch) \ |
60 V(ConstantD) \ | 60 V(ConstantD) \ |
61 V(ConstantE) \ | 61 V(ConstantE) \ |
62 V(ConstantI) \ | 62 V(ConstantI) \ |
63 V(ConstantS) \ | 63 V(ConstantS) \ |
64 V(ConstantT) \ | 64 V(ConstantT) \ |
65 V(ConstructDouble) \ | 65 V(ConstructDouble) \ |
66 V(Context) \ | 66 V(Context) \ |
67 V(DateField) \ | |
68 V(DebugBreak) \ | 67 V(DebugBreak) \ |
69 V(DeclareGlobals) \ | 68 V(DeclareGlobals) \ |
70 V(Deoptimize) \ | 69 V(Deoptimize) \ |
71 V(DivByConstI) \ | 70 V(DivByConstI) \ |
72 V(DivByPowerOf2I) \ | 71 V(DivByPowerOf2I) \ |
73 V(DivI) \ | 72 V(DivI) \ |
74 V(DoubleBits) \ | 73 V(DoubleBits) \ |
75 V(DoubleToIntOrSmi) \ | 74 V(DoubleToIntOrSmi) \ |
76 V(Drop) \ | 75 V(Drop) \ |
77 V(Dummy) \ | 76 V(Dummy) \ |
(...skipping 1158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1236 }; | 1235 }; |
1237 | 1236 |
1238 | 1237 |
1239 class LContext final : public LTemplateInstruction<1, 0, 0> { | 1238 class LContext final : public LTemplateInstruction<1, 0, 0> { |
1240 public: | 1239 public: |
1241 DECLARE_CONCRETE_INSTRUCTION(Context, "context") | 1240 DECLARE_CONCRETE_INSTRUCTION(Context, "context") |
1242 DECLARE_HYDROGEN_ACCESSOR(Context) | 1241 DECLARE_HYDROGEN_ACCESSOR(Context) |
1243 }; | 1242 }; |
1244 | 1243 |
1245 | 1244 |
1246 class LDateField final : public LTemplateInstruction<1, 1, 0> { | |
1247 public: | |
1248 LDateField(LOperand* date, Smi* index) : index_(index) { | |
1249 inputs_[0] = date; | |
1250 } | |
1251 | |
1252 LOperand* date() { return inputs_[0]; } | |
1253 Smi* index() const { return index_; } | |
1254 | |
1255 DECLARE_CONCRETE_INSTRUCTION(DateField, "date-field") | |
1256 DECLARE_HYDROGEN_ACCESSOR(DateField) | |
1257 | |
1258 private: | |
1259 Smi* index_; | |
1260 }; | |
1261 | |
1262 | |
1263 class LDebugBreak final : public LTemplateInstruction<0, 0, 0> { | 1245 class LDebugBreak final : public LTemplateInstruction<0, 0, 0> { |
1264 public: | 1246 public: |
1265 DECLARE_CONCRETE_INSTRUCTION(DebugBreak, "break") | 1247 DECLARE_CONCRETE_INSTRUCTION(DebugBreak, "break") |
1266 }; | 1248 }; |
1267 | 1249 |
1268 | 1250 |
1269 class LDeclareGlobals final : public LTemplateInstruction<0, 1, 0> { | 1251 class LDeclareGlobals final : public LTemplateInstruction<0, 1, 0> { |
1270 public: | 1252 public: |
1271 explicit LDeclareGlobals(LOperand* context) { | 1253 explicit LDeclareGlobals(LOperand* context) { |
1272 inputs_[0] = context; | 1254 inputs_[0] = context; |
(...skipping 1896 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3169 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 3151 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
3170 }; | 3152 }; |
3171 | 3153 |
3172 #undef DECLARE_HYDROGEN_ACCESSOR | 3154 #undef DECLARE_HYDROGEN_ACCESSOR |
3173 #undef DECLARE_CONCRETE_INSTRUCTION | 3155 #undef DECLARE_CONCRETE_INSTRUCTION |
3174 | 3156 |
3175 } // namespace internal | 3157 } // namespace internal |
3176 } // namespace v8 | 3158 } // namespace v8 |
3177 | 3159 |
3178 #endif // V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ | 3160 #endif // V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ |
OLD | NEW |