| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 V(CmpHoleAndBranch) \ | 53 V(CmpHoleAndBranch) \ |
| 54 V(CmpMapAndBranch) \ | 54 V(CmpMapAndBranch) \ |
| 55 V(CmpT) \ | 55 V(CmpT) \ |
| 56 V(ConstantD) \ | 56 V(ConstantD) \ |
| 57 V(ConstantE) \ | 57 V(ConstantE) \ |
| 58 V(ConstantI) \ | 58 V(ConstantI) \ |
| 59 V(ConstantS) \ | 59 V(ConstantS) \ |
| 60 V(ConstantT) \ | 60 V(ConstantT) \ |
| 61 V(ConstructDouble) \ | 61 V(ConstructDouble) \ |
| 62 V(Context) \ | 62 V(Context) \ |
| 63 V(DateField) \ |
| 63 V(DebugBreak) \ | 64 V(DebugBreak) \ |
| 64 V(DeclareGlobals) \ | 65 V(DeclareGlobals) \ |
| 65 V(Deoptimize) \ | 66 V(Deoptimize) \ |
| 66 V(DivByConstI) \ | 67 V(DivByConstI) \ |
| 67 V(DivByPowerOf2I) \ | 68 V(DivByPowerOf2I) \ |
| 68 V(DivI) \ | 69 V(DivI) \ |
| 69 V(DoubleBits) \ | 70 V(DoubleBits) \ |
| 70 V(DoubleToI) \ | 71 V(DoubleToI) \ |
| 71 V(DoubleToSmi) \ | 72 V(DoubleToSmi) \ |
| 72 V(Drop) \ | 73 V(Drop) \ |
| (...skipping 1262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1335 explicit LMapEnumLength(LOperand* value) { | 1336 explicit LMapEnumLength(LOperand* value) { |
| 1336 inputs_[0] = value; | 1337 inputs_[0] = value; |
| 1337 } | 1338 } |
| 1338 | 1339 |
| 1339 LOperand* value() { return inputs_[0]; } | 1340 LOperand* value() { return inputs_[0]; } |
| 1340 | 1341 |
| 1341 DECLARE_CONCRETE_INSTRUCTION(MapEnumLength, "map-enum-length") | 1342 DECLARE_CONCRETE_INSTRUCTION(MapEnumLength, "map-enum-length") |
| 1342 }; | 1343 }; |
| 1343 | 1344 |
| 1344 | 1345 |
| 1346 class LDateField final : public LTemplateInstruction<1, 1, 0> { |
| 1347 public: |
| 1348 LDateField(LOperand* date, Smi* index) : index_(index) { |
| 1349 inputs_[0] = date; |
| 1350 } |
| 1351 |
| 1352 LOperand* date() { return inputs_[0]; } |
| 1353 Smi* index() const { return index_; } |
| 1354 |
| 1355 DECLARE_CONCRETE_INSTRUCTION(DateField, "date-field") |
| 1356 DECLARE_HYDROGEN_ACCESSOR(DateField) |
| 1357 |
| 1358 private: |
| 1359 Smi* index_; |
| 1360 }; |
| 1361 |
| 1362 |
| 1345 class LSeqStringGetChar final : public LTemplateInstruction<1, 2, 0> { | 1363 class LSeqStringGetChar final : public LTemplateInstruction<1, 2, 0> { |
| 1346 public: | 1364 public: |
| 1347 LSeqStringGetChar(LOperand* string, LOperand* index) { | 1365 LSeqStringGetChar(LOperand* string, LOperand* index) { |
| 1348 inputs_[0] = string; | 1366 inputs_[0] = string; |
| 1349 inputs_[1] = index; | 1367 inputs_[1] = index; |
| 1350 } | 1368 } |
| 1351 | 1369 |
| 1352 LOperand* string() const { return inputs_[0]; } | 1370 LOperand* string() const { return inputs_[0]; } |
| 1353 LOperand* index() const { return inputs_[1]; } | 1371 LOperand* index() const { return inputs_[1]; } |
| 1354 | 1372 |
| (...skipping 1404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2759 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2777 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2760 }; | 2778 }; |
| 2761 | 2779 |
| 2762 #undef DECLARE_HYDROGEN_ACCESSOR | 2780 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2763 #undef DECLARE_CONCRETE_INSTRUCTION | 2781 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2764 | 2782 |
| 2765 } // namespace internal | 2783 } // namespace internal |
| 2766 } // namespace v8 | 2784 } // namespace v8 |
| 2767 | 2785 |
| 2768 #endif // V8_CRANKSHAFT_X64_LITHIUM_X64_H_ | 2786 #endif // V8_CRANKSHAFT_X64_LITHIUM_X64_H_ |
| OLD | NEW |