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

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

Issue 2956233002: [turbofan] Further optimize spread/apply with arguments/rest parameters. (Closed)
Patch Set: Fix nit. Created 3 years, 5 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 | « no previous file | 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
(...skipping 25 matching lines...) Expand all
36 Handle<Context> native_context, 36 Handle<Context> native_context,
37 CompilationDependencies* dependencies) 37 CompilationDependencies* dependencies)
38 : AdvancedReducer(editor), 38 : AdvancedReducer(editor),
39 jsgraph_(jsgraph), 39 jsgraph_(jsgraph),
40 flags_(flags), 40 flags_(flags),
41 native_context_(native_context), 41 native_context_(native_context),
42 dependencies_(dependencies) {} 42 dependencies_(dependencies) {}
43 43
44 Reduction Reduce(Node* node) final; 44 Reduction Reduce(Node* node) final;
45 45
46 // Processes the waitlist gathered while the reducer was running,
47 // and does a final attempt to reduce the nodes in the waitlist.
48 void Finalize() final;
49
46 private: 50 private:
47 Reduction ReduceArrayConstructor(Node* node); 51 Reduction ReduceArrayConstructor(Node* node);
48 Reduction ReduceBooleanConstructor(Node* node); 52 Reduction ReduceBooleanConstructor(Node* node);
49 Reduction ReduceCallApiFunction( 53 Reduction ReduceCallApiFunction(
50 Node* node, Handle<FunctionTemplateInfo> function_template_info); 54 Node* node, Handle<FunctionTemplateInfo> function_template_info);
51 Reduction ReduceNumberConstructor(Node* node); 55 Reduction ReduceNumberConstructor(Node* node);
52 Reduction ReduceFunctionPrototypeApply(Node* node); 56 Reduction ReduceFunctionPrototypeApply(Node* node);
53 Reduction ReduceFunctionPrototypeCall(Node* node); 57 Reduction ReduceFunctionPrototypeCall(Node* node);
54 Reduction ReduceFunctionPrototypeHasInstance(Node* node); 58 Reduction ReduceFunctionPrototypeHasInstance(Node* node);
55 Reduction ReduceObjectGetPrototype(Node* node, Node* object); 59 Reduction ReduceObjectGetPrototype(Node* node, Node* object);
(...skipping 23 matching lines...) Expand all
79 CommonOperatorBuilder* common() const; 83 CommonOperatorBuilder* common() const;
80 JSOperatorBuilder* javascript() const; 84 JSOperatorBuilder* javascript() const;
81 SimplifiedOperatorBuilder* simplified() const; 85 SimplifiedOperatorBuilder* simplified() const;
82 Flags flags() const { return flags_; } 86 Flags flags() const { return flags_; }
83 CompilationDependencies* dependencies() const { return dependencies_; } 87 CompilationDependencies* dependencies() const { return dependencies_; }
84 88
85 JSGraph* const jsgraph_; 89 JSGraph* const jsgraph_;
86 Flags const flags_; 90 Flags const flags_;
87 Handle<Context> const native_context_; 91 Handle<Context> const native_context_;
88 CompilationDependencies* const dependencies_; 92 CompilationDependencies* const dependencies_;
93 std::set<Node*> waitlist_;
89 }; 94 };
90 95
91 } // namespace compiler 96 } // namespace compiler
92 } // namespace internal 97 } // namespace internal
93 } // namespace v8 98 } // namespace v8
94 99
95 #endif // V8_COMPILER_JS_CALL_REDUCER_H_ 100 #endif // V8_COMPILER_JS_CALL_REDUCER_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/js-call-reducer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698