• Clemens Hammacher's avatar
    [wasm] Pass offset instead of pc to error functions · fd7d6b8b
    Clemens Hammacher authored
    This adds error functions that receive offsets instead of pc, since the
    streaming compiler stores different sections in different buffers, so
    computing pointer differences between different sections does not work.
    We keep the pc-based methods for now to reduce code-churn and
    complexity at the different call sites.
    
    R=ahaas@chromium.org
    CC=binji@chromium.org
    
    Bug: v8:8238
    Change-Id: I1aa68740bdda93c3341431aa7a81ac01ecfb71bb
    Reviewed-on: https://chromium-review.googlesource.com/c/1354463Reviewed-by: 's avatarAndreas Haas <ahaas@chromium.org>
    Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#57944}
    fd7d6b8b
decoder.h 14 KB