• Clemens Hammacher's avatar
    [wasm] Disable trap handlers within the same NativeModule · d5007545
    Clemens Hammacher authored
    The current implementation allocates a new {NativeModule} if trap
    handlers are disabled. Afterwards, all export wrappers need to be
    patched to call to the code objects in this new native module (this
    patching is done in {CodeSpecialization}).
    With the jump table, we want to get rid of this patching, hence we need
    to reuse the same jump table, hence we cannot allocate a new
    {NativeModule}. Instead, we should update the existing one with the new
    code.
    
    R=mstarzinger@chromium.org
    CC=eholk@chromium.org
    
    Bug: v8:7143, v8:7758
    Change-Id: If2f395d462752b9084ed1e5f0a81f71d400ccfca
    Reviewed-on: https://chromium-review.googlesource.com/1095262Reviewed-by: 's avatarEric Holk <eholk@chromium.org>
    Reviewed-by: 's avatarMichael Starzinger <mstarzinger@chromium.org>
    Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#53645}
    d5007545
module-compiler.cc 150 KB