| 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 2152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2163 DECLARE_HYDROGEN_ACCESSOR(StoreNamedField) | 2163 DECLARE_HYDROGEN_ACCESSOR(StoreNamedField) |
| 2164 | 2164 |
| 2165 void PrintDataTo(StringStream* stream) override; | 2165 void PrintDataTo(StringStream* stream) override; |
| 2166 | 2166 |
| 2167 Representation representation() const { | 2167 Representation representation() const { |
| 2168 return hydrogen()->field_representation(); | 2168 return hydrogen()->field_representation(); |
| 2169 } | 2169 } |
| 2170 }; | 2170 }; |
| 2171 | 2171 |
| 2172 | 2172 |
| 2173 class LStoreNamedGeneric final : public LTemplateInstruction<0, 3, 0> { | 2173 class LStoreNamedGeneric final : public LTemplateInstruction<0, 3, 2> { |
| 2174 public: | 2174 public: |
| 2175 LStoreNamedGeneric(LOperand* context, LOperand* object, LOperand* value) { | 2175 LStoreNamedGeneric(LOperand* context, LOperand* object, LOperand* value, |
| 2176 LOperand* slot, LOperand* vector) { |
| 2176 inputs_[0] = context; | 2177 inputs_[0] = context; |
| 2177 inputs_[1] = object; | 2178 inputs_[1] = object; |
| 2178 inputs_[2] = value; | 2179 inputs_[2] = value; |
| 2180 temps_[0] = slot; |
| 2181 temps_[1] = vector; |
| 2179 } | 2182 } |
| 2180 | 2183 |
| 2181 LOperand* context() { return inputs_[0]; } | 2184 LOperand* context() { return inputs_[0]; } |
| 2182 LOperand* object() { return inputs_[1]; } | 2185 LOperand* object() { return inputs_[1]; } |
| 2183 LOperand* value() { return inputs_[2]; } | 2186 LOperand* value() { return inputs_[2]; } |
| 2187 LOperand* temp_slot() { return temps_[0]; } |
| 2188 LOperand* temp_vector() { return temps_[1]; } |
| 2184 | 2189 |
| 2185 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic") | 2190 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic") |
| 2186 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric) | 2191 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric) |
| 2187 | 2192 |
| 2188 void PrintDataTo(StringStream* stream) override; | 2193 void PrintDataTo(StringStream* stream) override; |
| 2189 | 2194 |
| 2190 Handle<Object> name() const { return hydrogen()->name(); } | 2195 Handle<Object> name() const { return hydrogen()->name(); } |
| 2191 LanguageMode language_mode() { return hydrogen()->language_mode(); } | 2196 LanguageMode language_mode() { return hydrogen()->language_mode(); } |
| 2192 }; | 2197 }; |
| 2193 | 2198 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 2222 if (hydrogen()->value()->IsAdd() || hydrogen()->value()->IsSub() || | 2227 if (hydrogen()->value()->IsAdd() || hydrogen()->value()->IsSub() || |
| 2223 hydrogen()->value()->IsMul() || hydrogen()->value()->IsDiv()) { | 2228 hydrogen()->value()->IsMul() || hydrogen()->value()->IsDiv()) { |
| 2224 return false; | 2229 return false; |
| 2225 } | 2230 } |
| 2226 return hydrogen()->NeedsCanonicalization(); | 2231 return hydrogen()->NeedsCanonicalization(); |
| 2227 } | 2232 } |
| 2228 uint32_t base_offset() const { return hydrogen()->base_offset(); } | 2233 uint32_t base_offset() const { return hydrogen()->base_offset(); } |
| 2229 }; | 2234 }; |
| 2230 | 2235 |
| 2231 | 2236 |
| 2232 class LStoreKeyedGeneric final : public LTemplateInstruction<0, 4, 0> { | 2237 class LStoreKeyedGeneric final : public LTemplateInstruction<0, 4, 2> { |
| 2233 public: | 2238 public: |
| 2234 LStoreKeyedGeneric(LOperand* context, | 2239 LStoreKeyedGeneric(LOperand* context, LOperand* object, LOperand* key, |
| 2235 LOperand* obj, | 2240 LOperand* value, LOperand* slot, LOperand* vector) { |
| 2236 LOperand* key, | |
| 2237 LOperand* value) { | |
| 2238 inputs_[0] = context; | 2241 inputs_[0] = context; |
| 2239 inputs_[1] = obj; | 2242 inputs_[1] = object; |
| 2240 inputs_[2] = key; | 2243 inputs_[2] = key; |
| 2241 inputs_[3] = value; | 2244 inputs_[3] = value; |
| 2245 temps_[0] = slot; |
| 2246 temps_[1] = vector; |
| 2242 } | 2247 } |
| 2243 | 2248 |
| 2244 LOperand* context() { return inputs_[0]; } | 2249 LOperand* context() { return inputs_[0]; } |
| 2245 LOperand* object() { return inputs_[1]; } | 2250 LOperand* object() { return inputs_[1]; } |
| 2246 LOperand* key() { return inputs_[2]; } | 2251 LOperand* key() { return inputs_[2]; } |
| 2247 LOperand* value() { return inputs_[3]; } | 2252 LOperand* value() { return inputs_[3]; } |
| 2253 LOperand* temp_slot() { return temps_[0]; } |
| 2254 LOperand* temp_vector() { return temps_[1]; } |
| 2248 | 2255 |
| 2249 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedGeneric, "store-keyed-generic") | 2256 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedGeneric, "store-keyed-generic") |
| 2250 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedGeneric) | 2257 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedGeneric) |
| 2251 | 2258 |
| 2252 void PrintDataTo(StringStream* stream) override; | 2259 void PrintDataTo(StringStream* stream) override; |
| 2253 | 2260 |
| 2254 LanguageMode language_mode() { return hydrogen()->language_mode(); } | 2261 LanguageMode language_mode() { return hydrogen()->language_mode(); } |
| 2255 }; | 2262 }; |
| 2256 | 2263 |
| 2257 | 2264 |
| (...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2877 | 2884 |
| 2878 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2885 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2879 }; | 2886 }; |
| 2880 | 2887 |
| 2881 #undef DECLARE_HYDROGEN_ACCESSOR | 2888 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2882 #undef DECLARE_CONCRETE_INSTRUCTION | 2889 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2883 | 2890 |
| 2884 } } // namespace v8::internal | 2891 } } // namespace v8::internal |
| 2885 | 2892 |
| 2886 #endif // V8_ARM_LITHIUM_ARM_H_ | 2893 #endif // V8_ARM_LITHIUM_ARM_H_ |
| OLD | NEW |