Commit 2c99b26d authored by Pan, Tao's avatar Pan, Tao Committed by V8 LUCI CQ

[compiler] Add condition use_ic to the removing the optimized OSR code logic

The removing the optimized OSR code logic depends on collecting
the reference of the optimized OSR code in ic.

Bug: chromium:1330405, chromium:1330452, chromium:1330454, chromium:1330486, chromium:1330545
Change-Id: I0981a6b2f41bd7f90b74a1866c91d6eb35c5c591
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3679846Reviewed-by: 's avatarCamillo Bruni <cbruni@chromium.org>
Commit-Queue: Tao Pan <tao.pan@intel.com>
Reviewed-by: 's avatarLeszek Swirski <leszeks@chromium.org>
Cr-Commit-Position: refs/heads/main@{#80886}
parent 0944ea06
......@@ -246,7 +246,10 @@ void DeoptAllOsrLoopsContainingDeoptExit(Isolate* isolate, JSFunction function,
DisallowGarbageCollection no_gc;
DCHECK(!deopt_exit_offset.IsNone());
if (!function.feedback_vector().maybe_has_optimized_osr_code()) return;
if (!FLAG_use_ic ||
!function.feedback_vector().maybe_has_optimized_osr_code()) {
return;
}
Handle<BytecodeArray> bytecode_array(
function.shared().GetBytecodeArray(isolate), isolate);
DCHECK(interpreter::BytecodeArrayIterator::IsValidOffset(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment