Commit 12c88018 authored by Victor Gomes's avatar Victor Gomes Committed by V8 LUCI CQ

[baseline] Don't install if bytecode has been flushed

The bytecode can be flushed and/or the function can be
compiled and installed before the interruption to install
the new batch of compiled baseline code.

Bug: v8:12415, v8:12054
Change-Id: I092c8e0f31735119e6b2c6c46ce97ba8a4cdc91e
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3302788Reviewed-by: 's avatarCamillo Bruni <cbruni@chromium.org>
Commit-Queue: Victor Gomes <victorgomes@chromium.org>
Cr-Commit-Position: refs/heads/main@{#78091}
parent da1b184c
......@@ -56,6 +56,12 @@ class BaselineCompilerTask {
if (FLAG_print_code) {
code->Print();
}
// Don't install the code if the bytecode has been flushed or has
// already some baseline code installed.
if (!shared_function_info_->is_compiled() ||
shared_function_info_->HasBaselineCode()) {
return;
}
shared_function_info_->set_baseline_code(ToCodeT(*code), kReleaseStore);
if (V8_LIKELY(FLAG_use_osr)) {
// Arm back edges for OSR
......
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