Brian Carroll
|
9ea2176db8
|
wasm_module, wasm_interp: fix SLEB-128 encoding for i64
|
2022-11-28 17:39:13 +00:00 |
|
Brian Carroll
|
6e8904baa8
|
wasm_module: fix parsing of negative i32's!
|
2022-11-28 08:25:32 +00:00 |
|
Brian Carroll
|
d5cc4b19f8
|
wasm_module: add a deb_hex! macro
|
2022-11-28 08:24:34 +00:00 |
|
Brian Carroll
|
8e15d49720
|
wasm_interp: use Value::from in more places
|
2022-11-27 21:00:52 +00:00 |
|
Brian Carroll
|
78fbc75249
|
wasm_interp: neater creation of Value from unsigned integers
|
2022-11-27 20:53:12 +00:00 |
|
Brian Carroll
|
9e7a92574d
|
wasm_interp: don't give Signature the Clone trait just for a test!
|
2022-11-27 20:34:03 +00:00 |
|
Brian Carroll
|
c2fb626c17
|
wasm_interp: implement indirect_call
|
2022-11-27 18:56:09 +00:00 |
|
Brian Carroll
|
a09fd95fd7
|
wasm_interp: pass arguments from CLI
|
2022-11-26 09:10:35 +00:00 |
|
Brian Carroll
|
d9fe907684
|
wasm_module: create const ValueType::VOID to use as block type
|
2022-11-26 00:38:41 +00:00 |
|
Brian Carroll
|
2bd67a3292
|
wasm_interp: tests for memory allocation instructions
|
2022-11-25 16:51:36 +00:00 |
|
Brian Carroll
|
598e62275d
|
wasm_interp: implement store instructions
|
2022-11-25 15:41:11 +00:00 |
|
Brian Carroll
|
96bff3e304
|
wasm_module: Create DataSection::load_into
|
2022-11-25 09:19:35 +00:00 |
|
Brian Carroll
|
9d437fe3fd
|
wasm_interp: report todo! panics with file offset of the missing instruction
|
2022-11-25 00:14:44 +00:00 |
|
Brian Carroll
|
f103801457
|
wasm_module: accept simpler modules with missing sections
|
2022-11-25 00:14:44 +00:00 |
|
Brian Carroll
|
60a671362f
|
wasm_interp: Create a CLI to run .wasm files
|
2022-11-25 00:14:44 +00:00 |
|
Brian Carroll
|
6523b38847
|
wasm_interp: implement calls with arguments
|
2022-11-24 16:43:31 +00:00 |
|
Brian Carroll
|
235c238e36
|
Move Value from wasm_interp to wasm_module & create GlobalSection::initial_values
|
2022-11-24 16:43:31 +00:00 |
|
Brian Carroll
|
0a2f2739b2
|
wasm_interp: implement function call (no arguments yet!)
|
2022-11-24 16:43:31 +00:00 |
|
Brian Carroll
|
972d9dbb19
|
wasm_interp: implement call and return instructions
|
2022-11-24 16:43:31 +00:00 |
|
Brian Carroll
|
92039547b6
|
wasm_interp: remove unsafe code
|
2022-11-22 00:09:38 +00:00 |
|
Brian Carroll
|
ce10199bb4
|
clippy + comments
|
2022-11-21 23:04:22 +00:00 |
|
Brian Carroll
|
26cce05bbe
|
wasm_module: create WasmModule::new for testing
|
2022-11-21 19:54:48 +00:00 |
|
Brian Carroll
|
2ca74e5070
|
wasm_interp: create execute module
|
2022-11-21 19:54:48 +00:00 |
|
Brian Carroll
|
2f709580cd
|
Use workspace versioning for wasm_module Cargo.toml
|
2022-11-21 19:54:48 +00:00 |
|
Brian Carroll
|
29baa45774
|
debug generated linker data for Roc->JS calls
|
2022-11-17 21:26:33 +00:00 |
|
Brian Carroll
|
24e6e8445d
|
Remove the trick of pushing an extra N+1 entry to function_offsets. It's bug-prone.
|
2022-11-17 07:49:38 +00:00 |
|
Brian Carroll
|
0c81063c68
|
Fix dummy function replacement
|
2022-11-16 21:25:53 +00:00 |
|
Brian Carroll
|
24cef94fb5
|
Fix Wasm dummy function
|
2022-11-16 20:34:38 +00:00 |
|
Brian Carroll
|
e57ca0aa12
|
Remove "Roc host" specifics from Wasm dead code elimination
|
2022-11-16 08:07:22 +00:00 |
|
Brian Carroll
|
4dea82b2f5
|
Move code_builder from wasm_module to gen_wasm
|
2022-11-14 09:18:53 +00:00 |
|
Brian Carroll
|
c8f949d546
|
Temporarily copy DEBUG_SETTINGS into wasm_module crate
|
2022-11-13 09:19:55 +00:00 |
|
Brian Carroll
|
2e67bdf4d0
|
Move some wasm constants and macros
|
2022-11-13 09:03:26 +00:00 |
|
Brian Carroll
|
63d9187343
|
move wasm_module out of gen_wasm
|
2022-11-13 09:03:08 +00:00 |
|