Marten/Qqwy
83288ed7da
And also add it to the symbol.rs list
2022-06-27 13:48:09 +02:00
Marten/Qqwy
47067e2b3b
Tests for List.findIndex
2022-06-27 13:48:09 +02:00
Brian Carroll
8e7943eaca
Merge pull request #3305 from rtfeldman/wasm-arithmetic-overflow
...
Wasm checked arithmetic operators + Num.mulSaturated
2022-06-25 13:21:33 +01:00
Brian Carroll
74f946b1aa
Create new operator Num.mulSaturated
2022-06-23 22:08:37 +01:00
Brian Carroll
e356f1c33f
builtins: fix saturated integer subtraction
2022-06-23 08:49:47 +01:00
Brian Carroll
320bdcc13b
wasm: implement all multiplication operators
2022-06-22 23:36:01 +01:00
Brian Carroll
f4ec2617fa
wasm: implement all subtraction operators (checked, wrapping, panicking, and saturated)
2022-06-22 22:54:09 +01:00
Brian Carroll
b1193e4134
wasm: implement all addition operators (wrapping, panicking, saturating, and checked)
2022-06-22 22:11:46 +01:00
Brian Carroll
10676d3ce9
wasm: implement checked addition
2022-06-22 22:11:39 +01:00
Ayaz Hafiz
2079a64cb7
Make sure to unwrap non-nullable unwrapped unions directly in alias analysis
...
Non-nullable unwrapped tag unions are represented directly as the type
of their singleton variant in morphic. Other recursive tag unions are
something like `(heap_cell, union [A, B (<rec>)])` for recursive union
`[A, B (<rec>)]`, but a non-nullable unwrapped tag union `[ Foo Str <rec> ]`
is represented directly as the tuple `(Str <rec>)`. Make sure we don't
try to unwrap a non-existent heap cell and union data for such type
representations.
Closes #3261
2022-06-22 12:36:37 -04:00
Folkert de Vries
f206194d1f
Merge pull request #3278 from rtfeldman/wasm-more-lowlevels
...
Implement more Num lowlevels in Wasm
2022-06-22 13:06:11 +02:00
Brian Carroll
37395a00ef
wasm: add support for NumToIntChecked
2022-06-22 00:27:38 +01:00
Brian Carroll
f5b46bf650
wasm: implement sin, cos, tan, sqrt, log, and pow
2022-06-21 23:59:38 +01:00
Brian Carroll
9d5713ed79
Merge branch 'trunk' into build-scripts-cleanup
2022-06-20 12:19:47 +01:00
Brian Carroll
4598b05345
Fix test_gen build script bugs
2022-06-20 08:24:48 +01:00
Brian Carroll
dbb4b31ebe
wasm: implement bytes_to_u16 and bytes_to_u32
2022-06-19 18:29:06 +01:00
Brian Carroll
b0d134b4d4
wasm: disable a failing test
2022-06-19 16:29:09 +01:00
Brian Carroll
ab12ddf85f
Get rid of some Unix-specific slashes
2022-06-19 16:21:33 +01:00
Brian Carroll
a775c94596
Reuse wasi-libc-sys in all Wasm build scripts
2022-06-19 16:21:33 +01:00
Brian Carroll
5aff2bfe35
Get rid of a Windows-unfriendly 'find' command in test_gen build script
2022-06-19 16:21:31 +01:00
Brian Carroll
af08644101
enable some more gen_wasm tests
2022-06-18 23:46:11 +01:00
Brian Carroll
f0b9bf5203
Fix build error
2022-06-18 23:46:10 +01:00
Brian Carroll
7727cc7b83
wasm: make sure test_gen/build exists before using it
2022-06-18 10:59:11 +01:00
Brian Carroll
b40a73ddcb
Clippy
2022-06-18 07:27:44 +01:00
Brian Carroll
f1cadbcc05
Merge branch 'trunk' of github.com:rtfeldman/roc into wasm-linking-test-improvements
2022-06-17 23:20:05 +01:00
Brian Carroll
40f2baa373
wasm: remove duplicate code in tests, for .wasm file dump
2022-06-17 22:04:59 +01:00
Brian Carroll
c287bc5294
wasm: refactor linking test and save Wasm bytes to disk on error
2022-06-17 07:52:51 +01:00
Brian Carroll
2828aeeb6c
wasm: choose a more debuggable calculation for the linking test app
2022-06-16 00:21:11 +01:00
Brian Carroll
0fef1e1576
Create to_exposed_symbol_string helper function for all backends
2022-06-15 22:30:10 +01:00
Brian Carroll
6e30811b0c
wasm: use a BitVec for called host functions
2022-06-15 21:31:10 +01:00
Brian Carroll
52f209b2f9
wasm: in linking test, compare wasm result to native result
2022-06-15 21:16:00 +01:00
Brian Carroll
01a0c1775e
wasm: add a zig file to calculate expected test result
2022-06-15 20:20:55 +01:00
Brian Carroll
c1aa9f229a
wasm: move linking tests to test_gen and execute the module
2022-06-15 20:20:55 +01:00
Folkert de Vries
47f613d4c3
Merge pull request #3219 from rtfeldman/wasm-dce-imports
...
Wasm dead code elimination for JS imports
2022-06-15 17:53:18 +02:00
Ayaz Hafiz
c8a8ebd628
Turn on basis test case
2022-06-13 09:12:58 -04:00
Ayaz Hafiz
749f9b0fc5
Add a basis test case
2022-06-13 08:42:12 -04:00
Brian Carroll
8493c8cfca
Merge branch 'trunk' of github.com:rtfeldman/roc into wasm-dce-imports
2022-06-13 08:41:41 +01:00
Brian Carroll
f6f7672e1c
wasm: rename DEBUG_LOG_SETTINGS->DEBUG_SETTINGS and add skip_dead_code_elim
2022-06-12 20:45:43 +01:00
Brian Carroll
6d39f50bcc
wasm: use linking data to implement call graph tracing for DCE
2022-06-12 20:42:09 +01:00
Richard Feldman
720d82598d
Merge remote-tracking branch 'origin/trunk' into cstr
2022-06-10 18:51:42 -04:00
Richard Feldman
f45d1281f7
Merge pull request #3137 from rtfeldman/expect-report
...
Expect report
2022-06-08 10:13:35 -04:00
Folkert de Vries
96d8954df7
Merge pull request #3176 from rtfeldman/pending-lambda-sets
...
Specialized lambda sets
2022-06-08 15:56:28 +02:00
Brian Carroll
c00b43c36b
wasm: Move some of the DCE code from CodeSection to WasmModule
2022-06-07 23:52:33 +01:00
Ayaz Hafiz
1b9b712fe8
Turn on ability test that depends on unspecialized lambda sets
2022-06-07 11:51:21 -04:00
Richard Feldman
ab99a583a8
Rename some functions to make it clearer they're unchecked
2022-06-06 20:23:17 -04:00
Brian Carroll
eaae7f1004
wasm: Deal with hosts where Roc main is called from JS (also test_gen & REPL!)
2022-06-06 11:37:44 +01:00
Brian Carroll
376cbbc4b2
wasm: Make NameSection easier to manipulate
2022-06-06 10:54:56 +01:00
Brian Carroll
d42cbd052f
wasm: print out the host path in tests
2022-06-04 20:26:12 +02:00
Brian Carroll
0900481ec8
wasm: try to link Roc main to the test platform
2022-06-04 20:24:08 +02:00
Brian Carroll
f063064e01
wasm: make sure the host's extern globals are exposed to JS
2022-06-03 09:51:33 +02:00