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 53d6232eaa34752688592f1114f539b7daf81926..562511e159ae6e1a7064fbd6aafff8475392bf86 100644 |
--- a/src/compiler/js-native-context-specialization.cc |
+++ b/src/compiler/js-native-context-specialization.cc |
@@ -98,7 +98,10 @@ Reduction JSNativeContextSpecialization::ReduceNamedAccess( |
} |
// Nothing to do if we have no non-deprecated maps. |
- if (access_infos.empty()) return NoChange(); |
+ if (access_infos.empty()) { |
+ return ReduceSoftDeoptimize( |
+ node, DeoptimizeReason::kInsufficientTypeFeedbackForGenericNamedAccess); |
+ } |
// The final states for every polymorphic branch. We join them with |
// Merge++Phi+EffectPhi at the bottom. |
@@ -517,7 +520,10 @@ Reduction JSNativeContextSpecialization::ReduceElementAccess( |
} |
// Nothing to do if we have no non-deprecated maps. |
- if (access_infos.empty()) return NoChange(); |
+ if (access_infos.empty()) { |
+ return ReduceSoftDeoptimize( |
+ node, DeoptimizeReason::kInsufficientTypeFeedbackForGenericKeyedAccess); |
+ } |
// The final states for every polymorphic branch. We join them with |
// Merge+Phi+EffectPhi at the bottom. |