Commit graph

40 commits

Author SHA1 Message Date
Brian Carroll
5ea313f256 update gen_wasm to use bumpalo::collections::Vec where possible 2021-10-21 21:14:15 +02:00
Brian Carroll
b86849347a Write test debug output to a path in /tmp 2021-10-18 20:42:13 +02:00
Brian Carroll
6206418b67 Fix clippy warnings 2021-10-14 00:13:47 +02:00
Brian Carroll
c9997f2115 Turn off output file generation & delete duplicate test 2021-10-10 20:55:53 +01:00
Brian Carroll
9dcc6f2bc5 size comparison tweaks 2021-10-10 12:52:53 +01:00
Brian Carroll
14f7f0f3b4 Improved test setup for size comparison 2021-10-10 10:42:02 +01:00
Brian Carroll
32b9f4fb07 Generate a .wasm file for every test, for size benchmarking 2021-10-09 18:47:37 +01:00
Brian Carroll
7ac7e16f60 Ensure stack frame is always popped when procedure returns from inside a branch 2021-09-30 17:04:16 +01:00
Brian Carroll
7ea59ad9d4 PR tidy-ups 2021-09-29 06:15:58 +01:00
Brian Carroll
02bb9028ef Returning records on the stack from Wasm dev backend! 2021-09-28 08:06:59 +01:00
Brian Carroll
ae6cfe1992 Moree implementations for Wasm32TestResult 2021-09-26 20:52:16 +01:00
Brian Carroll
ab4f28fd69 Comment out a test that isn't working 2021-09-26 20:52:16 +01:00
Brian Carroll
65446ce1e8 Remove unnecessary Option 2021-09-18 14:46:09 +01:00
Brian Carroll
c3b5ac6c82 Allocate stack memory to local variables 2021-09-18 13:39:38 +01:00
Brian Carroll
4f55b7a56e Allocate and free stack frames 2021-09-17 21:17:05 +01:00
Brian Carroll
408c31ebcc Tests for different bitwidth integers 2021-09-13 17:01:06 +02:00
Brian Carroll
df73a4d80e rename wasm test modules 2021-09-12 23:24:04 +02:00
Brian Carroll
35c5b6bc4e Tests passing with generic native/wasm interface 2021-09-12 23:23:43 +02:00
Brian Carroll
8b73b98622 Code gen full test wrapper from body 2021-09-11 16:56:00 +01:00
Brian Carroll
086f13ef5a Rename test code gen menthod to build_wrapper_body 2021-09-11 16:55:20 +01:00
Brian Carroll
f0a7b4a46a Stack grows downward by convention, not upward 2021-09-11 11:44:49 +01:00
Brian Carroll
83150d2c7e Test helper trait to generate test wrapper code 2021-09-11 11:44:43 +01:00
Folkert
daf0a0e02b Merge remote-tracking branch 'origin/trunk' into gen_wasm_join 2021-09-10 13:16:46 +02:00
Folkert
05469d5ae5 Merge remote-tracking branch 'origin/trunk' into gen_wasm_switch 2021-09-09 10:19:46 +02:00
Brian Carroll
f822251c65 Fix rust-fmt 2021-09-08 20:38:27 +01:00
Brian Carroll
57a30b8e9e Get rid of duplicated eval helper file 2021-09-08 20:16:59 +01:00
Folkert
e802da5f54 implement factorial example 2021-09-08 20:05:05 +02:00
Folkert
ae2b4b7c78 comment out wasm record tests 2021-09-08 20:01:35 +02:00
Folkert
4e5b677426 basic join point 2021-09-08 15:54:00 +02:00
Folkert
480cdea82c comment out record tests 2021-09-08 00:57:59 +02:00
Folkert
1da32f18e5 implement switch for the gen wasm backend 2021-09-08 00:00:36 +02:00
Brian Carroll
7825c0c007 Merge branch 'gen_wasm' of github.com:rtfeldman/roc into gen_wasm 2021-09-07 21:37:29 +01:00
Folkert
afd7553e7a enable F64 2021-09-07 17:42:31 +02:00
Folkert
e316bfca72 make mut 2021-09-07 16:48:11 +02:00
Folkert
28c608e692 remove duplication of FromWasm32Memory 2021-09-07 16:47:10 +02:00
Folkert
f4379673b4 Merge remote-tracking branch 'origin/trunk' into gen_wasm 2021-09-07 16:45:57 +02:00
Brian Carroll
edf39be4c9 Prepare to pull from trunk 2021-09-07 09:02:17 +01:00
Brian Carroll
ba0826cbfd First three tests passing with Wasm dev backend!
Only i64 values. Next step is generalising to all types.
2021-09-07 08:03:41 +01:00
Brian Carroll
13a969a238 Bugfixes: generate valid wasm for gen_add_i64
Still need to create test_wrapper
2021-09-03 21:54:57 +01:00
Folkert
ff29b19338 add wasm tests 2021-09-01 22:35:14 +02:00