• Manos Koukoutos's avatar
    [wasm] Avoid runtime calls for exception handling · 567a9bdf
    Manos Koukoutos authored
    Motivation:
    Improve code efficiency by replacing runtime calls with manually written
    turbofan code where possible.
    
    Changes:
    - Remove the runtime functions `Runtime_WasmExceptionGetTag` and
      `Runtime_WasmExceptionGetValues` and replace them with turbofan code.
    - Introduce the builtin function `GetOwnProperty`.
    - Change `wasm-compiler.h` and `wasm-compiler.cc` to accomodate the new
      changes.
      - Introduce three new macros in `wasm-compiler.cc`.
      - Use those macros in two additional places to remove code
        duplication.
    
    Change-Id: I4a32f9e5f7ee55dc50cd03378a68897888ece5c8
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2162905Reviewed-by: 's avatarClemens Backes <clemensb@chromium.org>
    Commit-Queue: Manos Koukoutos <manoskouk@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#67530}
    567a9bdf
wasm-compiler.cc 282 KB