• Jakob Linke's avatar
    [maglev] Implement Maglev-to-Turbofan OSR · ed90ea5c
    Jakob Linke authored
    This implementation sticks closely to what Ignition-to-Turbofan (and now
    Sparkplug-to-TF) does. OSR is detected in the TieringManager by having
    optimized code available, without having entered it. The osr_urgency is
    increased to enable OSR for increasing loop depths. When a candidate
    JumpLoop backedge is reached, we call into runtime to trigger OSR
    compilation.
    
    JumpLoop also detects the availability of cached OSR'd code. When a
    matching OSR code object is available, Maglev 1) deoptimizes s.t. the
    unoptimized frame layout is reconstructed, and 2) delegates the actual
    OSR tierup to the unoptimized tier. For purposes of 1), we add a new
    DeoptimizeReason that causes a one-time eager deopt without invalidating
    any code.
    
    Drive-by: Annotate OSR for more --trace-opt output.
    
    Todo: Refactor non-Sparkplug-specific bits of the BaselineAssembler
    into a generic spot that both SP and ML can use.
    
    Bug: v8:7700
    Change-Id: I6ebab2df8b87f9f70ffb78162a3c1226ec545468
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3859850Reviewed-by: 's avatarLeszek Swirski <leszeks@chromium.org>
    Commit-Queue: Jakob Linke <jgruber@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#82816}
    ed90ea5c
Name
Last commit
Last update
..
00.js Loading commit data...
01.js Loading commit data...
02.js Loading commit data...
03.js Loading commit data...
04.js Loading commit data...
05.js Loading commit data...
06.js Loading commit data...
07.js Loading commit data...
08.js Loading commit data...
09.js Loading commit data...
10.js Loading commit data...
11.js Loading commit data...
12.js Loading commit data...
13.js Loading commit data...
14.js Loading commit data...
15.js Loading commit data...
16.js Loading commit data...
17.js Loading commit data...
18.js Loading commit data...
19.js Loading commit data...
add-number.js Loading commit data...
add-smi.js Loading commit data...
argument-over-under-application.js Loading commit data...
call-js-runtime.js Loading commit data...
call-runtime-for-pair.js Loading commit data...
destructuring-assignment-with-exclude-properties.js Loading commit data...
eager-deopt-in-inline.js Loading commit data...
get-template-object.js Loading commit data...
inner-function.js Loading commit data...
int32-branch.js Loading commit data...
lazy-deopt-with-onstack-activation.js Loading commit data...
lazy-deopt-without-onstack-activation.js Loading commit data...
lda-global-inside-typeof.js Loading commit data...
lda-global.js Loading commit data...
lda-module-variable-import.mjs Loading commit data...
lda-module-variable.mjs Loading commit data...
literals.js Loading commit data...
load-named.js Loading commit data...
lots-of-registers.js Loading commit data...
mutable-context-access.js Loading commit data...
osr-from-ml-to-tf.js Loading commit data...
osr-to-tf.js Loading commit data...
set-pending-message.js Loading commit data...
shift-right-smi.js Loading commit data...
simple-inlining.js Loading commit data...
spill-double.js Loading commit data...
sta-module-variable.mjs Loading commit data...
string-compare.js Loading commit data...
super-ic.js Loading commit data...
tier-to-ml-to-tf.js Loading commit data...
undefined-or-null-branch.js Loading commit data...