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_IA32_LITHIUM_IA32_H_ | 5 #ifndef V8_IA32_LITHIUM_IA32_H_ |
6 #define V8_IA32_LITHIUM_IA32_H_ | 6 #define V8_IA32_LITHIUM_IA32_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 2216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2227 | 2227 |
2228 LOperand* context() { return inputs_[0]; } | 2228 LOperand* context() { return inputs_[0]; } |
2229 LOperand* object() { return inputs_[1]; } | 2229 LOperand* object() { return inputs_[1]; } |
2230 LOperand* value() { return inputs_[2]; } | 2230 LOperand* value() { return inputs_[2]; } |
2231 | 2231 |
2232 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic") | 2232 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic") |
2233 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric) | 2233 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric) |
2234 | 2234 |
2235 void PrintDataTo(StringStream* stream) OVERRIDE; | 2235 void PrintDataTo(StringStream* stream) OVERRIDE; |
2236 Handle<Object> name() const { return hydrogen()->name(); } | 2236 Handle<Object> name() const { return hydrogen()->name(); } |
2237 StrictMode strict_mode() { return hydrogen()->strict_mode(); } | 2237 LanguageMode language_mode() { return hydrogen()->language_mode(); } |
2238 }; | 2238 }; |
2239 | 2239 |
2240 | 2240 |
2241 class LStoreKeyed FINAL : public LTemplateInstruction<0, 3, 0> { | 2241 class LStoreKeyed FINAL : public LTemplateInstruction<0, 3, 0> { |
2242 public: | 2242 public: |
2243 LStoreKeyed(LOperand* obj, LOperand* key, LOperand* val) { | 2243 LStoreKeyed(LOperand* obj, LOperand* key, LOperand* val) { |
2244 inputs_[0] = obj; | 2244 inputs_[0] = obj; |
2245 inputs_[1] = key; | 2245 inputs_[1] = key; |
2246 inputs_[2] = val; | 2246 inputs_[2] = val; |
2247 } | 2247 } |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2284 LOperand* context() { return inputs_[0]; } | 2284 LOperand* context() { return inputs_[0]; } |
2285 LOperand* object() { return inputs_[1]; } | 2285 LOperand* object() { return inputs_[1]; } |
2286 LOperand* key() { return inputs_[2]; } | 2286 LOperand* key() { return inputs_[2]; } |
2287 LOperand* value() { return inputs_[3]; } | 2287 LOperand* value() { return inputs_[3]; } |
2288 | 2288 |
2289 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedGeneric, "store-keyed-generic") | 2289 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedGeneric, "store-keyed-generic") |
2290 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedGeneric) | 2290 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedGeneric) |
2291 | 2291 |
2292 void PrintDataTo(StringStream* stream) OVERRIDE; | 2292 void PrintDataTo(StringStream* stream) OVERRIDE; |
2293 | 2293 |
2294 StrictMode strict_mode() { return hydrogen()->strict_mode(); } | 2294 LanguageMode language_mode() { return hydrogen()->language_mode(); } |
2295 }; | 2295 }; |
2296 | 2296 |
2297 | 2297 |
2298 class LTransitionElementsKind FINAL : public LTemplateInstruction<0, 2, 2> { | 2298 class LTransitionElementsKind FINAL : public LTemplateInstruction<0, 2, 2> { |
2299 public: | 2299 public: |
2300 LTransitionElementsKind(LOperand* object, | 2300 LTransitionElementsKind(LOperand* object, |
2301 LOperand* context, | 2301 LOperand* context, |
2302 LOperand* new_map_temp, | 2302 LOperand* new_map_temp, |
2303 LOperand* temp) { | 2303 LOperand* temp) { |
2304 inputs_[0] = object; | 2304 inputs_[0] = object; |
(...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2878 | 2878 |
2879 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2879 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2880 }; | 2880 }; |
2881 | 2881 |
2882 #undef DECLARE_HYDROGEN_ACCESSOR | 2882 #undef DECLARE_HYDROGEN_ACCESSOR |
2883 #undef DECLARE_CONCRETE_INSTRUCTION | 2883 #undef DECLARE_CONCRETE_INSTRUCTION |
2884 | 2884 |
2885 } } // namespace v8::internal | 2885 } } // namespace v8::internal |
2886 | 2886 |
2887 #endif // V8_IA32_LITHIUM_IA32_H_ | 2887 #endif // V8_IA32_LITHIUM_IA32_H_ |
OLD | NEW |