From d3c4a0b087673a3ad81d73c9955bd544b27edc90 Mon Sep 17 00:00:00 2001 From: Georg Neis Date: Fri, 8 Feb 2019 15:22:25 +0100 Subject: [PATCH] [turbofan] Respect unset kBailoutOnUninitialized flag in element access. Change-Id: Ie996f5da3f2f4a45b5664e33833362b8d13c476c Reviewed-on: https://chromium-review.googlesource.com/c/1460943 Reviewed-by: Jaroslav Sevcik Commit-Queue: Georg Neis Cr-Commit-Position: refs/heads/master@{#59466} --- src/compiler/js-native-context-specialization.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/compiler/js-native-context-specialization.cc b/src/compiler/js-native-context-specialization.cc index 8871870507..762cf962f7 100644 --- a/src/compiler/js-native-context-specialization.cc +++ b/src/compiler/js-native-context-specialization.cc @@ -1085,8 +1085,12 @@ Reduction JSNativeContextSpecialization::ReduceNamedAccess( // Nothing to do if we have no non-deprecated maps. if (access_infos.empty()) { - return ReduceSoftDeoptimize( - node, DeoptimizeReason::kInsufficientTypeFeedbackForGenericNamedAccess); + if (flags() & kBailoutOnUninitialized) { + return ReduceSoftDeoptimize( + node, + DeoptimizeReason::kInsufficientTypeFeedbackForGenericNamedAccess); + } + return NoChange(); } // Ensure that {index} matches the specified {name} (if {index} is given).