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

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

Issue 2067423003: [turbofan] Properly handle dictionary maps in the prototype chain. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@TurboFan_CheckedOperators
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compilation-dependencies.cc ('k') | 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 7d43bfb26d7c068a5970198064cdd798bebbc38b..0c7d4fc086165b77f1b4a315f3575de3e90cef78 100644
--- a/src/compiler/js-native-context-specialization.h
+++ b/src/compiler/js-native-context-specialization.h
@@ -80,10 +80,12 @@ class JSNativeContextSpecialization final : public AdvancedReducer {
Reduction ReduceSoftDeoptimize(Node* node);
// Adds stability dependencies on all prototypes of every class in
- // {receiver_type} up to (and including) the {holder}.
- void AssumePrototypesStable(Type* receiver_type,
- Handle<Context> native_context,
- Handle<JSObject> holder);
+ // {receiver_type} up to (and including) the {holder} if the maps
+ // are stable, otherwise falls back to inserting runtime map checks
+ // on the prototypes.
+ Node* CheckPrototypeMaps(Type* receiver_type, Handle<Context> native_context,
+ Handle<JSObject> holder, Node* effect,
+ Node* control);
// Extract receiver maps from {nexus} and filter based on {receiver} if
// possible.
« no previous file with comments | « src/compilation-dependencies.cc ('k') | src/compiler/js-native-context-specialization.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698