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

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

Issue 1015353004: [turbofan] Eliminatable JS/call nodes should not have a control input. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 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/common-operator.cc ('k') | src/compiler/operator.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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 V(CreateModuleContext, Operator::kNoProperties, 2, 1) \ 247 V(CreateModuleContext, Operator::kNoProperties, 2, 1) \
248 V(CreateScriptContext, Operator::kNoProperties, 2, 1) 248 V(CreateScriptContext, Operator::kNoProperties, 2, 1)
249 249
250 250
251 struct JSOperatorGlobalCache FINAL { 251 struct JSOperatorGlobalCache FINAL {
252 #define CACHED(Name, properties, value_input_count, value_output_count) \ 252 #define CACHED(Name, properties, value_input_count, value_output_count) \
253 struct Name##Operator FINAL : public Operator { \ 253 struct Name##Operator FINAL : public Operator { \
254 Name##Operator() \ 254 Name##Operator() \
255 : Operator(IrOpcode::kJS##Name, properties, "JS" #Name, \ 255 : Operator(IrOpcode::kJS##Name, properties, "JS" #Name, \
256 value_input_count, Operator::ZeroIfPure(properties), \ 256 value_input_count, Operator::ZeroIfPure(properties), \
257 Operator::ZeroIfPure(properties), value_output_count, \ 257 Operator::ZeroIfEliminatable(properties), \
258 Operator::ZeroIfPure(properties), \ 258 value_output_count, Operator::ZeroIfPure(properties), \
259 Operator::ZeroIfNoThrow(properties)) {} \ 259 Operator::ZeroIfNoThrow(properties)) {} \
260 }; \ 260 }; \
261 Name##Operator k##Name##Operator; 261 Name##Operator k##Name##Operator;
262 CACHED_OP_LIST(CACHED) 262 CACHED_OP_LIST(CACHED)
263 #undef CACHED 263 #undef CACHED
264 264
265 template <LanguageMode kLanguageMode> 265 template <LanguageMode kLanguageMode>
266 struct StorePropertyOperator FINAL : public Operator1<LanguageMode> { 266 struct StorePropertyOperator FINAL : public Operator1<LanguageMode> {
267 StorePropertyOperator() 267 StorePropertyOperator()
268 : Operator1<LanguageMode>(IrOpcode::kJSStoreProperty, 268 : Operator1<LanguageMode>(IrOpcode::kJSStoreProperty,
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 return new (zone()) Operator1<Unique<String>>( // -- 405 return new (zone()) Operator1<Unique<String>>( // --
406 IrOpcode::kJSCreateCatchContext, Operator::kNoProperties, // opcode 406 IrOpcode::kJSCreateCatchContext, Operator::kNoProperties, // opcode
407 "JSCreateCatchContext", // name 407 "JSCreateCatchContext", // name
408 2, 1, 1, 1, 1, 2, // counts 408 2, 1, 1, 1, 1, 2, // counts
409 name); // parameter 409 name); // parameter
410 } 410 }
411 411
412 } // namespace compiler 412 } // namespace compiler
413 } // namespace internal 413 } // namespace internal
414 } // namespace v8 414 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/common-operator.cc ('k') | src/compiler/operator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698