Commit graph

921 commits

Author SHA1 Message Date
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
Brian Carroll
84a3ac2ef6
Replace byte slices with str 2022-05-22 19:37:06 +01:00
Brian Carroll
8114ec60c1
Start using Result to handle Wasm module parse failures 2022-05-22 09:36:33 +01:00
Brian Carroll
1e68ca88d0
fix warning on wasm tests in gen_abilities 2022-05-21 10:34:52 +01:00
Richard Feldman
9c72e5e8ed
Remove unnecessary -> () function return types 2022-05-18 08:29:40 -04:00
Ayaz
222967d749
Merge pull request #3081 from rtfeldman/issue-2845-dec-literal
Issue 2845 dec literal
2022-05-16 20:01:59 -04:00
Anton-4
0f59f3097a
cargo fix --edition 2022-05-16 17:04:17 +02:00
Ayaz
33226340bc
Merge pull request #3067 from rtfeldman/faster-gen-tests
use single-threaded mode for gen tests
2022-05-15 09:00:22 -04:00
Brian Carroll
aaea254e8f
Pass precompiled host bytes to gen_wasm in CLI 2022-05-15 11:11:08 +01:00
Drake
43674efb32
fix: pass along parsed number string 2022-05-14 15:44:16 -06:00
Folkert
0cc6b63feb
use single-threaded mode for gen tests 2022-05-14 23:26:16 +02:00
Richard Feldman
f386edc54a
don't say pi = 1.23 2022-05-10 15:25:46 -04:00
Richard Feldman
fd40fed937
Fix a bunch of errors from clippy --tests 2022-05-10 15:21:48 -04:00
Richard Feldman
a7ed288b56
Add some safety comments for clippy 2022-05-10 15:21:47 -04:00
Folkert de Vries
89c6f55288
Merge pull request #3048 from rtfeldman/i/2389
Type solving paper cuts
2022-05-10 20:45:45 +02:00
Folkert
a9bee7f564
only run min/max test on wasm/llvm; dev backend doesn't implement them 2022-05-10 18:33:00 +02:00
Ayaz Hafiz
32814cbb37
Add test for resolved bug
Closes #2389
2022-05-10 09:29:28 -04:00
Ayaz Hafiz
029fbb372b
Fix gen test 2022-05-10 09:24:16 -04:00
Richard Feldman
8453b233bc
Fix test 2022-05-10 08:40:33 -04:00
Folkert
ff48bf0899
min/max abs tests 2022-05-10 13:23:57 +02:00
Folkert
5cd36a3c26
add tests for the new min/max constants 2022-05-09 22:56:54 +02:00
Brian Carroll
ca7d916065 Delete llvm feature from roc_build and roc_cli 2022-05-09 20:40:57 +01:00
Richard Feldman
df7df4ccf8
Merge branch 'trunk' into mfonism/rename-num-float-type-to-frac 2022-05-08 20:54:33 -04:00
Ayaz
3e7702df01
Merge pull request #2910 from rtfeldman/i/2880
Ability codegen for Encode/Decode
2022-05-08 19:10:45 -04:00