• Clemens Backes's avatar
    [wasm] Implement DebugBreak runtime function · 7e364f12
    Clemens Backes authored
    This implements the runtime function for DebugBreak functionality in
    Liftoff code. We find the Liftoff frame on the stack, get the position
    within that frame, find breakpoints set at that position, and then call
    {OnDebugBreak} with these breakpoints.
    
    Note that one additional change is needed in order to make this actually
    hit the right breakpoints. Once everything is in place, we will see a
    change in the expected output in the wasm-set-breakpoint-liftoff test.
    
    R=thibaudm@chromium.org
    
    Bug: v8:10147
    Change-Id: I5ca569a68aa436bbcf70739ea430efb9e459fad5
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2036086
    Commit-Queue: Clemens Backes <clemensb@chromium.org>
    Reviewed-by: 's avatarThibaud Michaud <thibaudm@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#66128}
    7e364f12
runtime-wasm.cc 23.7 KB