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) \ |
67 V(DebugBreak) \ | 68 V(DebugBreak) \ |
68 V(DeclareGlobals) \ | 69 V(DeclareGlobals) \ |
69 V(Deoptimize) \ | 70 V(Deoptimize) \ |
70 V(DivByConstI) \ | 71 V(DivByConstI) \ |
71 V(DivByPowerOf2I) \ | 72 V(DivByPowerOf2I) \ |
72 V(DivI) \ | 73 V(DivI) \ |
73 V(DoubleBits) \ | 74 V(DoubleBits) \ |
74 V(DoubleToIntOrSmi) \ | 75 V(DoubleToIntOrSmi) \ |
75 V(Drop) \ | 76 V(Drop) \ |
76 V(Dummy) \ | 77 V(Dummy) \ |
(...skipping 1158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1235 }; | 1236 }; |
1236 | 1237 |
1237 | 1238 |
1238 class LContext final : public LTemplateInstruction<1, 0, 0> { | 1239 class LContext final : public LTemplateInstruction<1, 0, 0> { |
1239 public: | 1240 public: |
1240 DECLARE_CONCRETE_INSTRUCTION(Context, "context") | 1241 DECLARE_CONCRETE_INSTRUCTION(Context, "context") |
1241 DECLARE_HYDROGEN_ACCESSOR(Context) | 1242 DECLARE_HYDROGEN_ACCESSOR(Context) |
1242 }; | 1243 }; |
1243 | 1244 |
1244 | 1245 |
| 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 |
1245 class LDebugBreak final : public LTemplateInstruction<0, 0, 0> { | 1263 class LDebugBreak final : public LTemplateInstruction<0, 0, 0> { |
1246 public: | 1264 public: |
1247 DECLARE_CONCRETE_INSTRUCTION(DebugBreak, "break") | 1265 DECLARE_CONCRETE_INSTRUCTION(DebugBreak, "break") |
1248 }; | 1266 }; |
1249 | 1267 |
1250 | 1268 |
1251 class LDeclareGlobals final : public LTemplateInstruction<0, 1, 0> { | 1269 class LDeclareGlobals final : public LTemplateInstruction<0, 1, 0> { |
1252 public: | 1270 public: |
1253 explicit LDeclareGlobals(LOperand* context) { | 1271 explicit LDeclareGlobals(LOperand* context) { |
1254 inputs_[0] = context; | 1272 inputs_[0] = context; |
(...skipping 1896 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3151 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 3169 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
3152 }; | 3170 }; |
3153 | 3171 |
3154 #undef DECLARE_HYDROGEN_ACCESSOR | 3172 #undef DECLARE_HYDROGEN_ACCESSOR |
3155 #undef DECLARE_CONCRETE_INSTRUCTION | 3173 #undef DECLARE_CONCRETE_INSTRUCTION |
3156 | 3174 |
3157 } // namespace internal | 3175 } // namespace internal |
3158 } // namespace v8 | 3176 } // namespace v8 |
3159 | 3177 |
3160 #endif // V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ | 3178 #endif // V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ |
OLD | NEW |