| 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 V(Label) \ | 89 V(Label) \ |
| 90 V(LazyBailout) \ | 90 V(LazyBailout) \ |
| 91 V(LoadContextSlot) \ | 91 V(LoadContextSlot) \ |
| 92 V(LoadFieldByIndex) \ | 92 V(LoadFieldByIndex) \ |
| 93 V(LoadFunctionPrototype) \ | 93 V(LoadFunctionPrototype) \ |
| 94 V(LoadKeyedExternal) \ | 94 V(LoadKeyedExternal) \ |
| 95 V(LoadKeyedFixed) \ | 95 V(LoadKeyedFixed) \ |
| 96 V(LoadKeyedFixedDouble) \ | 96 V(LoadKeyedFixedDouble) \ |
| 97 V(LoadKeyedGeneric) \ | 97 V(LoadKeyedGeneric) \ |
| 98 V(LoadNamedField) \ | 98 V(LoadNamedField) \ |
| 99 V(LoadNamedGeneric) \ | |
| 100 V(LoadRoot) \ | 99 V(LoadRoot) \ |
| 101 V(MathAbs) \ | 100 V(MathAbs) \ |
| 102 V(MathAbsTagged) \ | 101 V(MathAbsTagged) \ |
| 103 V(MathClz32) \ | 102 V(MathClz32) \ |
| 104 V(MathCos) \ | 103 V(MathCos) \ |
| 105 V(MathSin) \ | 104 V(MathSin) \ |
| 106 V(MathExp) \ | 105 V(MathExp) \ |
| 107 V(MathFloorD) \ | 106 V(MathFloorD) \ |
| 108 V(MathFloorI) \ | 107 V(MathFloorI) \ |
| 109 V(MathFround) \ | 108 V(MathFround) \ |
| (...skipping 1521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1631 LOperand* context() { return inputs_[0]; } | 1630 LOperand* context() { return inputs_[0]; } |
| 1632 LOperand* object() { return inputs_[1]; } | 1631 LOperand* object() { return inputs_[1]; } |
| 1633 LOperand* key() { return inputs_[2]; } | 1632 LOperand* key() { return inputs_[2]; } |
| 1634 LOperand* temp_vector() { return temps_[0]; } | 1633 LOperand* temp_vector() { return temps_[0]; } |
| 1635 | 1634 |
| 1636 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") | 1635 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") |
| 1637 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedGeneric) | 1636 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedGeneric) |
| 1638 }; | 1637 }; |
| 1639 | 1638 |
| 1640 | 1639 |
| 1641 class LLoadNamedGeneric final : public LTemplateInstruction<1, 2, 1> { | |
| 1642 public: | |
| 1643 LLoadNamedGeneric(LOperand* context, LOperand* object, LOperand* vector) { | |
| 1644 inputs_[0] = context; | |
| 1645 inputs_[1] = object; | |
| 1646 temps_[0] = vector; | |
| 1647 } | |
| 1648 | |
| 1649 LOperand* context() { return inputs_[0]; } | |
| 1650 LOperand* object() { return inputs_[1]; } | |
| 1651 LOperand* temp_vector() { return temps_[0]; } | |
| 1652 | |
| 1653 DECLARE_CONCRETE_INSTRUCTION(LoadNamedGeneric, "load-named-generic") | |
| 1654 DECLARE_HYDROGEN_ACCESSOR(LoadNamedGeneric) | |
| 1655 | |
| 1656 Handle<Object> name() const { return hydrogen()->name(); } | |
| 1657 }; | |
| 1658 | |
| 1659 | |
| 1660 class LLoadRoot final : public LTemplateInstruction<1, 0, 0> { | 1640 class LLoadRoot final : public LTemplateInstruction<1, 0, 0> { |
| 1661 public: | 1641 public: |
| 1662 DECLARE_CONCRETE_INSTRUCTION(LoadRoot, "load-root") | 1642 DECLARE_CONCRETE_INSTRUCTION(LoadRoot, "load-root") |
| 1663 DECLARE_HYDROGEN_ACCESSOR(LoadRoot) | 1643 DECLARE_HYDROGEN_ACCESSOR(LoadRoot) |
| 1664 | 1644 |
| 1665 Heap::RootListIndex index() const { return hydrogen()->index(); } | 1645 Heap::RootListIndex index() const { return hydrogen()->index(); } |
| 1666 }; | 1646 }; |
| 1667 | 1647 |
| 1668 | 1648 |
| 1669 template<int T> | 1649 template<int T> |
| (...skipping 1246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2916 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2896 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2917 }; | 2897 }; |
| 2918 | 2898 |
| 2919 #undef DECLARE_HYDROGEN_ACCESSOR | 2899 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2920 #undef DECLARE_CONCRETE_INSTRUCTION | 2900 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2921 | 2901 |
| 2922 } // namespace internal | 2902 } // namespace internal |
| 2923 } // namespace v8 | 2903 } // namespace v8 |
| 2924 | 2904 |
| 2925 #endif // V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ | 2905 #endif // V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ |
| OLD | NEW |