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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 V(CmpHoleAndBranch) \ | 57 V(CmpHoleAndBranch) \ |
58 V(CmpMapAndBranch) \ | 58 V(CmpMapAndBranch) \ |
59 V(CmpT) \ | 59 V(CmpT) \ |
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(DoubleToI) \ | 75 V(DoubleToI) \ |
75 V(DoubleToSmi) \ | 76 V(DoubleToSmi) \ |
76 V(Drop) \ | 77 V(Drop) \ |
(...skipping 1266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1343 explicit LMapEnumLength(LOperand* value) { | 1344 explicit LMapEnumLength(LOperand* value) { |
1344 inputs_[0] = value; | 1345 inputs_[0] = value; |
1345 } | 1346 } |
1346 | 1347 |
1347 LOperand* value() { return inputs_[0]; } | 1348 LOperand* value() { return inputs_[0]; } |
1348 | 1349 |
1349 DECLARE_CONCRETE_INSTRUCTION(MapEnumLength, "map-enum-length") | 1350 DECLARE_CONCRETE_INSTRUCTION(MapEnumLength, "map-enum-length") |
1350 }; | 1351 }; |
1351 | 1352 |
1352 | 1353 |
| 1354 class LDateField final : public LTemplateInstruction<1, 1, 1> { |
| 1355 public: |
| 1356 LDateField(LOperand* date, LOperand* temp, Smi* index) |
| 1357 : index_(index) { |
| 1358 inputs_[0] = date; |
| 1359 temps_[0] = temp; |
| 1360 } |
| 1361 |
| 1362 LOperand* date() { return inputs_[0]; } |
| 1363 LOperand* temp() { return temps_[0]; } |
| 1364 |
| 1365 DECLARE_CONCRETE_INSTRUCTION(DateField, "date-field") |
| 1366 DECLARE_HYDROGEN_ACCESSOR(DateField) |
| 1367 |
| 1368 Smi* index() const { return index_; } |
| 1369 |
| 1370 private: |
| 1371 Smi* index_; |
| 1372 }; |
| 1373 |
| 1374 |
1353 class LSeqStringGetChar final : public LTemplateInstruction<1, 2, 0> { | 1375 class LSeqStringGetChar final : public LTemplateInstruction<1, 2, 0> { |
1354 public: | 1376 public: |
1355 LSeqStringGetChar(LOperand* string, LOperand* index) { | 1377 LSeqStringGetChar(LOperand* string, LOperand* index) { |
1356 inputs_[0] = string; | 1378 inputs_[0] = string; |
1357 inputs_[1] = index; | 1379 inputs_[1] = index; |
1358 } | 1380 } |
1359 | 1381 |
1360 LOperand* string() const { return inputs_[0]; } | 1382 LOperand* string() const { return inputs_[0]; } |
1361 LOperand* index() const { return inputs_[1]; } | 1383 LOperand* index() const { return inputs_[1]; } |
1362 | 1384 |
(...skipping 1414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2777 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2799 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2778 }; | 2800 }; |
2779 | 2801 |
2780 #undef DECLARE_HYDROGEN_ACCESSOR | 2802 #undef DECLARE_HYDROGEN_ACCESSOR |
2781 #undef DECLARE_CONCRETE_INSTRUCTION | 2803 #undef DECLARE_CONCRETE_INSTRUCTION |
2782 | 2804 |
2783 } // namespace internal | 2805 } // namespace internal |
2784 } // namespace v8 | 2806 } // namespace v8 |
2785 | 2807 |
2786 #endif // V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ | 2808 #endif // V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ |
OLD | NEW |