Skip to content

Commit ed9e89e

Browse files
liamappelbecommit-bot@chromium.org
authored andcommitted
Implement a basic WASM API using wasmer.
Currently this only supports functions that take and return numeric types. Byte arrays, and callbacks will come later, in a separate wrapper package. Bug: #37882 Change-Id: I7bb82be83cbbb6062736b3e958f89d021f1af4bb Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/114586 Commit-Queue: Liam Appelbe <[email protected]> Reviewed-by: Samir Jindel <[email protected]> Reviewed-by: Ryan Macnak <[email protected]>
1 parent e8413cd commit ed9e89e

16 files changed

+1132
-18
lines changed

runtime/BUILD.gn

+4
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,10 @@ library_for_all_configs("libdart") {
240240
"third_party/double-conversion/src:libdouble_conversion",
241241
":generate_version_cc_file",
242242
]
243+
if (dart_enable_wasm) {
244+
extra_deps += [ "//third_party/wasmer" ]
245+
defines = [ "DART_ENABLE_WASM" ]
246+
}
243247
if (is_fuchsia) {
244248
if (using_fuchsia_sdk) {
245249
extra_deps += [ "$fuchsia_sdk_root/pkg:fdio" ]

0 commit comments

Comments
 (0)