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_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ | 5 #ifndef V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ |
6 #define V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ | 6 #define V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_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 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) \ | |
106 V(LoadKeyed) \ | 105 V(LoadKeyed) \ |
107 V(LoadKeyedGeneric) \ | 106 V(LoadKeyedGeneric) \ |
108 V(LoadNamedField) \ | 107 V(LoadNamedField) \ |
109 V(LoadNamedGeneric) \ | 108 V(LoadNamedGeneric) \ |
110 V(MapEnumLength) \ | 109 V(MapEnumLength) \ |
111 V(MathAbs) \ | 110 V(MathAbs) \ |
112 V(MathExp) \ | 111 V(MathExp) \ |
113 V(MathClz32) \ | 112 V(MathClz32) \ |
114 V(MathFloor) \ | 113 V(MathFloor) \ |
115 V(MathFround) \ | 114 V(MathFround) \ |
(...skipping 21 matching lines...) Expand all Loading... |
137 V(Return) \ | 136 V(Return) \ |
138 V(SeqStringGetChar) \ | 137 V(SeqStringGetChar) \ |
139 V(SeqStringSetChar) \ | 138 V(SeqStringSetChar) \ |
140 V(ShiftI) \ | 139 V(ShiftI) \ |
141 V(SmiTag) \ | 140 V(SmiTag) \ |
142 V(SmiUntag) \ | 141 V(SmiUntag) \ |
143 V(StackCheck) \ | 142 V(StackCheck) \ |
144 V(StoreCodeEntry) \ | 143 V(StoreCodeEntry) \ |
145 V(StoreContextSlot) \ | 144 V(StoreContextSlot) \ |
146 V(StoreFrameContext) \ | 145 V(StoreFrameContext) \ |
147 V(StoreGlobalViaContext) \ | |
148 V(StoreKeyed) \ | 146 V(StoreKeyed) \ |
149 V(StoreKeyedGeneric) \ | 147 V(StoreKeyedGeneric) \ |
150 V(StoreNamedField) \ | 148 V(StoreNamedField) \ |
151 V(StoreNamedGeneric) \ | 149 V(StoreNamedGeneric) \ |
152 V(StringAdd) \ | 150 V(StringAdd) \ |
153 V(StringCharCodeAt) \ | 151 V(StringCharCodeAt) \ |
154 V(StringCharFromCode) \ | 152 V(StringCharFromCode) \ |
155 V(StringCompareAndBranch) \ | 153 V(StringCompareAndBranch) \ |
156 V(SubI) \ | 154 V(SubI) \ |
157 V(SubS) \ | 155 V(SubS) \ |
(...skipping 1532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1690 LOperand* temp_vector() { return temps_[0]; } | 1688 LOperand* temp_vector() { return temps_[0]; } |
1691 | 1689 |
1692 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") | 1690 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") |
1693 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) | 1691 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) |
1694 | 1692 |
1695 Handle<Object> name() const { return hydrogen()->name(); } | 1693 Handle<Object> name() const { return hydrogen()->name(); } |
1696 TypeofMode typeof_mode() const { return hydrogen()->typeof_mode(); } | 1694 TypeofMode typeof_mode() const { return hydrogen()->typeof_mode(); } |
1697 }; | 1695 }; |
1698 | 1696 |
1699 | 1697 |
1700 class LLoadGlobalViaContext final : public LTemplateInstruction<1, 1, 1> { | |
1701 public: | |
1702 explicit LLoadGlobalViaContext(LOperand* context) { inputs_[0] = context; } | |
1703 | |
1704 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalViaContext, "load-global-via-context") | |
1705 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalViaContext) | |
1706 | |
1707 void PrintDataTo(StringStream* stream) override; | |
1708 | |
1709 LOperand* context() { return inputs_[0]; } | |
1710 | |
1711 int depth() const { return hydrogen()->depth(); } | |
1712 int slot_index() const { return hydrogen()->slot_index(); } | |
1713 }; | |
1714 | |
1715 | |
1716 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { | 1698 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { |
1717 public: | 1699 public: |
1718 explicit LLoadContextSlot(LOperand* context) { | 1700 explicit LLoadContextSlot(LOperand* context) { |
1719 inputs_[0] = context; | 1701 inputs_[0] = context; |
1720 } | 1702 } |
1721 | 1703 |
1722 LOperand* context() { return inputs_[0]; } | 1704 LOperand* context() { return inputs_[0]; } |
1723 | 1705 |
1724 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") | 1706 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") |
1725 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) | 1707 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) |
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2191 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic") | 2173 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic") |
2192 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric) | 2174 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric) |
2193 | 2175 |
2194 void PrintDataTo(StringStream* stream) override; | 2176 void PrintDataTo(StringStream* stream) override; |
2195 | 2177 |
2196 Handle<Object> name() const { return hydrogen()->name(); } | 2178 Handle<Object> name() const { return hydrogen()->name(); } |
2197 LanguageMode language_mode() { return hydrogen()->language_mode(); } | 2179 LanguageMode language_mode() { return hydrogen()->language_mode(); } |
2198 }; | 2180 }; |
2199 | 2181 |
2200 | 2182 |
2201 class LStoreGlobalViaContext final : public LTemplateInstruction<0, 2, 0> { | |
2202 public: | |
2203 LStoreGlobalViaContext(LOperand* context, LOperand* value) { | |
2204 inputs_[0] = context; | |
2205 inputs_[1] = value; | |
2206 } | |
2207 | |
2208 LOperand* context() { return inputs_[0]; } | |
2209 LOperand* value() { return inputs_[1]; } | |
2210 | |
2211 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalViaContext, | |
2212 "store-global-via-context") | |
2213 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalViaContext) | |
2214 | |
2215 void PrintDataTo(StringStream* stream) override; | |
2216 | |
2217 int depth() { return hydrogen()->depth(); } | |
2218 int slot_index() { return hydrogen()->slot_index(); } | |
2219 LanguageMode language_mode() { return hydrogen()->language_mode(); } | |
2220 }; | |
2221 | |
2222 | |
2223 class LStoreKeyed final : public LTemplateInstruction<0, 3, 0> { | 2183 class LStoreKeyed final : public LTemplateInstruction<0, 3, 0> { |
2224 public: | 2184 public: |
2225 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value) { | 2185 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value) { |
2226 inputs_[0] = object; | 2186 inputs_[0] = object; |
2227 inputs_[1] = key; | 2187 inputs_[1] = key; |
2228 inputs_[2] = value; | 2188 inputs_[2] = value; |
2229 } | 2189 } |
2230 | 2190 |
2231 bool is_fixed_typed_array() const { | 2191 bool is_fixed_typed_array() const { |
2232 return hydrogen()->is_fixed_typed_array(); | 2192 return hydrogen()->is_fixed_typed_array(); |
(...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2886 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2846 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2887 }; | 2847 }; |
2888 | 2848 |
2889 #undef DECLARE_HYDROGEN_ACCESSOR | 2849 #undef DECLARE_HYDROGEN_ACCESSOR |
2890 #undef DECLARE_CONCRETE_INSTRUCTION | 2850 #undef DECLARE_CONCRETE_INSTRUCTION |
2891 | 2851 |
2892 } // namespace internal | 2852 } // namespace internal |
2893 } // namespace v8 | 2853 } // namespace v8 |
2894 | 2854 |
2895 #endif // V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ | 2855 #endif // V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ |
OLD | NEW |