Commit graph

944 commits

Author SHA1 Message Date
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
Brian Carroll
f493fcb1e4
wasm: parse the remainder of the 'linking' section 2022-06-03 09:51:33 +02:00
Brian Carroll
dad1d14ef8
wasm: make host file relocatable 2022-06-03 09:51:32 +02:00
Ayaz Hafiz
2e70c9aba4
Getting closer. Checking in for a break. 2022-06-01 13:18:53 -05:00
Ayaz Hafiz
790eb8e20c
Lambda sets don't need extension vars 2022-06-01 13:18:03 -05:00
Folkert
e949f4d552
clippy 2022-05-27 00:07:35 +02:00
Folkert
39947ced67
remove expect test, it does nothing any more 2022-05-26 20:05:31 +02:00
Richard Feldman
1ef5d785c0
Remove no-longer-necessary ReferenceCount uses in wasm 2022-05-26 11:18:06 -04:00
Brian Carroll
731a227c61
Merge branch 'trunk' of github.com:rtfeldman/roc into wasm-parser-trait 2022-05-25 21:15:08 +01:00
Richard Feldman
4eec34becf
Update to use new square brace formatting 2022-05-22 23:15:54 -04:00
Brian Carroll
873d9d4e06
wasm: create separate steps for parsing the host and compiling the app 2022-05-22 20:49:16 +01:00