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

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

Issue 2950773002: [turbofan] Introduce new JSCallWithArrayLike operator. (Closed)
Patch Set: REBASE Created 3 years, 6 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/code-factory.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 CallFrequency;
21 class CommonOperatorBuilder; 22 class CommonOperatorBuilder;
22 class JSGraph; 23 class JSGraph;
23 class JSOperatorBuilder; 24 class JSOperatorBuilder;
24 class SimplifiedOperatorBuilder; 25 class SimplifiedOperatorBuilder;
25 26
26 // Performs strength reduction on {JSConstruct} and {JSCall} nodes, 27 // Performs strength reduction on {JSConstruct} and {JSCall} nodes,
27 // which might allow inlining or other optimizations to be performed afterwards. 28 // which might allow inlining or other optimizations to be performed afterwards.
28 class JSCallReducer final : public AdvancedReducer { 29 class JSCallReducer final : public AdvancedReducer {
29 public: 30 public:
30 JSCallReducer(Editor* editor, JSGraph* jsgraph, 31 JSCallReducer(Editor* editor, JSGraph* jsgraph,
(...skipping 12 matching lines...) Expand all
43 Reduction ReduceCallApiFunction( 44 Reduction ReduceCallApiFunction(
44 Node* node, Handle<FunctionTemplateInfo> function_template_info); 45 Node* node, Handle<FunctionTemplateInfo> function_template_info);
45 Reduction ReduceNumberConstructor(Node* node); 46 Reduction ReduceNumberConstructor(Node* node);
46 Reduction ReduceFunctionPrototypeApply(Node* node); 47 Reduction ReduceFunctionPrototypeApply(Node* node);
47 Reduction ReduceFunctionPrototypeCall(Node* node); 48 Reduction ReduceFunctionPrototypeCall(Node* node);
48 Reduction ReduceFunctionPrototypeHasInstance(Node* node); 49 Reduction ReduceFunctionPrototypeHasInstance(Node* node);
49 Reduction ReduceObjectGetPrototype(Node* node, Node* object); 50 Reduction ReduceObjectGetPrototype(Node* node, Node* object);
50 Reduction ReduceObjectGetPrototypeOf(Node* node); 51 Reduction ReduceObjectGetPrototypeOf(Node* node);
51 Reduction ReduceObjectPrototypeGetProto(Node* node); 52 Reduction ReduceObjectPrototypeGetProto(Node* node);
52 Reduction ReduceObjectPrototypeIsPrototypeOf(Node* node); 53 Reduction ReduceObjectPrototypeIsPrototypeOf(Node* node);
54 Reduction ReduceReflectApply(Node* node);
53 Reduction ReduceReflectGetPrototypeOf(Node* node); 55 Reduction ReduceReflectGetPrototypeOf(Node* node);
54 Reduction ReduceArrayForEach(Handle<JSFunction> function, Node* node); 56 Reduction ReduceArrayForEach(Handle<JSFunction> function, Node* node);
55 Reduction ReduceSpreadCall(Node* node, int arity); 57 Reduction ReduceCallOrConstructWithArrayLikeOrSpread(
58 Node* node, int arity, CallFrequency const& frequency);
56 Reduction ReduceJSConstruct(Node* node); 59 Reduction ReduceJSConstruct(Node* node);
57 Reduction ReduceJSConstructWithSpread(Node* node); 60 Reduction ReduceJSConstructWithSpread(Node* node);
58 Reduction ReduceJSCall(Node* node); 61 Reduction ReduceJSCall(Node* node);
62 Reduction ReduceJSCallWithArrayLike(Node* node);
59 Reduction ReduceJSCallWithSpread(Node* node); 63 Reduction ReduceJSCallWithSpread(Node* node);
60 Reduction ReduceReturnReceiver(Node* node); 64 Reduction ReduceReturnReceiver(Node* node);
61 65
62 Graph* graph() const; 66 Graph* graph() const;
63 JSGraph* jsgraph() const { return jsgraph_; } 67 JSGraph* jsgraph() const { return jsgraph_; }
64 Isolate* isolate() const; 68 Isolate* isolate() const;
65 Factory* factory() const; 69 Factory* factory() const;
66 Handle<Context> native_context() const { return native_context_; } 70 Handle<Context> native_context() const { return native_context_; }
67 Handle<JSGlobalProxy> global_proxy() const; 71 Handle<JSGlobalProxy> global_proxy() const;
68 CommonOperatorBuilder* common() const; 72 CommonOperatorBuilder* common() const;
69 JSOperatorBuilder* javascript() const; 73 JSOperatorBuilder* javascript() const;
70 SimplifiedOperatorBuilder* simplified() const; 74 SimplifiedOperatorBuilder* simplified() const;
71 CompilationDependencies* dependencies() const { return dependencies_; } 75 CompilationDependencies* dependencies() const { return dependencies_; }
72 76
73 JSGraph* const jsgraph_; 77 JSGraph* const jsgraph_;
74 Handle<Context> const native_context_; 78 Handle<Context> const native_context_;
75 CompilationDependencies* const dependencies_; 79 CompilationDependencies* const dependencies_;
76 }; 80 };
77 81
78 } // namespace compiler 82 } // namespace compiler
79 } // namespace internal 83 } // namespace internal
80 } // namespace v8 84 } // namespace v8
81 85
82 #endif // V8_COMPILER_JS_CALL_REDUCER_H_ 86 #endif // V8_COMPILER_JS_CALL_REDUCER_H_
OLDNEW
« no previous file with comments | « src/code-factory.cc ('k') | src/compiler/js-call-reducer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698