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_X64_LITHIUM_X64_H_ | 5 #ifndef V8_X64_LITHIUM_X64_H_ |
6 #define V8_X64_LITHIUM_X64_H_ | 6 #define V8_X64_LITHIUM_X64_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 2194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2205 LOperand* context() { return inputs_[0]; } | 2205 LOperand* context() { return inputs_[0]; } |
2206 LOperand* object() { return inputs_[1]; } | 2206 LOperand* object() { return inputs_[1]; } |
2207 LOperand* value() { return inputs_[2]; } | 2207 LOperand* value() { return inputs_[2]; } |
2208 | 2208 |
2209 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic") | 2209 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic") |
2210 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric) | 2210 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric) |
2211 | 2211 |
2212 void PrintDataTo(StringStream* stream) OVERRIDE; | 2212 void PrintDataTo(StringStream* stream) OVERRIDE; |
2213 | 2213 |
2214 Handle<Object> name() const { return hydrogen()->name(); } | 2214 Handle<Object> name() const { return hydrogen()->name(); } |
2215 StrictMode strict_mode() { return hydrogen()->strict_mode(); } | 2215 LanguageMode language_mode() { return hydrogen()->language_mode(); } |
2216 }; | 2216 }; |
2217 | 2217 |
2218 | 2218 |
2219 class LStoreKeyed FINAL : public LTemplateInstruction<0, 3, 0> { | 2219 class LStoreKeyed FINAL : public LTemplateInstruction<0, 3, 0> { |
2220 public: | 2220 public: |
2221 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value) { | 2221 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value) { |
2222 inputs_[0] = object; | 2222 inputs_[0] = object; |
2223 inputs_[1] = key; | 2223 inputs_[1] = key; |
2224 inputs_[2] = value; | 2224 inputs_[2] = value; |
2225 } | 2225 } |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2260 LOperand* context() { return inputs_[0]; } | 2260 LOperand* context() { return inputs_[0]; } |
2261 LOperand* object() { return inputs_[1]; } | 2261 LOperand* object() { return inputs_[1]; } |
2262 LOperand* key() { return inputs_[2]; } | 2262 LOperand* key() { return inputs_[2]; } |
2263 LOperand* value() { return inputs_[3]; } | 2263 LOperand* value() { return inputs_[3]; } |
2264 | 2264 |
2265 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedGeneric, "store-keyed-generic") | 2265 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedGeneric, "store-keyed-generic") |
2266 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedGeneric) | 2266 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedGeneric) |
2267 | 2267 |
2268 void PrintDataTo(StringStream* stream) OVERRIDE; | 2268 void PrintDataTo(StringStream* stream) OVERRIDE; |
2269 | 2269 |
2270 StrictMode strict_mode() { return hydrogen()->strict_mode(); } | 2270 LanguageMode language_mode() { return hydrogen()->language_mode(); } |
2271 }; | 2271 }; |
2272 | 2272 |
2273 | 2273 |
2274 class LTransitionElementsKind FINAL : public LTemplateInstruction<0, 2, 2> { | 2274 class LTransitionElementsKind FINAL : public LTemplateInstruction<0, 2, 2> { |
2275 public: | 2275 public: |
2276 LTransitionElementsKind(LOperand* object, | 2276 LTransitionElementsKind(LOperand* object, |
2277 LOperand* context, | 2277 LOperand* context, |
2278 LOperand* new_map_temp, | 2278 LOperand* new_map_temp, |
2279 LOperand* temp) { | 2279 LOperand* temp) { |
2280 inputs_[0] = object; | 2280 inputs_[0] = object; |
(...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2867 | 2867 |
2868 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2868 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2869 }; | 2869 }; |
2870 | 2870 |
2871 #undef DECLARE_HYDROGEN_ACCESSOR | 2871 #undef DECLARE_HYDROGEN_ACCESSOR |
2872 #undef DECLARE_CONCRETE_INSTRUCTION | 2872 #undef DECLARE_CONCRETE_INSTRUCTION |
2873 | 2873 |
2874 } } // namespace v8::int | 2874 } } // namespace v8::int |
2875 | 2875 |
2876 #endif // V8_X64_LITHIUM_X64_H_ | 2876 #endif // V8_X64_LITHIUM_X64_H_ |
OLD | NEW |