• Junliang Yan's avatar
    PPC/s390: [wasm] Introduce jump table · eafcdc96
    Junliang Yan authored
    Port 733b7c82
    
    Original Commit Message:
    
        This introduces the concept of a jump table for WebAssembly, which is
        used for every direct and indirect call to any WebAssembly function.
        For lazy compilation, it will initially contain code to call the
        WasmCompileLazy builtin, where it passes the function index to be
        called.
        For non-lazy-compilation, it will contain a jump to the actual code.
        The jump table allows to easily redirect functions for lazy
        compilation, tier-up, debugging and (in the future) code aging. After
        this CL, we will not need to patch existing code any more for any of
        these operations.
    
    R=clemensh@chromium.org, joransiu@ca.ibm.com, michael_dawson@ca.ibm.com
    BUG= v8:7758
    
    Change-Id: I1a370910ffa56dbdd609be6922067842a6adf1df
    Reviewed-on: https://chromium-review.googlesource.com/1105060
    Commit-Queue: Junliang Yan <jyan@ca.ibm.com>
    Reviewed-by: 's avatarClemens Hammacher <clemensh@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#53852}
    eafcdc96
jump-table-assembler.h 2.58 KB