| Index: src/compiler/js-native-context-specialization.cc
 | 
| diff --git a/src/compiler/js-native-context-specialization.cc b/src/compiler/js-native-context-specialization.cc
 | 
| index 4103646c22615ad0e713c789c6f2f5525d9b8341..efee088afac79cb77ebb9c6279f165565b07c4b5 100644
 | 
| --- a/src/compiler/js-native-context-specialization.cc
 | 
| +++ b/src/compiler/js-native-context-specialization.cc
 | 
| @@ -1962,10 +1962,12 @@ JSNativeContextSpecialization::BuildElementAccess(
 | 
|      if (access_mode == AccessMode::kLoad) {
 | 
|        // Compute the real element access type, which includes the hole in case
 | 
|        // of holey backing stores.
 | 
| -      if (elements_kind == FAST_HOLEY_ELEMENTS ||
 | 
| -          elements_kind == FAST_HOLEY_SMI_ELEMENTS) {
 | 
| +      if (IsHoleyElementsKind(elements_kind)) {
 | 
|          element_access.type =
 | 
|              Type::Union(element_type, Type::Hole(), graph()->zone());
 | 
| +      }
 | 
| +      if (elements_kind == FAST_HOLEY_ELEMENTS ||
 | 
| +          elements_kind == FAST_HOLEY_SMI_ELEMENTS) {
 | 
|          element_access.machine_type = MachineType::AnyTagged();
 | 
|        }
 | 
|        // Perform the actual backing store access.
 | 
| 
 |