dart-sdk/pkg/wasm
Liam Appelbe f25c50fdcb [wasm] Use wasm traps to handle exceptions
The Dart exception is converted to a string, stored in a trap which
is passed through wasm, then converted back to a Dart exception.

Module instantiation can also throw a trap, because it internally
invokes the initialization function, if the module defines one. So I'm
handling this too.

Also, update to the new version of the wasm C API, which replaces some
foo_t** with foo_vec_t*.

Bug: https://github.com/dart-lang/sdk/issues/37882
Change-Id: I1e6952a191134734a892c42b2fb8ba3506bb0844
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/169784
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Liam Appelbe <liama@google.com>
2020-11-02 23:32:20 +00:00
..
lib [wasm] Use wasm traps to handle exceptions 2020-11-02 23:32:20 +00:00
.gitignore Reland "[vm/wasm] Boilerplate for package:wasm" 2020-08-21 18:23:00 +00:00
analysis_options.yaml Reland "[vm/wasm] Boilerplate for package:wasm" 2020-08-21 18:23:00 +00:00
AUTHORS Reland "[vm/wasm] Boilerplate for package:wasm" 2020-08-21 18:23:00 +00:00
LICENSE Reland "[vm/wasm] Boilerplate for package:wasm" 2020-08-21 18:23:00 +00:00
pubspec.yaml [vm/wasm] Wasm module instantiation and function calling 2020-09-02 00:22:21 +00:00
README.md Reland "[vm/wasm] Boilerplate for package:wasm" 2020-08-21 18:23:00 +00:00

wasm

This package provides utilities for loading and running WASM modules. It is built on top of the Wasmer runtime.