| 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,
|
|
|