• 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
baseline-compiler-ia32-inl.h 3.19 KB