Commit Graph

582 Commits

Author SHA1 Message Date
Anton-4
0f59f3097a
cargo fix --edition 2022-05-16 17:04:17 +02:00
Brian Carroll
aaea254e8f
Pass precompiled host bytes to gen_wasm in CLI 2022-05-15 11:11:08 +01:00
Richard Feldman
fd40fed937
Fix a bunch of errors from clippy --tests 2022-05-10 15:21:48 -04:00
Richard Feldman
df7df4ccf8
Merge branch 'trunk' into mfonism/rename-num-float-type-to-frac 2022-05-08 20:54:33 -04:00
Folkert de Vries
5d3b83f5a6
Merge pull request #2268 from rtfeldman/update_zig_09
Update to Zig 0.9 + LLVM 13
2022-05-08 23:29:45 +02:00
Mfon Eti-mfon
9068c2414e
Rename float functions and vars 2022-05-08 18:42:12 +01:00
jonas schell
532055bf3b implement NumPowInt 2022-05-08 14:17:11 +02:00
Folkert
81caa96af2
Merge remote-tracking branch 'origin/trunk' into update_zig_09 2022-05-07 19:38:04 +02:00
Folkert
9e80673b1d
implement Num.round in the wasm backend like how the dev backend does it 2022-05-06 20:41:02 +02:00
Folkert
07383e96f0
Merge remote-tracking branch 'origin/trunk' into i/2792 2022-05-06 20:17:53 +02:00
Folkert
64b633bea6
make round return an integer 2022-05-06 20:17:40 +02:00
Folkert
5755475b3a
add ListIsUnique lowlevel operation 2022-05-06 13:56:35 +02:00
Brian Carroll
07b3c74713
Refactor for faster Rust compile times 2022-05-02 04:28:33 -07:00
Jared Cone
c7459e9888
Added support for unsigned gt/lt to wasm.
Breaks some other tests, pushing now for sharing
2022-05-02 04:28:33 -07:00
Folkert
b7b86c0cde
Merge remote-tracking branch 'origin/trunk' into update_zig_09 2022-04-30 23:34:48 +02:00
Folkert
76754e4d2a
use &str instead of Ident in some key places 2022-04-30 20:43:12 +02:00
Folkert
d3ef35d935
rename 2022-04-26 11:33:26 +02:00
Folkert
af6c3231f3
Improved IdentIds 2022-04-25 23:15:57 +02:00
Brian Carroll
f8156ffd53
Merge pull request #2834 from rtfeldman/wasm-list-map-n
Wasm List.mapN
2022-04-20 14:47:04 +01:00
Brian Carroll
ae05e870af wasm: Fix Wasm type mismatch for empty closure data in List.mapN 2022-04-13 22:05:57 +01:00
Brian Carroll
bdad1a5161 wasm: Extract List.mapN logic into a helper function 2022-04-13 21:38:54 +01:00
Brian Carroll
c950f6d834 Merge branch 'trunk' of github.com:rtfeldman/roc into wasm-linking-zig9 2022-04-11 18:34:43 +01:00
Brian Carroll
a7a84019cd wasm: Get List.map3 working 2022-04-11 14:36:31 +01:00
Brian Carroll
7b96e953ba wasm: Get List.map2 working 2022-04-11 14:36:31 +01:00
Brian Carroll
5cce24bc8f wasm: improve debug logging 2022-04-11 14:36:31 +01:00
Brian Carroll
a663d335fc repl_test: update build.rs to work with Zig 0.9 (like test_gen) 2022-04-11 14:19:56 +01:00
Brian Carroll
249925cb23 wasm: Work around Zig returning small structs as integers 2022-04-11 11:28:40 +01:00
Brian Carroll
1e5f659be1 wasm: Use Export section to initialise Name section
Works even if the preloaded Name section is missing.
2022-04-09 16:50:22 +01:00
Nikita Mounier
f080180b1d
Allow ZigVersion enum to have dead code (unused case)
Quick and dirty PR to suppress warning when building / running compiler that says:
```rust
warning: variant is never constructed: `Zig8`
   --> compiler/gen_wasm/src/layout.rs:143:5
    |
143 |     Zig8,
    |     ^^^^
    |
    = note: `#[warn(dead_code)]` on by default
```
I'm guessing that the `Zig8` case will be used at some point, so outright deleting the case seemed hasteful to me.
2022-04-08 20:24:07 +00:00
Brian Carroll
2f654ca6dd wasm: more meaningful error when NameSection is missing 2022-04-08 16:52:36 +01:00
Brian Carroll
365904521a wasm: switch Zig calling convention to v0.9 2022-04-08 15:56:24 +01:00
Folkert
1d0f9e9192
Merge remote-tracking branch 'origin/trunk' into builtins-in-roc 2022-04-08 15:47:11 +02:00
ayazhafiz
1efe3e9929 Fix typo 2022-04-07 21:11:19 -04:00
ayazhafiz
134a7bf787 Update wasm implementation 2022-04-07 21:10:22 -04:00
Richard Feldman
cd00a98636
Add toF32/64 and checked versions 2022-04-07 16:13:57 -04:00
Brian Carroll
9116770a00 wasm: Adjust List.map code gen for capacity 2022-04-07 09:29:42 +01:00
Brian Carroll
2b74e55240 Merge branch 'trunk' of github.com:rtfeldman/roc into wasm-higher-order-calls 2022-04-07 09:03:34 +01:00
Richard Feldman
08466380df
Merge pull request #2798 from rtfeldman/wasm-fix-dec-isfinite
Wasm: fix Num.isFinite for Dec
2022-04-04 20:58:46 -04:00
Brian Carroll
0910831f59 wasm: fix Num.isFinite for Dec
When I wrote this code I thought it was the base10 floating point format,
but in fact it's fixed-point.
2022-04-05 00:02:31 +01:00
Brian Carroll
a07cac6682 PR tweaks 2022-04-05 00:02:05 +01:00
Brian Carroll
ab3a75b754 wasm: fix WasmLayout for LambdaSet 2022-04-05 00:02:05 +01:00
Brian Carroll
a63e55e023 wasm: fix stack order in higher-order wrapper 2022-04-05 00:02:05 +01:00
Brian Carroll
b1f15799e3 wasm: Ensure TableSection matches ElementSection 2022-04-05 00:02:05 +01:00
Brian Carroll
8620cdf75c wasm: function pointers for higher order calls 2022-04-05 00:02:05 +01:00
Brian Carroll
5db3ae0227 wasm: code gen for higher order wrapper function 2022-04-05 00:02:05 +01:00
Brian Carroll
51789f38c2 wasm: generate RC inc for higher order builtins 2022-04-05 00:02:05 +01:00
Brian Carroll
05459455ec wasm: ProcLayout for higher order wrapper fns 2022-04-05 00:02:05 +01:00
Brian Carroll
83cae16a60 wasm: Generate code for List.map call (incomplete) 2022-04-05 00:02:05 +01:00
Brian Carroll
ff9bbfab63 wasm: generate code for ZigCC wrapper function 2022-04-05 00:01:11 +01:00
Brian Carroll
973d6dc41f wasm: Create ProcLookupData structure to help with callconv wrapper 2022-04-05 00:01:11 +01:00