[maglev] Support %OptimizeOsr
Since Maglev can OSR to TF, we only need to remove the checks. Bug: v8:7700 Change-Id: I2d3c5ede4c3611bb1830b0c16a480585c123586d Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/4084793 Auto-Submit: Victor Gomes <victorgomes@chromium.org> Commit-Queue: Victor Gomes <victorgomes@chromium.org> Reviewed-by: Leszek Swirski <leszeks@chromium.org> Cr-Commit-Position: refs/heads/main@{#84774}
This commit is contained in:
parent
bd7458cb7f
commit
db973bb462
@ -624,14 +624,15 @@ RUNTIME_FUNCTION(Runtime_OptimizeOsr) {
|
||||
*function);
|
||||
}
|
||||
|
||||
if (function->HasAvailableOptimizedCode()) {
|
||||
if (function->HasAvailableOptimizedCode() &&
|
||||
!function->code().is_maglevved()) {
|
||||
DCHECK(function->HasAttachedOptimizedCode() ||
|
||||
function->ChecksTieringState());
|
||||
// If function is already optimized, return.
|
||||
return ReadOnlyRoots(isolate).undefined_value();
|
||||
}
|
||||
|
||||
if (!it.frame()->is_unoptimized()) {
|
||||
if (!it.frame()->is_unoptimized() && !it.frame()->is_maglev()) {
|
||||
// Nothing to be done.
|
||||
return ReadOnlyRoots(isolate).undefined_value();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user