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_ARM64_LITHIUM_ARM64_H_ | 5 #ifndef V8_ARM64_LITHIUM_ARM64_H_ |
6 #define V8_ARM64_LITHIUM_ARM64_H_ | 6 #define V8_ARM64_LITHIUM_ARM64_H_ |
7 | 7 |
8 #include "src/hydrogen.h" | 8 #include "src/hydrogen.h" |
9 #include "src/lithium.h" | 9 #include "src/lithium.h" |
10 #include "src/lithium-allocator.h" | 10 #include "src/lithium-allocator.h" |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 V(IsConstructCallAndBranch) \ | 95 V(IsConstructCallAndBranch) \ |
96 V(IsObjectAndBranch) \ | 96 V(IsObjectAndBranch) \ |
97 V(IsSmiAndBranch) \ | 97 V(IsSmiAndBranch) \ |
98 V(IsStringAndBranch) \ | 98 V(IsStringAndBranch) \ |
99 V(IsUndetectableAndBranch) \ | 99 V(IsUndetectableAndBranch) \ |
100 V(Label) \ | 100 V(Label) \ |
101 V(LazyBailout) \ | 101 V(LazyBailout) \ |
102 V(LoadContextSlot) \ | 102 V(LoadContextSlot) \ |
103 V(LoadFieldByIndex) \ | 103 V(LoadFieldByIndex) \ |
104 V(LoadFunctionPrototype) \ | 104 V(LoadFunctionPrototype) \ |
105 V(LoadGlobalCell) \ | |
106 V(LoadGlobalGeneric) \ | 105 V(LoadGlobalGeneric) \ |
107 V(LoadKeyedExternal) \ | 106 V(LoadKeyedExternal) \ |
108 V(LoadKeyedFixed) \ | 107 V(LoadKeyedFixed) \ |
109 V(LoadKeyedFixedDouble) \ | 108 V(LoadKeyedFixedDouble) \ |
110 V(LoadKeyedGeneric) \ | 109 V(LoadKeyedGeneric) \ |
111 V(LoadNamedField) \ | 110 V(LoadNamedField) \ |
112 V(LoadNamedGeneric) \ | 111 V(LoadNamedGeneric) \ |
113 V(LoadRoot) \ | 112 V(LoadRoot) \ |
114 V(MapEnumLength) \ | 113 V(MapEnumLength) \ |
115 V(MathAbs) \ | 114 V(MathAbs) \ |
(...skipping 28 matching lines...) Expand all Loading... |
144 V(SeqStringGetChar) \ | 143 V(SeqStringGetChar) \ |
145 V(SeqStringSetChar) \ | 144 V(SeqStringSetChar) \ |
146 V(ShiftI) \ | 145 V(ShiftI) \ |
147 V(ShiftS) \ | 146 V(ShiftS) \ |
148 V(SmiTag) \ | 147 V(SmiTag) \ |
149 V(SmiUntag) \ | 148 V(SmiUntag) \ |
150 V(StackCheck) \ | 149 V(StackCheck) \ |
151 V(StoreCodeEntry) \ | 150 V(StoreCodeEntry) \ |
152 V(StoreContextSlot) \ | 151 V(StoreContextSlot) \ |
153 V(StoreFrameContext) \ | 152 V(StoreFrameContext) \ |
154 V(StoreGlobalCell) \ | |
155 V(StoreKeyedExternal) \ | 153 V(StoreKeyedExternal) \ |
156 V(StoreKeyedFixed) \ | 154 V(StoreKeyedFixed) \ |
157 V(StoreKeyedFixedDouble) \ | 155 V(StoreKeyedFixedDouble) \ |
158 V(StoreKeyedGeneric) \ | 156 V(StoreKeyedGeneric) \ |
159 V(StoreNamedField) \ | 157 V(StoreNamedField) \ |
160 V(StoreNamedGeneric) \ | 158 V(StoreNamedGeneric) \ |
161 V(StringAdd) \ | 159 V(StringAdd) \ |
162 V(StringCharCodeAt) \ | 160 V(StringCharCodeAt) \ |
163 V(StringCharFromCode) \ | 161 V(StringCharFromCode) \ |
164 V(StringCompareAndBranch) \ | 162 V(StringCompareAndBranch) \ |
(...skipping 1559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1724 } | 1722 } |
1725 | 1723 |
1726 LOperand* function() { return inputs_[0]; } | 1724 LOperand* function() { return inputs_[0]; } |
1727 LOperand* temp() { return temps_[0]; } | 1725 LOperand* temp() { return temps_[0]; } |
1728 | 1726 |
1729 DECLARE_CONCRETE_INSTRUCTION(LoadFunctionPrototype, "load-function-prototype") | 1727 DECLARE_CONCRETE_INSTRUCTION(LoadFunctionPrototype, "load-function-prototype") |
1730 DECLARE_HYDROGEN_ACCESSOR(LoadFunctionPrototype) | 1728 DECLARE_HYDROGEN_ACCESSOR(LoadFunctionPrototype) |
1731 }; | 1729 }; |
1732 | 1730 |
1733 | 1731 |
1734 class LLoadGlobalCell FINAL : public LTemplateInstruction<1, 0, 0> { | |
1735 public: | |
1736 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalCell, "load-global-cell") | |
1737 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalCell) | |
1738 }; | |
1739 | |
1740 | |
1741 class LLoadGlobalGeneric FINAL : public LTemplateInstruction<1, 2, 1> { | 1732 class LLoadGlobalGeneric FINAL : public LTemplateInstruction<1, 2, 1> { |
1742 public: | 1733 public: |
1743 LLoadGlobalGeneric(LOperand* context, LOperand* global_object, | 1734 LLoadGlobalGeneric(LOperand* context, LOperand* global_object, |
1744 LOperand* vector) { | 1735 LOperand* vector) { |
1745 inputs_[0] = context; | 1736 inputs_[0] = context; |
1746 inputs_[1] = global_object; | 1737 inputs_[1] = global_object; |
1747 temps_[0] = vector; | 1738 temps_[0] = vector; |
1748 } | 1739 } |
1749 | 1740 |
1750 LOperand* context() { return inputs_[0]; } | 1741 LOperand* context() { return inputs_[0]; } |
(...skipping 1051 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2802 | 2793 |
2803 DECLARE_CONCRETE_INSTRUCTION(StoreContextSlot, "store-context-slot") | 2794 DECLARE_CONCRETE_INSTRUCTION(StoreContextSlot, "store-context-slot") |
2804 DECLARE_HYDROGEN_ACCESSOR(StoreContextSlot) | 2795 DECLARE_HYDROGEN_ACCESSOR(StoreContextSlot) |
2805 | 2796 |
2806 int slot_index() { return hydrogen()->slot_index(); } | 2797 int slot_index() { return hydrogen()->slot_index(); } |
2807 | 2798 |
2808 void PrintDataTo(StringStream* stream) OVERRIDE; | 2799 void PrintDataTo(StringStream* stream) OVERRIDE; |
2809 }; | 2800 }; |
2810 | 2801 |
2811 | 2802 |
2812 class LStoreGlobalCell FINAL : public LTemplateInstruction<0, 1, 2> { | |
2813 public: | |
2814 LStoreGlobalCell(LOperand* value, LOperand* temp1, LOperand* temp2) { | |
2815 inputs_[0] = value; | |
2816 temps_[0] = temp1; | |
2817 temps_[1] = temp2; | |
2818 } | |
2819 | |
2820 LOperand* value() { return inputs_[0]; } | |
2821 LOperand* temp1() { return temps_[0]; } | |
2822 LOperand* temp2() { return temps_[1]; } | |
2823 | |
2824 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalCell, "store-global-cell") | |
2825 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalCell) | |
2826 }; | |
2827 | |
2828 | |
2829 class LSubI FINAL : public LTemplateInstruction<1, 2, 0> { | 2803 class LSubI FINAL : public LTemplateInstruction<1, 2, 0> { |
2830 public: | 2804 public: |
2831 LSubI(LOperand* left, LOperand* right) | 2805 LSubI(LOperand* left, LOperand* right) |
2832 : shift_(NO_SHIFT), shift_amount_(0) { | 2806 : shift_(NO_SHIFT), shift_amount_(0) { |
2833 inputs_[0] = left; | 2807 inputs_[0] = left; |
2834 inputs_[1] = right; | 2808 inputs_[1] = right; |
2835 } | 2809 } |
2836 | 2810 |
2837 LSubI(LOperand* left, LOperand* right, Shift shift, LOperand* shift_amount) | 2811 LSubI(LOperand* left, LOperand* right, Shift shift, LOperand* shift_amount) |
2838 : shift_(shift), shift_amount_(shift_amount) { | 2812 : shift_(shift), shift_amount_(shift_amount) { |
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3245 | 3219 |
3246 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 3220 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
3247 }; | 3221 }; |
3248 | 3222 |
3249 #undef DECLARE_HYDROGEN_ACCESSOR | 3223 #undef DECLARE_HYDROGEN_ACCESSOR |
3250 #undef DECLARE_CONCRETE_INSTRUCTION | 3224 #undef DECLARE_CONCRETE_INSTRUCTION |
3251 | 3225 |
3252 } } // namespace v8::internal | 3226 } } // namespace v8::internal |
3253 | 3227 |
3254 #endif // V8_ARM64_LITHIUM_ARM64_H_ | 3228 #endif // V8_ARM64_LITHIUM_ARM64_H_ |
OLD | NEW |