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

Unified Diff: src/compiler/js-context-specialization.h

Issue 2792553002: [turbofan] Specialize to closure with function context specialization. (Closed)
Patch Set: Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/compiler/js-context-specialization.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/js-context-specialization.h
diff --git a/src/compiler/js-context-specialization.h b/src/compiler/js-context-specialization.h
index 99172af4461b0812c75e824ade4ab16c59e672c7..a38aca80bb30aef953ec618954ac3b8d28af01ce 100644
--- a/src/compiler/js-context-specialization.h
+++ b/src/compiler/js-context-specialization.h
@@ -21,12 +21,17 @@ class JSOperatorBuilder;
class JSContextSpecialization final : public AdvancedReducer {
public:
JSContextSpecialization(Editor* editor, JSGraph* jsgraph,
- MaybeHandle<Context> context)
- : AdvancedReducer(editor), jsgraph_(jsgraph), context_(context) {}
+ MaybeHandle<Context> context,
+ MaybeHandle<JSFunction> closure)
+ : AdvancedReducer(editor),
+ jsgraph_(jsgraph),
+ context_(context),
+ closure_(closure) {}
Reduction Reduce(Node* node) final;
private:
+ Reduction ReduceParameter(Node* node);
Reduction ReduceJSLoadContext(Node* node);
Reduction ReduceJSStoreContext(Node* node);
@@ -39,9 +44,11 @@ class JSContextSpecialization final : public AdvancedReducer {
JSOperatorBuilder* javascript() const;
JSGraph* jsgraph() const { return jsgraph_; }
MaybeHandle<Context> context() const { return context_; }
+ MaybeHandle<JSFunction> closure() const { return closure_; }
JSGraph* const jsgraph_;
MaybeHandle<Context> context_;
+ MaybeHandle<JSFunction> closure_;
DISALLOW_COPY_AND_ASSIGN(JSContextSpecialization);
};
« no previous file with comments | « no previous file | src/compiler/js-context-specialization.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698