Commit Graph

52 Commits

Author SHA1 Message Date
Anton-4
2ac6243e72
partial clippy fixes 2023-12-27 17:46:56 +01:00
Folkert
49c2b1dbb7
redundant closure call 2023-11-18 22:46:40 +01:00
Brian Carroll
5b633ccd24
Comments 2023-10-23 13:50:35 -07:00
Luke Boswell
8e06f22483
clippy 2023-10-23 13:50:32 -07:00
Brian Carroll
564de99a43
gen_wasm: Allow host's final Custom sections to be in any order 2023-10-23 13:50:31 -07:00
Folkert
0e71e0d1b1
implement signed integer extension operations 2023-07-25 19:22:03 +02:00
Folkert
26ef2bd46b
wasm interpreter: use lookup table instead of unsafe 2023-07-25 18:44:46 +02:00
Folkert
ef39bad7c6
auto clippy fixes 2023-07-10 18:27:08 +02:00
Folkert
f813591042
fix skipping immediates for memory instructions 2023-07-08 23:07:15 +02:00
Folkert
c7ccc2092a
add the memory.fill and memory.copy commands to our wasm interpreter 2023-07-08 20:35:33 +02:00
Brendan Hansknecht
f42f61e271
run a toml formatter and then clean it up a bit 2023-03-06 19:47:57 -08:00
Brendan Hansknecht
4a89bee0a5
centralize package versions except for vendor and excluded 2023-03-06 19:29:09 -08:00
Brendan Hansknecht
5485c8a5b0
update to using workspace package spec 2023-03-06 16:36:18 -08:00
Brian Carroll
b0d2e7a409
wasm_interp: store return type in frame & create SignatureParamsIter 2022-12-17 20:52:19 +00:00
Brian Carroll
de9349477f
wasm_module: remove commented-out code 2022-12-14 12:10:55 +00:00
Brian Carroll
473dd371b0
wasm_module: when parsing, and a linking section is not found, reset the cursor 2022-12-14 08:42:01 +00:00
Brian Carroll
1f90286d64
wasm_module: unsafe From<u8> for Opcode takes 6% off Zig test time 2022-12-09 23:20:50 +00:00
Brian Carroll
9d912a6cc7
wasm_interp: don't panic when unwrapping Value 2022-12-06 20:19:25 +00:00
Brian Carroll
0970595238
wasm_module: fix bug in DataSection::load_into (for roc_wasm_interp) 2022-12-05 22:16:27 +00:00
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