Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(379)

Side by Side Diff: src/x64/lithium-x64.h

Issue 894683003: Introduce LanguageMode, drop StrictMode. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebased (w/ conflicts) Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | test/cctest/test-parsing.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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_
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | test/cctest/test-parsing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698