Index: src/compiler.h |
diff --git a/src/compiler.h b/src/compiler.h |
index 60af1a5f1d596dce246caa872eb81558468f662c..24a8a9f5de51c0d3ed79972428bf2e9a330450df 100644 |
--- a/src/compiler.h |
+++ b/src/compiler.h |
@@ -538,6 +538,8 @@ class OptimizedCompileJob: public ZoneObject { |
MUST_USE_RESULT Status AbortAndDisableOptimization( |
BailoutReason reason = kNoReason) { |
if (reason != kNoReason) info_->set_bailout_reason(reason); |
+ // Reference to shared function info does not change between phases. |
+ AllowDeferredHandleDereference allow_handle_dereference; |
info_->shared_info()->DisableOptimization(info_->bailout_reason()); |
return SetLastStatus(BAILED_OUT); |
} |