Commit graph

161 commits

Author SHA1 Message Date
Folkert
bece4342ec
improvements to llvm+wasm test running
- run only the wasm tests
- nicer linker error reporting
2022-07-24 12:17:10 +02:00
Folkert
f5c23a219a
remove assert_non_opt_evals_to 2022-07-24 12:12:28 +02:00
Folkert
e1b427839b
implement wasm traits for roc_std::{I128, U128} 2022-07-24 12:07:27 +02:00
Ayaz Hafiz
ee516eaa2f
Don't send delayed errors if we're told to ignore problems 2022-07-22 16:51:29 -04:00
Folkert
9cb2bd04fd
fix from wasm32 RocResult implementation 2022-07-22 21:13:55 +02:00
Folkert
ccd8821acf
fix test panic output formatting 2022-07-22 13:33:52 +02:00
Folkert
0e56753bf1
clippy 2022-07-22 13:16:05 +02:00
Folkert
4c66db7cbe
stop linking wasi; it is unused 2022-07-22 12:23:10 +02:00
Folkert
03fec5f21c
improve error message 2022-07-22 12:22:36 +02:00
Folkert
8cec4c41f8
define send_panic_msg_to_rust in our debug-wasm-test.html 2022-07-22 12:22:19 +02:00
Folkert
e8b7d27e73
use just one temp dir in wasm llvm tests 2022-07-22 12:22:02 +02:00
Folkert
f1d238cccf
add env var to make the final wasm file be written 2022-07-22 12:19:29 +02:00
Folkert
71d80a08d2
remove wasm helpers into the mod for reuse 2022-07-22 12:19:19 +02:00
Folkert
3ca24a6476
implement wasm memory traits for 4-tuples 2022-07-22 12:18:31 +02:00
Folkert
5f8d2df0fa
use new OUT_DIR for llvm wasm backend 2022-07-22 12:10:10 +02:00
Folkert
2fe590abf4
store list in a shorter way 2022-07-22 12:05:29 +02:00
Ayaz Hafiz
efc11bd7ed
Wasm sized and decode for void values 2022-07-18 12:37:48 -04:00
Folkert
d85158e813
add case 2022-07-13 20:14:21 +02:00
Brian Carroll
8533d00f1a
test_gen: place test host .wasm file in Cargo build directory 2022-07-11 20:47:24 +01:00
Folkert
f7d556b0d1
Merge remote-tracking branch 'origin/trunk' into wasm-test-wasm3 2022-07-10 22:46:15 +02:00
Folkert
ca20b8b403
make path to wasm_test_platform.wasm absolute 2022-07-10 22:24:46 +02:00
Folkert de Vries
3b60acb938
Merge pull request #3462 from rtfeldman/fix-nested-imports
Fix importing interfaces with nested paths
2022-07-10 18:08:38 +02:00
Folkert
680f026c6b
re-use wasm test code for llvm wasm tests 2022-07-10 15:36:27 +02:00
Folkert
e36f6f0908
codegen an llvm test wrapper similar to the wasm one 2022-07-10 15:08:41 +02:00
Richard Feldman
c45e3ec4b4
Merge remote-tracking branch 'origin/trunk' into fix-nested-imports 2022-07-10 08:52:38 -04:00
Folkert
c961d08b7e
link llvm output with the wasm test platform 2022-07-10 14:25:43 +02:00
Folkert
f0adf02d7b
make llvm wasm tests compile (fails at runtime) 2022-07-10 14:11:18 +02:00
Folkert
1ed648554d
rename wasm-cli-run -> gen-llvm-wasm 2022-07-10 14:08:35 +02:00
Brian Carroll
a170caf9a6
test_gen: refactor to tidy things up 2022-07-10 14:08:35 +02:00
Brian Carroll
66a7955475
test_gen: get wasm linking test working with DCE 2022-07-10 14:08:34 +02:00
Brian Carroll
0b0c54d676
test_gen: update wasm linking tests to work withx wasm3 runtime 2022-07-10 14:08:34 +02:00
Brian Carroll
e402f1c9d8
test_gen: remove wasmer entirely, and get refcount tests working with wasm3 2022-07-10 14:08:33 +02:00
Brian Carroll
105fe0d456
Handle test cases where roc_panic is dead-code eliminated 2022-07-10 14:08:33 +02:00
Brian Carroll
35dc65440c
test_gen: use include_bytes! instead of std::fs::read for test host 2022-07-10 14:08:32 +02:00
Folkert
378990a003
remove get_roc_panic_msg 2022-07-10 14:08:32 +02:00
Folkert
cc4f88b0e4
find and print the error message on panic 2022-07-10 14:08:31 +02:00
Folkert
3ce8527ec1
use Rc<Mutex<>> to work around lifetime issues 2022-07-10 14:08:31 +02:00
Brian Carroll
eb90af7e0d
try to read the callback after the panic 2022-07-10 14:08:31 +02:00
Brian Carroll
a8dcd38ef3
try to read the panic message in the callback 2022-07-10 14:08:30 +02:00
Folkert
5a176ee93f
link wasi 2022-07-10 14:08:30 +02:00
Folkert
97238c8a56
refactor so we have access to the wasm bytes 2022-07-10 14:08:30 +02:00
Folkert
d7e347dcac
rename FromWasmerMemory -> FromWasm32Memory 2022-07-10 14:08:29 +02:00
Folkert
cef4dc6b9f
add wasm test mode that influences test wrapper codegen 2022-07-10 14:05:17 +02:00
Richard Feldman
c8d8b6adb6
Fix wasm gen dev tests 2022-07-09 21:25:18 -04:00
Richard Feldman
86ee6b0e03
Fix some warnings in gen dev tests 2022-07-09 19:23:36 -04:00
Richard Feldman
081b1d2612
Fix a gen test for dev backend 2022-07-09 19:23:22 -04:00
Folkert
d1f7b0fc5a
wasm: store tag id right after the content 2022-07-09 14:28:41 +02:00
Richard Feldman
f45e3dbb46
Fix tests 2022-07-08 18:16:08 -04:00
Brian Carroll
daec180972
Merge branch 'trunk' of github.com:rtfeldman/roc into wasm-last-few-builtins 2022-07-07 20:36:25 +01:00
Brian Carroll
a6faf875f8
wasm: Use Ord::max where possible instead of a custom function 2022-07-07 20:32:32 +01:00