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

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

Issue 1972563002: [turbofan] Infer some receiver maps when lowering loads/stores. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Make tests happy. Created 4 years, 7 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-native-context-specialization.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/js-native-context-specialization.h
diff --git a/src/compiler/js-native-context-specialization.h b/src/compiler/js-native-context-specialization.h
index 5562c6e36e4b56a16c8292e60302b5769d6023bc..7d43bfb26d7c068a5970198064cdd798bebbc38b 100644
--- a/src/compiler/js-native-context-specialization.h
+++ b/src/compiler/js-native-context-specialization.h
@@ -85,6 +85,20 @@ class JSNativeContextSpecialization final : public AdvancedReducer {
Handle<Context> native_context,
Handle<JSObject> holder);
+ // Extract receiver maps from {nexus} and filter based on {receiver} if
+ // possible.
+ bool ExtractReceiverMaps(Node* receiver, Node* effect,
+ FeedbackNexus const& nexus,
+ MapHandleList* receiver_maps);
+
+ // Try to infer a map for the given {receiver} at the current {effect}.
+ // If a map is returned then you can be sure that the {receiver} definitely
+ // has the returned map at this point in the program (identified by {effect}).
+ MaybeHandle<Map> InferReceiverMap(Node* receiver, Node* effect);
+ // Try to infer a root map for the {receiver} independent of the current
+ // program location.
+ MaybeHandle<Map> InferReceiverRootMap(Node* receiver);
+
// Retrieve the native context from the given {node} if known.
MaybeHandle<Context> GetNativeContext(Node* node);
« no previous file with comments | « no previous file | src/compiler/js-native-context-specialization.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698