Brian Carroll
|
b585bd5fde
|
wasm_interp: debug print displays the called export
|
2022-12-14 08:42:01 +00:00 |
|
Brian Carroll
|
06c675703a
|
wasm_interp: bring back debug output
|
2022-12-14 08:42:01 +00:00 |
|
Brian Carroll
|
ed18bf7709
|
wasm_interp: rename ValueStack::len -> depth
|
2022-12-10 00:52:23 +00:00 |
|
Brian Carroll
|
76341c7611
|
wasm_interp: truncate ValueStack on leaving a block
|
2022-12-10 00:52:23 +00:00 |
|
Brian Carroll
|
612c258e35
|
wasm_interp: simplify CallStack for easier debugging
|
2022-12-10 00:52:23 +00:00 |
|
Brian Carroll
|
18e9051760
|
wasm_interp: fix a bug in implicit return
|
2022-12-10 00:52:23 +00:00 |
|
Brian Carroll
|
90449f45f3
|
test_gen: get some tests working with roc_wasm_interp
|
2022-12-10 00:52:23 +00:00 |
|
Brian Carroll
|
8c7d9dbff8
|
wasm_interp: Make ValueStack a dumb Vec<Value> => Zig test 146.3->124.6ms
|
2022-12-09 23:20:50 +00:00 |
|
Brian Carroll
|
d43129d578
|
wasm_interp: code comment about empty implementation of WASI clock functions
|
2022-12-09 23:20:50 +00:00 |
|
Brian Carroll
|
2abae1b5e1
|
wasm_interp: Don't panic while pushing a stack frame
|
2022-12-06 20:31:50 +00:00 |
|
Brian Carroll
|
4cf5d19ace
|
wasm_interp: Fix bug where all arguments were being set as I32
|
2022-12-06 20:23:34 +00:00 |
|
Brian Carroll
|
1b126d3b58
|
wasm_interp: Don't panic when setting a local variable
|
2022-12-06 20:22:05 +00:00 |
|
Brian Carroll
|
9d912a6cc7
|
wasm_interp: don't panic when unwrapping Value
|
2022-12-06 20:19:25 +00:00 |
|
Brian Carroll
|
c7a75bf770
|
wasm_interp: comment to clarify the two CLI systems
|
2022-12-06 09:38:08 +00:00 |
|
Brian Carroll
|
df5baf4211
|
clippy
|
2022-12-06 09:02:59 +00:00 |
|
Brian Carroll
|
2dac57c2bb
|
wasm_interp: self-review fixes
|
2022-12-06 08:59:17 +00:00 |
|
Brian Carroll
|
dfbee7b916
|
wasm_interp: ensure WASI argv[0] is the .wasm executable
|
2022-12-06 08:59:17 +00:00 |
|
Brian Carroll
|
aa76634751
|
wasm_interp: implement WASI proc_exit
|
2022-12-06 08:59:17 +00:00 |
|
Brian Carroll
|
6820278672
|
wasm_interp: fix memory instructions (immediate arg for memory index)
|
2022-12-06 08:59:17 +00:00 |
|
Brian Carroll
|
b938e546b2
|
wasm_interp: In stack trace, last frame shouldn't show previous CALL address
|
2022-12-06 08:59:17 +00:00 |
|
Brian Carroll
|
0f5b7be945
|
wasm_interp: dump stack trace on unreachable instruction
|
2022-12-06 08:59:17 +00:00 |
|
Brian Carroll
|
513a346fe1
|
wasm_interp: end all function blocks on RETURN op
|
2022-12-06 08:59:08 +00:00 |
|
Brian Carroll
|
ad2973cd8d
|
wasm_interp: fix call_indirect immediates order
|
2022-12-06 08:59:08 +00:00 |
|
Brian Carroll
|
6d43763ab7
|
wasm_interp: dump a stack trace on error
|
2022-12-06 08:59:08 +00:00 |
|
Brian Carroll
|
5bdd1b5628
|
wasm_interp: use Result instead of panic. Focus debug info on *Wasm app*, not interp.
|
2022-12-06 08:59:08 +00:00 |
|
Brian Carroll
|
284dc6fa51
|
wasm_interp: support WASI argc/argv, and writing to stdout/stderr
|
2022-12-05 22:16:27 +00:00 |
|
Brian Carroll
|
736630b53f
|
wasm_interp: don't require -- before app arguments
|
2022-12-05 22:16:27 +00:00 |
|
Brian Carroll
|
735085b8df
|
wasm_interp: add a description to Cargo.toml
|
2022-12-05 22:16:27 +00:00 |
|
Brian Carroll
|
c6e446da8d
|
wasm_interp: don't expose internal types
|
2022-12-02 08:02:27 +00:00 |
|
Brian Carroll
|
4714b4599a
|
wasm_interp: move test_utils into tests/mod.rs
|
2022-12-02 08:02:23 +00:00 |
|
Brian Carroll
|
ffd35f5884
|
wasm_interp: move tests inside the crate
|
2022-12-02 07:54:13 +00:00 |
|
Brian Carroll
|
42a15d07b3
|
wasm_interp: Just don't support non-function imports! I've never seen them anyway.
|
2022-12-02 07:47:49 +00:00 |
|
Brian Carroll
|
c38164ce8a
|
wasm_interp: cache import indices instead of signatures
|
2022-12-02 07:47:49 +00:00 |
|
Brian Carroll
|
0cf2f4f9e4
|
clippy
|
2022-12-01 21:56:59 +00:00 |
|
Brian Carroll
|
c0f840542a
|
wasm_interp: test import calls
|
2022-12-01 21:31:46 +00:00 |
|
Brian Carroll
|
c866ce6b09
|
wasm_interp: Handle calls to imports
|
2022-12-01 20:41:38 +00:00 |
|
Brian Carroll
|
b10ac827f1
|
wasm_interp: simplified ImportDispatcher
We don't really need a trait for the 'import module' concept.
|
2022-12-01 08:47:32 +00:00 |
|
Brian Carroll
|
ec8950816a
|
wasm_interp: expose both call_export_from_cli and call_export (for library usage)
|
2022-11-30 23:20:58 +00:00 |
|
Brian Carroll
|
7ddff49691
|
wasm_interp: possible design for imports, using enum dispatch
|
2022-11-30 07:25:38 +00:00 |
|
Brian Carroll
|
378cad7748
|
clippy
|
2022-11-29 11:28:30 +00:00 |
|
Brian Carroll
|
d29ea7fedf
|
wasm_interp: last few instructions!
|
2022-11-29 08:59:37 +00:00 |
|
Brian Carroll
|
17810d5134
|
wasm_interp: float rounding ops
|
2022-11-29 08:43:56 +00:00 |
|
Brian Carroll
|
714586fac1
|
wasm_interp: f32 convert instructions
|
2022-11-29 08:06:18 +00:00 |
|
Brian Carroll
|
029f0d00c1
|
wasm_interp: truncate instructions
|
2022-11-29 08:06:18 +00:00 |
|
Brian Carroll
|
6ac46a150f
|
wasm_interp: fix tests for promote and demote ops
|
2022-11-29 08:05:46 +00:00 |
|
Brian Carroll
|
afa57a027b
|
wasm_interp: implement some number conversion ops
|
2022-11-28 23:28:08 +00:00 |
|
Brian Carroll
|
94ca352ed7
|
wasm_interp: 'reinterpret' instructions
|
2022-11-28 23:28:08 +00:00 |
|
Brian Carroll
|
46737b4a41
|
wasm_interp: rename test_opcodes -> test_basics, and split out test_convert
|
2022-11-28 23:28:08 +00:00 |
|
Brian Carroll
|
f798f47edd
|
wasm_interp: move load and store tests to test_mem
|
2022-11-28 23:28:08 +00:00 |
|
Brian Carroll
|
a97aba7cec
|
wasm_interp: delete older duplicate test
|
2022-11-28 23:28:08 +00:00 |
|