Skip to content

Commit

Permalink
add component-model-async/fused.wast test
Browse files Browse the repository at this point in the history
This is another piece of bytecodealliance#9582 which I'm splitting out to make review easier.

This test exercises fused adapter generation for various flavors of
intercomponent async->async, async->sync, and sync->async calls.

The remaining changes fill in some TODOs to make the test pass.

Signed-off-by: Joel Dice <joel.dice@fermyon.com>

address review feedback

Signed-off-by: Joel Dice <joel.dice@fermyon.com>

update `task.return` to match spec

This temporarily switches to my fork of `wasm-tools` until
bytecodealliance/wasm-tools#1989 is merged.

Signed-off-by: Joel Dice <joel.dice@fermyon.com>

refactor `component-model-async` cfg attrs per review feedback

Also, switch to upstream `wasm-tools` main branch.

Signed-off-by: Joel Dice <joel.dice@fermyon.com>

add `Compiler::new` constructor

Signed-off-by: Joel Dice <joel.dice@fermyon.com>

add comments covering various lower/lift combos in FACT generator

Signed-off-by: Joel Dice <joel.dice@fermyon.com>

add `Compiler::global_set` helper function

Signed-off-by: Joel Dice <joel.dice@fermyon.com>
  • Loading branch information
dicej committed Jan 29, 2025
1 parent cb195e5 commit 91a3a8b
Show file tree
Hide file tree
Showing 21 changed files with 1,547 additions and 214 deletions.
45 changes: 19 additions & 26 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -565,3 +565,18 @@ opt-level = 's'
inherits = "release"
codegen-units = 1
lto = true

# TODO: Remove these patches once wasm-tools 1.225 is available:
[patch.crates-io]
wasmparser = { git = "https://github.com/bytecodealliance/wasm-tools" }
wasm-metadata = { git = "https://github.com/bytecodealliance/wasm-tools" }
wat = { git = "https://github.com/bytecodealliance/wasm-tools" }
wast = { git = "https://github.com/bytecodealliance/wasm-tools" }
wasmprinter = { git = "https://github.com/bytecodealliance/wasm-tools" }
wasm-encoder = { git = "https://github.com/bytecodealliance/wasm-tools" }
wasm-smith = { git = "https://github.com/bytecodealliance/wasm-tools" }
wasm-mutate = { git = "https://github.com/bytecodealliance/wasm-tools" }
wit-parser = { git = "https://github.com/bytecodealliance/wasm-tools" }
wit-component = { git = "https://github.com/bytecodealliance/wasm-tools" }
wasm-wave = { git = "https://github.com/bytecodealliance/wasm-tools" }

Loading

0 comments on commit 91a3a8b

Please sign in to comment.