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_MIPS_LITHIUM_MIPS_H_ | 5 #ifndef V8_MIPS_LITHIUM_MIPS_H_ |
6 #define V8_MIPS_LITHIUM_MIPS_H_ | 6 #define V8_MIPS_LITHIUM_MIPS_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(IsStringAndBranch) \ | 95 V(IsStringAndBranch) \ |
96 V(IsSmiAndBranch) \ | 96 V(IsSmiAndBranch) \ |
97 V(IsUndetectableAndBranch) \ | 97 V(IsUndetectableAndBranch) \ |
98 V(Label) \ | 98 V(Label) \ |
99 V(LazyBailout) \ | 99 V(LazyBailout) \ |
100 V(LoadContextSlot) \ | 100 V(LoadContextSlot) \ |
101 V(LoadRoot) \ | 101 V(LoadRoot) \ |
102 V(LoadFieldByIndex) \ | 102 V(LoadFieldByIndex) \ |
103 V(LoadFunctionPrototype) \ | 103 V(LoadFunctionPrototype) \ |
104 V(LoadGlobalGeneric) \ | 104 V(LoadGlobalGeneric) \ |
| 105 V(LoadGlobalViaContext) \ |
105 V(LoadKeyed) \ | 106 V(LoadKeyed) \ |
106 V(LoadKeyedGeneric) \ | 107 V(LoadKeyedGeneric) \ |
107 V(LoadNamedField) \ | 108 V(LoadNamedField) \ |
108 V(LoadNamedGeneric) \ | 109 V(LoadNamedGeneric) \ |
109 V(MapEnumLength) \ | 110 V(MapEnumLength) \ |
110 V(MathAbs) \ | 111 V(MathAbs) \ |
111 V(MathExp) \ | 112 V(MathExp) \ |
112 V(MathClz32) \ | 113 V(MathClz32) \ |
113 V(MathFloor) \ | 114 V(MathFloor) \ |
114 V(MathFround) \ | 115 V(MathFround) \ |
(...skipping 20 matching lines...) Expand all Loading... |
135 V(Return) \ | 136 V(Return) \ |
136 V(SeqStringGetChar) \ | 137 V(SeqStringGetChar) \ |
137 V(SeqStringSetChar) \ | 138 V(SeqStringSetChar) \ |
138 V(ShiftI) \ | 139 V(ShiftI) \ |
139 V(SmiTag) \ | 140 V(SmiTag) \ |
140 V(SmiUntag) \ | 141 V(SmiUntag) \ |
141 V(StackCheck) \ | 142 V(StackCheck) \ |
142 V(StoreCodeEntry) \ | 143 V(StoreCodeEntry) \ |
143 V(StoreContextSlot) \ | 144 V(StoreContextSlot) \ |
144 V(StoreFrameContext) \ | 145 V(StoreFrameContext) \ |
| 146 V(StoreGlobalViaContext) \ |
145 V(StoreKeyed) \ | 147 V(StoreKeyed) \ |
146 V(StoreKeyedGeneric) \ | 148 V(StoreKeyedGeneric) \ |
147 V(StoreNamedField) \ | 149 V(StoreNamedField) \ |
148 V(StoreNamedGeneric) \ | 150 V(StoreNamedGeneric) \ |
149 V(StringAdd) \ | 151 V(StringAdd) \ |
150 V(StringCharCodeAt) \ | 152 V(StringCharCodeAt) \ |
151 V(StringCharFromCode) \ | 153 V(StringCharFromCode) \ |
152 V(StringCompareAndBranch) \ | 154 V(StringCompareAndBranch) \ |
153 V(SubI) \ | 155 V(SubI) \ |
154 V(TaggedToI) \ | 156 V(TaggedToI) \ |
(...skipping 1505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1660 LOperand* temp_vector() { return temps_[0]; } | 1662 LOperand* temp_vector() { return temps_[0]; } |
1661 | 1663 |
1662 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") | 1664 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") |
1663 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) | 1665 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) |
1664 | 1666 |
1665 Handle<Object> name() const { return hydrogen()->name(); } | 1667 Handle<Object> name() const { return hydrogen()->name(); } |
1666 TypeofMode typeof_mode() const { return hydrogen()->typeof_mode(); } | 1668 TypeofMode typeof_mode() const { return hydrogen()->typeof_mode(); } |
1667 }; | 1669 }; |
1668 | 1670 |
1669 | 1671 |
| 1672 class LLoadGlobalViaContext final : public LTemplateInstruction<1, 1, 1> { |
| 1673 public: |
| 1674 explicit LLoadGlobalViaContext(LOperand* context) { inputs_[0] = context; } |
| 1675 |
| 1676 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalViaContext, "load-global-via-context") |
| 1677 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalViaContext) |
| 1678 |
| 1679 void PrintDataTo(StringStream* stream) override; |
| 1680 |
| 1681 LOperand* context() { return inputs_[0]; } |
| 1682 |
| 1683 Handle<Object> name() const { return hydrogen()->name(); } |
| 1684 int depth() const { return hydrogen()->depth(); } |
| 1685 int slot_index() const { return hydrogen()->slot_index(); } |
| 1686 }; |
| 1687 |
| 1688 |
1670 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { | 1689 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { |
1671 public: | 1690 public: |
1672 explicit LLoadContextSlot(LOperand* context) { | 1691 explicit LLoadContextSlot(LOperand* context) { |
1673 inputs_[0] = context; | 1692 inputs_[0] = context; |
1674 } | 1693 } |
1675 | 1694 |
1676 LOperand* context() { return inputs_[0]; } | 1695 LOperand* context() { return inputs_[0]; } |
1677 | 1696 |
1678 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") | 1697 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") |
1679 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) | 1698 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) |
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2161 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic") | 2180 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic") |
2162 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric) | 2181 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric) |
2163 | 2182 |
2164 void PrintDataTo(StringStream* stream) override; | 2183 void PrintDataTo(StringStream* stream) override; |
2165 | 2184 |
2166 Handle<Object> name() const { return hydrogen()->name(); } | 2185 Handle<Object> name() const { return hydrogen()->name(); } |
2167 LanguageMode language_mode() { return hydrogen()->language_mode(); } | 2186 LanguageMode language_mode() { return hydrogen()->language_mode(); } |
2168 }; | 2187 }; |
2169 | 2188 |
2170 | 2189 |
| 2190 class LStoreGlobalViaContext final : public LTemplateInstruction<0, 2, 0> { |
| 2191 public: |
| 2192 LStoreGlobalViaContext(LOperand* context, LOperand* value) { |
| 2193 inputs_[0] = context; |
| 2194 inputs_[1] = value; |
| 2195 } |
| 2196 |
| 2197 LOperand* context() { return inputs_[0]; } |
| 2198 LOperand* value() { return inputs_[1]; } |
| 2199 |
| 2200 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalViaContext, |
| 2201 "store-global-via-context") |
| 2202 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalViaContext) |
| 2203 |
| 2204 void PrintDataTo(StringStream* stream) override; |
| 2205 |
| 2206 Handle<Object> name() const { return hydrogen()->name(); } |
| 2207 int depth() { return hydrogen()->depth(); } |
| 2208 int slot_index() { return hydrogen()->slot_index(); } |
| 2209 LanguageMode language_mode() { return hydrogen()->language_mode(); } |
| 2210 }; |
| 2211 |
| 2212 |
2171 class LStoreKeyed final : public LTemplateInstruction<0, 3, 0> { | 2213 class LStoreKeyed final : public LTemplateInstruction<0, 3, 0> { |
2172 public: | 2214 public: |
2173 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value) { | 2215 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value) { |
2174 inputs_[0] = object; | 2216 inputs_[0] = object; |
2175 inputs_[1] = key; | 2217 inputs_[1] = key; |
2176 inputs_[2] = value; | 2218 inputs_[2] = value; |
2177 } | 2219 } |
2178 | 2220 |
2179 bool is_external() const { return hydrogen()->is_external(); } | 2221 bool is_external() const { return hydrogen()->is_external(); } |
2180 bool is_fixed_typed_array() const { | 2222 bool is_fixed_typed_array() const { |
(...skipping 669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2850 | 2892 |
2851 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2893 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2852 }; | 2894 }; |
2853 | 2895 |
2854 #undef DECLARE_HYDROGEN_ACCESSOR | 2896 #undef DECLARE_HYDROGEN_ACCESSOR |
2855 #undef DECLARE_CONCRETE_INSTRUCTION | 2897 #undef DECLARE_CONCRETE_INSTRUCTION |
2856 | 2898 |
2857 } } // namespace v8::internal | 2899 } } // namespace v8::internal |
2858 | 2900 |
2859 #endif // V8_MIPS_LITHIUM_MIPS_H_ | 2901 #endif // V8_MIPS_LITHIUM_MIPS_H_ |
OLD | NEW |