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

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

Issue 2198833002: [turbofan] Remove unnecessary prototype checks for element access. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE Created 4 years, 4 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
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 f9bc0145ca7c597eaa47339536b845436e7f25ab..18dddb33e44a68793d7be1fafd932982245250f3 100644
--- a/src/compiler/js-native-context-specialization.h
+++ b/src/compiler/js-native-context-specialization.h
@@ -127,6 +127,12 @@ class JSNativeContextSpecialization final : public AdvancedReducer {
Handle<Context> native_context,
Handle<JSObject> holder);
+ // Checks if we can turn the hole into undefined when loading an element
+ // from an object with one of the {receiver_maps}; sets up appropriate
+ // code dependencies and might use the array protector cell.
+ bool CanTreatHoleAsUndefined(std::vector<Handle<Map>> const& receiver_maps,
+ Handle<Context> native_context);
+
// Extract receiver maps from {nexus} and filter based on {receiver} if
// possible.
bool ExtractReceiverMaps(Node* receiver, Node* effect,

Powered by Google App Engine
This is Rietveld 408576698