• Leszek Swirski's avatar
    [sparkplug] Include calls in stack guard · be3c0126
    Leszek Swirski authored
    Calculate the maximum call size in the bytecode pre-visit, and pass that
    (along with the bytecode's frame size) to the prologue to be included in
    the stack check. This avoids doing a stack check before each call, and
    mirrors a similar optimisation in TurboFan.
    
    Also, use StackGuardWithGap instead of StackGuard, to make sure that
    stack overflows in the prologue actually trigger stack overflows in the
    runtime.
    
    Bug: v8:11420
    Fixed: chromium:1189890
    Change-Id: I795c197c20f85611318ab09c7bca78ce40b64924
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2778278
    Auto-Submit: Leszek Swirski <leszeks@chromium.org>
    Commit-Queue: Leszek Swirski <leszeks@chromium.org>
    Reviewed-by: 's avatarIgor Sheludko <ishell@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#73600}
    be3c0126
Name
Last commit
Last update
..
benchmarks Loading commit data...
cctest Loading commit data...
common Loading commit data...
debugger Loading commit data...
debugging Loading commit data...
fuzzer Loading commit data...
fuzzilli Loading commit data...
inspector Loading commit data...
intl Loading commit data...
js-perf-test Loading commit data...
memory Loading commit data...
message Loading commit data...
mjsunit Loading commit data...
mkgrokdump Loading commit data...
mozilla Loading commit data...
test262 Loading commit data...
torque Loading commit data...
unittests Loading commit data...
wasm-api-tests Loading commit data...
wasm-js Loading commit data...
wasm-spec-tests Loading commit data...
webkit Loading commit data...
BUILD.gn Loading commit data...
OWNERS Loading commit data...