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_ARM_LITHIUM_ARM_H_ | 5 #ifndef V8_ARM_LITHIUM_ARM_H_ |
6 #define V8_ARM_LITHIUM_ARM_H_ | 6 #define V8_ARM_LITHIUM_ARM_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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 V(IsObjectAndBranch) \ | 93 V(IsObjectAndBranch) \ |
94 V(IsStringAndBranch) \ | 94 V(IsStringAndBranch) \ |
95 V(IsSmiAndBranch) \ | 95 V(IsSmiAndBranch) \ |
96 V(IsUndetectableAndBranch) \ | 96 V(IsUndetectableAndBranch) \ |
97 V(Label) \ | 97 V(Label) \ |
98 V(LazyBailout) \ | 98 V(LazyBailout) \ |
99 V(LoadContextSlot) \ | 99 V(LoadContextSlot) \ |
100 V(LoadRoot) \ | 100 V(LoadRoot) \ |
101 V(LoadFieldByIndex) \ | 101 V(LoadFieldByIndex) \ |
102 V(LoadFunctionPrototype) \ | 102 V(LoadFunctionPrototype) \ |
103 V(LoadGlobalCell) \ | |
104 V(LoadGlobalGeneric) \ | 103 V(LoadGlobalGeneric) \ |
105 V(LoadKeyed) \ | 104 V(LoadKeyed) \ |
106 V(LoadKeyedGeneric) \ | 105 V(LoadKeyedGeneric) \ |
107 V(LoadNamedField) \ | 106 V(LoadNamedField) \ |
108 V(LoadNamedGeneric) \ | 107 V(LoadNamedGeneric) \ |
109 V(MapEnumLength) \ | 108 V(MapEnumLength) \ |
110 V(MathAbs) \ | 109 V(MathAbs) \ |
111 V(MathClz32) \ | 110 V(MathClz32) \ |
112 V(MathExp) \ | 111 V(MathExp) \ |
113 V(MathFloor) \ | 112 V(MathFloor) \ |
(...skipping 21 matching lines...) Expand all Loading... |
135 V(Return) \ | 134 V(Return) \ |
136 V(SeqStringGetChar) \ | 135 V(SeqStringGetChar) \ |
137 V(SeqStringSetChar) \ | 136 V(SeqStringSetChar) \ |
138 V(ShiftI) \ | 137 V(ShiftI) \ |
139 V(SmiTag) \ | 138 V(SmiTag) \ |
140 V(SmiUntag) \ | 139 V(SmiUntag) \ |
141 V(StackCheck) \ | 140 V(StackCheck) \ |
142 V(StoreCodeEntry) \ | 141 V(StoreCodeEntry) \ |
143 V(StoreContextSlot) \ | 142 V(StoreContextSlot) \ |
144 V(StoreFrameContext) \ | 143 V(StoreFrameContext) \ |
145 V(StoreGlobalCell) \ | |
146 V(StoreKeyed) \ | 144 V(StoreKeyed) \ |
147 V(StoreKeyedGeneric) \ | 145 V(StoreKeyedGeneric) \ |
148 V(StoreNamedField) \ | 146 V(StoreNamedField) \ |
149 V(StoreNamedGeneric) \ | 147 V(StoreNamedGeneric) \ |
150 V(StringAdd) \ | 148 V(StringAdd) \ |
151 V(StringCharCodeAt) \ | 149 V(StringCharCodeAt) \ |
152 V(StringCharFromCode) \ | 150 V(StringCharFromCode) \ |
153 V(StringCompareAndBranch) \ | 151 V(StringCompareAndBranch) \ |
154 V(SubI) \ | 152 V(SubI) \ |
155 V(RSubI) \ | 153 V(RSubI) \ |
(...skipping 1541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1697 LOperand* context() { return inputs_[0]; } | 1695 LOperand* context() { return inputs_[0]; } |
1698 LOperand* object() { return inputs_[1]; } | 1696 LOperand* object() { return inputs_[1]; } |
1699 LOperand* key() { return inputs_[2]; } | 1697 LOperand* key() { return inputs_[2]; } |
1700 LOperand* temp_vector() { return temps_[0]; } | 1698 LOperand* temp_vector() { return temps_[0]; } |
1701 | 1699 |
1702 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") | 1700 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") |
1703 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedGeneric) | 1701 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedGeneric) |
1704 }; | 1702 }; |
1705 | 1703 |
1706 | 1704 |
1707 class LLoadGlobalCell FINAL : public LTemplateInstruction<1, 0, 0> { | |
1708 public: | |
1709 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalCell, "load-global-cell") | |
1710 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalCell) | |
1711 }; | |
1712 | |
1713 | |
1714 class LLoadGlobalGeneric FINAL : public LTemplateInstruction<1, 2, 1> { | 1705 class LLoadGlobalGeneric FINAL : public LTemplateInstruction<1, 2, 1> { |
1715 public: | 1706 public: |
1716 LLoadGlobalGeneric(LOperand* context, LOperand* global_object, | 1707 LLoadGlobalGeneric(LOperand* context, LOperand* global_object, |
1717 LOperand* vector) { | 1708 LOperand* vector) { |
1718 inputs_[0] = context; | 1709 inputs_[0] = context; |
1719 inputs_[1] = global_object; | 1710 inputs_[1] = global_object; |
1720 temps_[0] = vector; | 1711 temps_[0] = vector; |
1721 } | 1712 } |
1722 | 1713 |
1723 LOperand* context() { return inputs_[0]; } | 1714 LOperand* context() { return inputs_[0]; } |
1724 LOperand* global_object() { return inputs_[1]; } | 1715 LOperand* global_object() { return inputs_[1]; } |
1725 LOperand* temp_vector() { return temps_[0]; } | 1716 LOperand* temp_vector() { return temps_[0]; } |
1726 | 1717 |
1727 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") | 1718 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") |
1728 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) | 1719 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) |
1729 | 1720 |
1730 Handle<Object> name() const { return hydrogen()->name(); } | 1721 Handle<Object> name() const { return hydrogen()->name(); } |
1731 bool for_typeof() const { return hydrogen()->for_typeof(); } | 1722 bool for_typeof() const { return hydrogen()->for_typeof(); } |
1732 }; | 1723 }; |
1733 | 1724 |
1734 | 1725 |
1735 class LStoreGlobalCell FINAL : public LTemplateInstruction<0, 1, 1> { | |
1736 public: | |
1737 LStoreGlobalCell(LOperand* value, LOperand* temp) { | |
1738 inputs_[0] = value; | |
1739 temps_[0] = temp; | |
1740 } | |
1741 | |
1742 LOperand* value() { return inputs_[0]; } | |
1743 LOperand* temp() { return temps_[0]; } | |
1744 | |
1745 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalCell, "store-global-cell") | |
1746 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalCell) | |
1747 }; | |
1748 | |
1749 | |
1750 class LLoadContextSlot FINAL : public LTemplateInstruction<1, 1, 0> { | 1726 class LLoadContextSlot FINAL : public LTemplateInstruction<1, 1, 0> { |
1751 public: | 1727 public: |
1752 explicit LLoadContextSlot(LOperand* context) { | 1728 explicit LLoadContextSlot(LOperand* context) { |
1753 inputs_[0] = context; | 1729 inputs_[0] = context; |
1754 } | 1730 } |
1755 | 1731 |
1756 LOperand* context() { return inputs_[0]; } | 1732 LOperand* context() { return inputs_[0]; } |
1757 | 1733 |
1758 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") | 1734 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") |
1759 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) | 1735 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) |
(...skipping 1126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2886 | 2862 |
2887 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2863 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2888 }; | 2864 }; |
2889 | 2865 |
2890 #undef DECLARE_HYDROGEN_ACCESSOR | 2866 #undef DECLARE_HYDROGEN_ACCESSOR |
2891 #undef DECLARE_CONCRETE_INSTRUCTION | 2867 #undef DECLARE_CONCRETE_INSTRUCTION |
2892 | 2868 |
2893 } } // namespace v8::internal | 2869 } } // namespace v8::internal |
2894 | 2870 |
2895 #endif // V8_ARM_LITHIUM_ARM_H_ | 2871 #endif // V8_ARM_LITHIUM_ARM_H_ |
OLD | NEW |