Chromium Code Reviews

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

Issue 2559173003: [compiler] Generalize JSContextSpecialization. (Closed)
Patch Set: . Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « no previous file | src/compiler/js-context-specialization.cc » ('j') | src/compiler/js-context-specialization.cc » ('J')
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 ef784fc442812ca1c9a7cac1622a4c194a389786..7d624f1dc9aa19640e6d2c988aeee1fc4963e5a0 100644
--- a/src/compiler/js-context-specialization.h
+++ b/src/compiler/js-context-specialization.h
@@ -30,8 +30,10 @@ class JSContextSpecialization final : public AdvancedReducer {
Reduction ReduceJSLoadContext(Node* node);
Reduction ReduceJSStoreContext(Node* node);
- // Returns the {Context} to specialize {node} to (if any).
- MaybeHandle<Context> GetSpecializationContext(Node* node);
+ Reduction StrengthenJSStoreContext(Node* node, Node* new_context,
+ size_t new_depth);
+ Reduction StrengthenJSLoadContext(Node* node, Node* new_context,
+ size_t new_depth);
Isolate* isolate() const;
JSOperatorBuilder* javascript() const;
« no previous file with comments | « no previous file | src/compiler/js-context-specialization.cc » ('j') | src/compiler/js-context-specialization.cc » ('J')

Powered by Google App Engine