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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 V(LoadFieldByIndex) \ | 99 V(LoadFieldByIndex) \ |
100 V(LoadFunctionPrototype) \ | 100 V(LoadFunctionPrototype) \ |
101 V(LoadGlobalGeneric) \ | 101 V(LoadGlobalGeneric) \ |
102 V(LoadKeyedExternal) \ | 102 V(LoadKeyedExternal) \ |
103 V(LoadKeyedFixed) \ | 103 V(LoadKeyedFixed) \ |
104 V(LoadKeyedFixedDouble) \ | 104 V(LoadKeyedFixedDouble) \ |
105 V(LoadKeyedGeneric) \ | 105 V(LoadKeyedGeneric) \ |
106 V(LoadNamedField) \ | 106 V(LoadNamedField) \ |
107 V(LoadNamedGeneric) \ | 107 V(LoadNamedGeneric) \ |
108 V(LoadRoot) \ | 108 V(LoadRoot) \ |
109 V(MapEnumLength) \ | |
110 V(MathAbs) \ | 109 V(MathAbs) \ |
111 V(MathAbsTagged) \ | 110 V(MathAbsTagged) \ |
112 V(MathClz32) \ | 111 V(MathClz32) \ |
113 V(MathExp) \ | 112 V(MathExp) \ |
114 V(MathFloorD) \ | 113 V(MathFloorD) \ |
115 V(MathFloorI) \ | 114 V(MathFloorI) \ |
116 V(MathFround) \ | 115 V(MathFround) \ |
117 V(MathLog) \ | 116 V(MathLog) \ |
118 V(MathMinMax) \ | 117 V(MathMinMax) \ |
119 V(MathPowHalf) \ | 118 V(MathPowHalf) \ |
(...skipping 1664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1784 | 1783 |
1785 class LLoadRoot final : public LTemplateInstruction<1, 0, 0> { | 1784 class LLoadRoot final : public LTemplateInstruction<1, 0, 0> { |
1786 public: | 1785 public: |
1787 DECLARE_CONCRETE_INSTRUCTION(LoadRoot, "load-root") | 1786 DECLARE_CONCRETE_INSTRUCTION(LoadRoot, "load-root") |
1788 DECLARE_HYDROGEN_ACCESSOR(LoadRoot) | 1787 DECLARE_HYDROGEN_ACCESSOR(LoadRoot) |
1789 | 1788 |
1790 Heap::RootListIndex index() const { return hydrogen()->index(); } | 1789 Heap::RootListIndex index() const { return hydrogen()->index(); } |
1791 }; | 1790 }; |
1792 | 1791 |
1793 | 1792 |
1794 class LMapEnumLength final : public LTemplateInstruction<1, 1, 0> { | |
1795 public: | |
1796 explicit LMapEnumLength(LOperand* value) { | |
1797 inputs_[0] = value; | |
1798 } | |
1799 | |
1800 LOperand* value() { return inputs_[0]; } | |
1801 | |
1802 DECLARE_CONCRETE_INSTRUCTION(MapEnumLength, "map-enum-length") | |
1803 }; | |
1804 | |
1805 | |
1806 template<int T> | 1793 template<int T> |
1807 class LUnaryMathOperation : public LTemplateInstruction<1, 1, T> { | 1794 class LUnaryMathOperation : public LTemplateInstruction<1, 1, T> { |
1808 public: | 1795 public: |
1809 explicit LUnaryMathOperation(LOperand* value) { | 1796 explicit LUnaryMathOperation(LOperand* value) { |
1810 this->inputs_[0] = value; | 1797 this->inputs_[0] = value; |
1811 } | 1798 } |
1812 | 1799 |
1813 LOperand* value() { return this->inputs_[0]; } | 1800 LOperand* value() { return this->inputs_[0]; } |
1814 BuiltinFunctionId op() const { return this->hydrogen()->op(); } | 1801 BuiltinFunctionId op() const { return this->hydrogen()->op(); } |
1815 | 1802 |
(...skipping 1335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3151 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 3138 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
3152 }; | 3139 }; |
3153 | 3140 |
3154 #undef DECLARE_HYDROGEN_ACCESSOR | 3141 #undef DECLARE_HYDROGEN_ACCESSOR |
3155 #undef DECLARE_CONCRETE_INSTRUCTION | 3142 #undef DECLARE_CONCRETE_INSTRUCTION |
3156 | 3143 |
3157 } // namespace internal | 3144 } // namespace internal |
3158 } // namespace v8 | 3145 } // namespace v8 |
3159 | 3146 |
3160 #endif // V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ | 3147 #endif // V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ |
OLD | NEW |