Commit 25506204 authored by Jakob Linke's avatar Jakob Linke Committed by V8 LUCI CQ

[maglev] Don't deopt-for-osr when Turbofan is disabled

Bug: v8:7700
Change-Id: I784d28b8ee043a4fa2478dbaaf7412a0708b811c
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3867732Reviewed-by: 's avatarLeszek Swirski <leszeks@chromium.org>
Commit-Queue: Leszek Swirski <leszeks@chromium.org>
Commit-Queue: Jakob Linke <jgruber@chromium.org>
Auto-Submit: Jakob Linke <jgruber@chromium.org>
Cr-Commit-Position: refs/heads/main@{#82894}
parent 7e4293a1
......@@ -3358,8 +3358,15 @@ void AttemptOnStackReplacement(MaglevCodeGenState* code_gen_state,
}
__ bind(&deopt);
EmitEagerDeopt(code_gen_state, node,
DeoptimizeReason::kPrepareForOnStackReplacement);
if (V8_LIKELY(FLAG_turbofan)) {
EmitEagerDeopt(code_gen_state, node,
DeoptimizeReason::kPrepareForOnStackReplacement);
} else {
// Fall through. With TF disabled we cannot OSR and thus it doesn't make
// sense to start the process. We do still perform all remaining
// bookkeeping above though, to keep Maglev code behavior roughly the same
// in both configurations.
}
}
} // namespace
......
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