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

Side by Side Diff: src/compiler/js-operator.cc

Issue 1088993003: Replace OVERRIDE->override and FINAL->final since we now require C++11. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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/compiler/js-operator.h ('k') | src/compiler/js-type-feedback.h » ('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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 #include "src/compiler/js-operator.h" 5 #include "src/compiler/js-operator.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "src/base/lazy-instance.h" 9 #include "src/base/lazy-instance.h"
10 #include "src/compiler/opcodes.h" 10 #include "src/compiler/opcodes.h"
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 V(TypeOf, Operator::kPure, 1, 1) \ 240 V(TypeOf, Operator::kPure, 1, 1) \
241 V(InstanceOf, Operator::kNoProperties, 2, 1) \ 241 V(InstanceOf, Operator::kNoProperties, 2, 1) \
242 V(StackCheck, Operator::kNoProperties, 0, 0) \ 242 V(StackCheck, Operator::kNoProperties, 0, 0) \
243 V(CreateFunctionContext, Operator::kNoProperties, 1, 1) \ 243 V(CreateFunctionContext, Operator::kNoProperties, 1, 1) \
244 V(CreateWithContext, Operator::kNoProperties, 2, 1) \ 244 V(CreateWithContext, Operator::kNoProperties, 2, 1) \
245 V(CreateBlockContext, Operator::kNoProperties, 2, 1) \ 245 V(CreateBlockContext, Operator::kNoProperties, 2, 1) \
246 V(CreateModuleContext, Operator::kNoProperties, 2, 1) \ 246 V(CreateModuleContext, Operator::kNoProperties, 2, 1) \
247 V(CreateScriptContext, Operator::kNoProperties, 2, 1) 247 V(CreateScriptContext, Operator::kNoProperties, 2, 1)
248 248
249 249
250 struct JSOperatorGlobalCache FINAL { 250 struct JSOperatorGlobalCache final {
251 #define CACHED(Name, properties, value_input_count, value_output_count) \ 251 #define CACHED(Name, properties, value_input_count, value_output_count) \
252 struct Name##Operator FINAL : public Operator { \ 252 struct Name##Operator final : public Operator { \
253 Name##Operator() \ 253 Name##Operator() \
254 : Operator(IrOpcode::kJS##Name, properties, "JS" #Name, \ 254 : Operator(IrOpcode::kJS##Name, properties, "JS" #Name, \
255 value_input_count, Operator::ZeroIfPure(properties), \ 255 value_input_count, Operator::ZeroIfPure(properties), \
256 Operator::ZeroIfEliminatable(properties), \ 256 Operator::ZeroIfEliminatable(properties), \
257 value_output_count, Operator::ZeroIfPure(properties), \ 257 value_output_count, Operator::ZeroIfPure(properties), \
258 Operator::ZeroIfNoThrow(properties)) {} \ 258 Operator::ZeroIfNoThrow(properties)) {} \
259 }; \ 259 }; \
260 Name##Operator k##Name##Operator; 260 Name##Operator k##Name##Operator;
261 CACHED_OP_LIST(CACHED) 261 CACHED_OP_LIST(CACHED)
262 #undef CACHED 262 #undef CACHED
263 263
264 template <LanguageMode kLanguageMode> 264 template <LanguageMode kLanguageMode>
265 struct StorePropertyOperator FINAL : public Operator1<LanguageMode> { 265 struct StorePropertyOperator final : public Operator1<LanguageMode> {
266 StorePropertyOperator() 266 StorePropertyOperator()
267 : Operator1<LanguageMode>(IrOpcode::kJSStoreProperty, 267 : Operator1<LanguageMode>(IrOpcode::kJSStoreProperty,
268 Operator::kNoProperties, "JSStoreProperty", 3, 268 Operator::kNoProperties, "JSStoreProperty", 3,
269 1, 1, 0, 1, 2, kLanguageMode) {} 269 1, 1, 0, 1, 2, kLanguageMode) {}
270 }; 270 };
271 StorePropertyOperator<SLOPPY> kStorePropertySloppyOperator; 271 StorePropertyOperator<SLOPPY> kStorePropertySloppyOperator;
272 StorePropertyOperator<STRICT> kStorePropertyStrictOperator; 272 StorePropertyOperator<STRICT> kStorePropertyStrictOperator;
273 }; 273 };
274 274
275 275
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 return new (zone()) Operator1<Unique<String>>( // -- 404 return new (zone()) Operator1<Unique<String>>( // --
405 IrOpcode::kJSCreateCatchContext, Operator::kNoProperties, // opcode 405 IrOpcode::kJSCreateCatchContext, Operator::kNoProperties, // opcode
406 "JSCreateCatchContext", // name 406 "JSCreateCatchContext", // name
407 2, 1, 1, 1, 1, 2, // counts 407 2, 1, 1, 1, 1, 2, // counts
408 name); // parameter 408 name); // parameter
409 } 409 }
410 410
411 } // namespace compiler 411 } // namespace compiler
412 } // namespace internal 412 } // namespace internal
413 } // namespace v8 413 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-operator.h ('k') | src/compiler/js-type-feedback.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698