1. 17 Aug, 2018 1 commit
  2. 07 Aug, 2017 1 commit
    • Clemens Hammacher's avatar
      [wasm] [debug] Implement calling imported wasm functions · c39c6eba
      Clemens Hammacher authored
      The interpreter was not able to call imported wasm functions (hitting
      UNIMPLEMENTED). This CL fixes this by creating a "CWasmEntry", which is
      signature-specific. It has JS linkage and receives the wasm code object
      to call and a buffer containing all arguments (similar to the
      interpreter entry). It loads all arguments from the buffer and calls the
      given code object.
      The c-wasm-entry code objects are cached per instance, such that we
      only create them once per signature.
      
      These wasm entry stubs will also allow us to call back to compiled code
      from the interpreter, which we might want to do to reduce the slowdown
      of executing wasm for debugging.
      
      R=titzer@chromium.org
      
      Bug: chromium:735792
      Change-Id: I7fecec3a7bec62a9de40fff115b684759b12a28b
      Reviewed-on: https://chromium-review.googlesource.com/600308
      Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
      Reviewed-by: 's avatarBen Titzer <titzer@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#47195}
      c39c6eba
  3. 23 May, 2017 1 commit
  4. 31 Mar, 2017 1 commit
    • Clemens Hammacher's avatar
      [wasm] Fix grow_memory implementation in interpreter · da778675
      Clemens Hammacher authored
      grow_memory was working from test cases, but not in combination with
      compiled code. This CL makes the effect of grow_memory executed either
      in the interpreter or compiled code always be reflected in both
      execution environments.
      It also adds a %RedirectToWasmInterpreter runtime function for testing
      this interaction.
      
      R=ahaas@chromium.org
      CC=gdeepti@chromium.org
      BUG=v8:5822
      
      Change-Id: I3e7c184c42ef655d1c30d2e0dddad7fb783455fc
      Reviewed-on: https://chromium-review.googlesource.com/463506
      Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
      Reviewed-by: 's avatarAndreas Haas <ahaas@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#44297}
      da778675