Commit graph

998 commits

Author SHA1 Message Date
Ayaz Hafiz
032a8a892b
Use correct callconv for Str.toNum 2022-07-10 13:42:38 -04: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
Ayaz
7b308d9efe
Merge pull request #3404 from rtfeldman/ambient-lset-specialization
The ambient lambda set specialization algorithm
2022-07-09 17:23:27 -05:00
Folkert
d1f7b0fc5a
wasm: store tag id right after the content 2022-07-09 14:28:41 +02:00
Marten/Qqwy
906aa5bbb0
Fix implementation and tests for Result.after and Result.afterErr 2022-07-09 14:28:30 +02:00
Marten/Qqwy
699ab5c646
Symbol definition and tests 2022-07-09 14:28:30 +02:00
Richard Feldman
f45e3dbb46
Fix tests 2022-07-08 18:16:08 -04:00
Ayaz Hafiz
532b2ff403
Support specialization of naked tag unions at toplevel 2022-07-08 17:50:52 -04:00
Ayaz Hafiz
507e1e5add
Add gen tests for polymorphic recursive tags 2022-07-08 17:35:14 -04:00
Folkert
24c6b92846
update mono tests 2022-07-08 16:16:42 +02:00
Folkert de Vries
43f9b0d0fa
Merge pull request #3389 from rtfeldman/3378
Call recursive function with captures, and consolidate proc calling
2022-07-08 16:14:33 +02:00
Folkert
972d652d5d
Merge remote-tracking branch 'origin/trunk' into list-unsafe-append 2022-07-08 13:57:09 +02:00
Ayaz
856b38a958
Merge pull request #3319 from rtfeldman/remove-old-expect-logic
remove old expect logic
2022-07-07 21:21:36 -05:00
Ayaz Hafiz
11b7597a07
Make sure to initialize complete uninit buffer in gen tests 2022-07-07 20:56:51 -04:00
Folkert
56c9787e8f
List.appendUnsafe and List.reserve 2022-07-07 22:40:28 +02: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
Ayaz
22f02984d3
Merge branch 'trunk' into 3378 2022-07-06 20:37:32 -05:00
Richard Feldman
85d87ab431
Merge pull request #3407 from rtfeldman/dylib-roc-benchmarks
Dylib roc benchmarks
2022-07-06 21:19:29 -04:00
Brian Carroll
b1ea641cfb
wasm: enable more tests 2022-07-07 00:34:42 +01:00
Brian Carroll
c9a1600751
wasm: Fix List.map where the mapper has zero-size arguments 2022-07-07 00:05:56 +01:00
Brian Carroll
a9aee13086
test_gen: support RocResult for Wasm tests 2022-07-06 22:01:03 +01:00
Brian Carroll
617e18af98
wasm: enable remaining List tests, except 2 panics 2022-07-06 22:01:02 +01:00
Brian Carroll
f132350ef3
wasm: implement List.sortWith 2022-07-06 22:01:01 +01:00
Brian Carroll
86cb50ed09
test_gen: fix some list tests for 32-bit targets 2022-07-06 21:59:40 +01:00
Brian Carroll
e5e56a7795
wasm: Implement List.prepend 2022-07-06 21:59:37 +01:00