| 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 2161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2172 DECLARE_HYDROGEN_ACCESSOR(StoreNamedField) | 2172 DECLARE_HYDROGEN_ACCESSOR(StoreNamedField) |
| 2173 | 2173 |
| 2174 void PrintDataTo(StringStream* stream) override; | 2174 void PrintDataTo(StringStream* stream) override; |
| 2175 | 2175 |
| 2176 Representation representation() const { | 2176 Representation representation() const { |
| 2177 return hydrogen()->field_representation(); | 2177 return hydrogen()->field_representation(); |
| 2178 } | 2178 } |
| 2179 }; | 2179 }; |
| 2180 | 2180 |
| 2181 | 2181 |
| 2182 class LStoreNamedGeneric final : public LTemplateInstruction<0, 3, 0> { | 2182 class LStoreNamedGeneric final : public LTemplateInstruction<0, 3, 2> { |
| 2183 public: | 2183 public: |
| 2184 LStoreNamedGeneric(LOperand* context, LOperand* object, LOperand* value) { | 2184 LStoreNamedGeneric(LOperand* context, LOperand* object, LOperand* value, |
| 2185 LOperand* slot, LOperand* vector) { |
| 2185 inputs_[0] = context; | 2186 inputs_[0] = context; |
| 2186 inputs_[1] = object; | 2187 inputs_[1] = object; |
| 2187 inputs_[2] = value; | 2188 inputs_[2] = value; |
| 2189 temps_[0] = slot; |
| 2190 temps_[1] = vector; |
| 2188 } | 2191 } |
| 2189 | 2192 |
| 2190 LOperand* context() { return inputs_[0]; } | 2193 LOperand* context() { return inputs_[0]; } |
| 2191 LOperand* object() { return inputs_[1]; } | 2194 LOperand* object() { return inputs_[1]; } |
| 2192 LOperand* value() { return inputs_[2]; } | 2195 LOperand* value() { return inputs_[2]; } |
| 2196 LOperand* temp_slot() { return temps_[0]; } |
| 2197 LOperand* temp_vector() { return temps_[1]; } |
| 2193 | 2198 |
| 2194 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic") | 2199 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic") |
| 2195 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric) | 2200 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric) |
| 2196 | 2201 |
| 2197 void PrintDataTo(StringStream* stream) override; | 2202 void PrintDataTo(StringStream* stream) override; |
| 2198 | 2203 |
| 2199 Handle<Object> name() const { return hydrogen()->name(); } | 2204 Handle<Object> name() const { return hydrogen()->name(); } |
| 2200 LanguageMode language_mode() { return hydrogen()->language_mode(); } | 2205 LanguageMode language_mode() { return hydrogen()->language_mode(); } |
| 2201 }; | 2206 }; |
| 2202 | 2207 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 2225 | 2230 |
| 2226 DECLARE_CONCRETE_INSTRUCTION(StoreKeyed, "store-keyed") | 2231 DECLARE_CONCRETE_INSTRUCTION(StoreKeyed, "store-keyed") |
| 2227 DECLARE_HYDROGEN_ACCESSOR(StoreKeyed) | 2232 DECLARE_HYDROGEN_ACCESSOR(StoreKeyed) |
| 2228 | 2233 |
| 2229 void PrintDataTo(StringStream* stream) override; | 2234 void PrintDataTo(StringStream* stream) override; |
| 2230 bool NeedsCanonicalization() { return hydrogen()->NeedsCanonicalization(); } | 2235 bool NeedsCanonicalization() { return hydrogen()->NeedsCanonicalization(); } |
| 2231 uint32_t base_offset() const { return hydrogen()->base_offset(); } | 2236 uint32_t base_offset() const { return hydrogen()->base_offset(); } |
| 2232 }; | 2237 }; |
| 2233 | 2238 |
| 2234 | 2239 |
| 2235 class LStoreKeyedGeneric final : public LTemplateInstruction<0, 4, 0> { | 2240 class LStoreKeyedGeneric final : public LTemplateInstruction<0, 4, 2> { |
| 2236 public: | 2241 public: |
| 2237 LStoreKeyedGeneric(LOperand* context, | 2242 LStoreKeyedGeneric(LOperand* context, LOperand* object, LOperand* key, |
| 2238 LOperand* obj, | 2243 LOperand* value, LOperand* slot, LOperand* vector) { |
| 2239 LOperand* key, | |
| 2240 LOperand* value) { | |
| 2241 inputs_[0] = context; | 2244 inputs_[0] = context; |
| 2242 inputs_[1] = obj; | 2245 inputs_[1] = object; |
| 2243 inputs_[2] = key; | 2246 inputs_[2] = key; |
| 2244 inputs_[3] = value; | 2247 inputs_[3] = value; |
| 2248 temps_[0] = slot; |
| 2249 temps_[1] = vector; |
| 2245 } | 2250 } |
| 2246 | 2251 |
| 2247 LOperand* context() { return inputs_[0]; } | 2252 LOperand* context() { return inputs_[0]; } |
| 2248 LOperand* object() { return inputs_[1]; } | 2253 LOperand* object() { return inputs_[1]; } |
| 2249 LOperand* key() { return inputs_[2]; } | 2254 LOperand* key() { return inputs_[2]; } |
| 2250 LOperand* value() { return inputs_[3]; } | 2255 LOperand* value() { return inputs_[3]; } |
| 2256 LOperand* temp_slot() { return temps_[0]; } |
| 2257 LOperand* temp_vector() { return temps_[1]; } |
| 2251 | 2258 |
| 2252 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedGeneric, "store-keyed-generic") | 2259 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedGeneric, "store-keyed-generic") |
| 2253 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedGeneric) | 2260 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedGeneric) |
| 2254 | 2261 |
| 2255 void PrintDataTo(StringStream* stream) override; | 2262 void PrintDataTo(StringStream* stream) override; |
| 2256 | 2263 |
| 2257 LanguageMode language_mode() { return hydrogen()->language_mode(); } | 2264 LanguageMode language_mode() { return hydrogen()->language_mode(); } |
| 2258 }; | 2265 }; |
| 2259 | 2266 |
| 2260 | 2267 |
| (...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2881 | 2888 |
| 2882 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2889 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2883 }; | 2890 }; |
| 2884 | 2891 |
| 2885 #undef DECLARE_HYDROGEN_ACCESSOR | 2892 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2886 #undef DECLARE_CONCRETE_INSTRUCTION | 2893 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2887 | 2894 |
| 2888 } } // namespace v8::internal | 2895 } } // namespace v8::internal |
| 2889 | 2896 |
| 2890 #endif // V8_MIPS_LITHIUM_MIPS_H_ | 2897 #endif // V8_MIPS_LITHIUM_MIPS_H_ |
| OLD | NEW |