| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_PPC_LITHIUM_PPC_H_ | 5 #ifndef V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ |
| 6 #define V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ | 6 #define V8_CRANKSHAFT_PPC_LITHIUM_PPC_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) \ | |
| 64 V(DebugBreak) \ | 63 V(DebugBreak) \ |
| 65 V(DeclareGlobals) \ | 64 V(DeclareGlobals) \ |
| 66 V(Deoptimize) \ | 65 V(Deoptimize) \ |
| 67 V(DivByConstI) \ | 66 V(DivByConstI) \ |
| 68 V(DivByPowerOf2I) \ | 67 V(DivByPowerOf2I) \ |
| 69 V(DivI) \ | 68 V(DivI) \ |
| 70 V(DoubleBits) \ | 69 V(DoubleBits) \ |
| 71 V(DoubleToI) \ | 70 V(DoubleToI) \ |
| 72 V(DoubleToSmi) \ | 71 V(DoubleToSmi) \ |
| 73 V(Drop) \ | 72 V(Drop) \ |
| (...skipping 1244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1318 class LMapEnumLength final : public LTemplateInstruction<1, 1, 0> { | 1317 class LMapEnumLength final : public LTemplateInstruction<1, 1, 0> { |
| 1319 public: | 1318 public: |
| 1320 explicit LMapEnumLength(LOperand* value) { inputs_[0] = value; } | 1319 explicit LMapEnumLength(LOperand* value) { inputs_[0] = value; } |
| 1321 | 1320 |
| 1322 LOperand* value() { return inputs_[0]; } | 1321 LOperand* value() { return inputs_[0]; } |
| 1323 | 1322 |
| 1324 DECLARE_CONCRETE_INSTRUCTION(MapEnumLength, "map-enum-length") | 1323 DECLARE_CONCRETE_INSTRUCTION(MapEnumLength, "map-enum-length") |
| 1325 }; | 1324 }; |
| 1326 | 1325 |
| 1327 | 1326 |
| 1328 class LDateField final : public LTemplateInstruction<1, 1, 1> { | |
| 1329 public: | |
| 1330 LDateField(LOperand* date, LOperand* temp, Smi* index) : index_(index) { | |
| 1331 inputs_[0] = date; | |
| 1332 temps_[0] = temp; | |
| 1333 } | |
| 1334 | |
| 1335 LOperand* date() { return inputs_[0]; } | |
| 1336 LOperand* temp() { return temps_[0]; } | |
| 1337 Smi* index() const { return index_; } | |
| 1338 | |
| 1339 DECLARE_CONCRETE_INSTRUCTION(DateField, "date-field") | |
| 1340 DECLARE_HYDROGEN_ACCESSOR(DateField) | |
| 1341 | |
| 1342 private: | |
| 1343 Smi* index_; | |
| 1344 }; | |
| 1345 | |
| 1346 | |
| 1347 class LSeqStringGetChar final : public LTemplateInstruction<1, 2, 0> { | 1327 class LSeqStringGetChar final : public LTemplateInstruction<1, 2, 0> { |
| 1348 public: | 1328 public: |
| 1349 LSeqStringGetChar(LOperand* string, LOperand* index) { | 1329 LSeqStringGetChar(LOperand* string, LOperand* index) { |
| 1350 inputs_[0] = string; | 1330 inputs_[0] = string; |
| 1351 inputs_[1] = index; | 1331 inputs_[1] = index; |
| 1352 } | 1332 } |
| 1353 | 1333 |
| 1354 LOperand* string() const { return inputs_[0]; } | 1334 LOperand* string() const { return inputs_[0]; } |
| 1355 LOperand* index() const { return inputs_[1]; } | 1335 LOperand* index() const { return inputs_[1]; } |
| 1356 | 1336 |
| (...skipping 1321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2678 | 2658 |
| 2679 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2659 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2680 }; | 2660 }; |
| 2681 | 2661 |
| 2682 #undef DECLARE_HYDROGEN_ACCESSOR | 2662 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2683 #undef DECLARE_CONCRETE_INSTRUCTION | 2663 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2684 } // namespace internal | 2664 } // namespace internal |
| 2685 } // namespace v8 | 2665 } // namespace v8 |
| 2686 | 2666 |
| 2687 #endif // V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ | 2667 #endif // V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ |
| OLD | NEW |