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

Side by Side Diff: src/compiler/js-call-reducer.h

Issue 2666783007: [turbo] Rename CallFunction* JSOperators to Call*. (Closed)
Patch Set: Created 3 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/compiler/js-builtin-reducer.cc ('k') | src/compiler/js-call-reducer.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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_COMPILER_JS_CALL_REDUCER_H_ 5 #ifndef V8_COMPILER_JS_CALL_REDUCER_H_
6 #define V8_COMPILER_JS_CALL_REDUCER_H_ 6 #define V8_COMPILER_JS_CALL_REDUCER_H_
7 7
8 #include "src/base/flags.h" 8 #include "src/base/flags.h"
9 #include "src/compiler/graph-reducer.h" 9 #include "src/compiler/graph-reducer.h"
10 10
11 namespace v8 { 11 namespace v8 {
12 namespace internal { 12 namespace internal {
13 13
14 // Forward declarations. 14 // Forward declarations.
15 class CompilationDependencies; 15 class CompilationDependencies;
16 class Factory; 16 class Factory;
17 17
18 namespace compiler { 18 namespace compiler {
19 19
20 // Forward declarations. 20 // Forward declarations.
21 class CommonOperatorBuilder; 21 class CommonOperatorBuilder;
22 class JSGraph; 22 class JSGraph;
23 class JSOperatorBuilder; 23 class JSOperatorBuilder;
24 class SimplifiedOperatorBuilder; 24 class SimplifiedOperatorBuilder;
25 25
26 // Performs strength reduction on {JSConstruct} and {JSCallFunction} nodes, 26 // Performs strength reduction on {JSConstruct} and {JSCall} nodes,
27 // which might allow inlining or other optimizations to be performed afterwards. 27 // which might allow inlining or other optimizations to be performed afterwards.
28 class JSCallReducer final : public AdvancedReducer { 28 class JSCallReducer final : public AdvancedReducer {
29 public: 29 public:
30 // Flags that control the mode of operation. 30 // Flags that control the mode of operation.
31 enum Flag { 31 enum Flag {
32 kNoFlags = 0u, 32 kNoFlags = 0u,
33 kDeoptimizationEnabled = 1u << 0, 33 kDeoptimizationEnabled = 1u << 0,
34 }; 34 };
35 typedef base::Flags<Flag> Flags; 35 typedef base::Flags<Flag> Flags;
36 36
(...skipping 13 matching lines...) Expand all
50 Reduction ReduceCallApiFunction( 50 Reduction ReduceCallApiFunction(
51 Node* node, Node* target, 51 Node* node, Node* target,
52 Handle<FunctionTemplateInfo> function_template_info); 52 Handle<FunctionTemplateInfo> function_template_info);
53 Reduction ReduceNumberConstructor(Node* node); 53 Reduction ReduceNumberConstructor(Node* node);
54 Reduction ReduceFunctionPrototypeApply(Node* node); 54 Reduction ReduceFunctionPrototypeApply(Node* node);
55 Reduction ReduceFunctionPrototypeCall(Node* node); 55 Reduction ReduceFunctionPrototypeCall(Node* node);
56 Reduction ReduceFunctionPrototypeHasInstance(Node* node); 56 Reduction ReduceFunctionPrototypeHasInstance(Node* node);
57 Reduction ReduceObjectPrototypeGetProto(Node* node); 57 Reduction ReduceObjectPrototypeGetProto(Node* node);
58 Reduction ReduceJSConstruct(Node* node); 58 Reduction ReduceJSConstruct(Node* node);
59 Reduction ReduceJSConstructWithSpread(Node* node); 59 Reduction ReduceJSConstructWithSpread(Node* node);
60 Reduction ReduceJSCallFunction(Node* node); 60 Reduction ReduceJSCall(Node* node);
61 61
62 enum HolderLookup { kHolderNotFound, kHolderIsReceiver, kHolderFound }; 62 enum HolderLookup { kHolderNotFound, kHolderIsReceiver, kHolderFound };
63 63
64 HolderLookup LookupHolder(Handle<JSObject> object, 64 HolderLookup LookupHolder(Handle<JSObject> object,
65 Handle<FunctionTemplateInfo> function_template_info, 65 Handle<FunctionTemplateInfo> function_template_info,
66 Handle<JSObject>* holder); 66 Handle<JSObject>* holder);
67 67
68 Graph* graph() const; 68 Graph* graph() const;
69 Flags flags() const { return flags_; } 69 Flags flags() const { return flags_; }
70 JSGraph* jsgraph() const { return jsgraph_; } 70 JSGraph* jsgraph() const { return jsgraph_; }
(...skipping 11 matching lines...) Expand all
82 CompilationDependencies* const dependencies_; 82 CompilationDependencies* const dependencies_;
83 }; 83 };
84 84
85 DEFINE_OPERATORS_FOR_FLAGS(JSCallReducer::Flags) 85 DEFINE_OPERATORS_FOR_FLAGS(JSCallReducer::Flags)
86 86
87 } // namespace compiler 87 } // namespace compiler
88 } // namespace internal 88 } // namespace internal
89 } // namespace v8 89 } // namespace v8
90 90
91 #endif // V8_COMPILER_JS_CALL_REDUCER_H_ 91 #endif // V8_COMPILER_JS_CALL_REDUCER_H_
OLDNEW
« no previous file with comments | « src/compiler/js-builtin-reducer.cc ('k') | src/compiler/js-call-reducer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698