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
90cd644671
test_gen: update wasm build command for zig 0.9
2022-04-08 16:44:28 +01:00
Brian Carroll
024fd81a0b
Further improve zig wasm builtins test script
2022-04-08 16:38:46 +01:00
Brian Carroll
b96c9aa61a
Fix signature of roc_memcpy in wasm test platform
2022-04-08 16:38:22 +01:00
Brian Carroll
365904521a
wasm: switch Zig calling convention to v0.9
2022-04-08 15:56:24 +01:00
Brian Carroll
a2f714234a
Make Zig wasm test script more robust
2022-04-08 15:14:58 +01:00
Folkert
f587c3b49c
update zig wasm test runner script
2022-04-08 14:33:10 +02:00
Folkert
77c9bc193b
Merge remote-tracking branch 'origin/update_zig_09' into update_zig_09
2022-04-08 13:08:04 +02:00
Folkert
9d040e8203
zig 0.9 change
2022-04-08 13:04:50 +02:00
Folkert
b66e027190
clippy
2022-04-08 13:04:38 +02:00
Folkert
8d8365233e
cast from bitpacked to struct
2022-04-08 13:03:35 +02:00
Folkert
90e90b3b22
fix dec equality
2022-04-08 13:03:19 +02:00
Folkert
e1f13860bd
pass Dec as two separate i64's
2022-04-08 11:57:54 +02:00
Folkert
7e0c44b955
fix Dict.get
2022-04-08 11:30:51 +02:00
Ayaz Hafiz
2973987687
Update darwin targets
2022-04-07 09:17:20 -04:00
Folkert
653d2d2a72
fix list functions
2022-04-06 18:43:48 +02:00
Folkert
5e0b724854
fix zig argument passing changes in str module
2022-04-06 15:38:47 +02:00
Folkert
a69bf971f0
Merge remote-tracking branch 'origin/trunk' into update_zig_09
2022-04-06 15:38:15 +02:00
Folkert de Vries
d3a3b6456a
Merge pull request #2800 from rtfeldman/parse-out-dec-suffix
...
Make sure float suffixes are parsed out after can
2022-04-05 23:43:15 +02:00
Ayaz Hafiz
9fbc525d02
Make sure float suffixes are parsed out after can
...
Before we hit mono, we need to make sure the suffixes of numeric
literals are parsed out from the literal string, so that we don't try to
parse something whose type we already know but has the extraneous
suffix.
Co'ed with @tagraves
2022-04-05 11:32:34 -04: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
Richard Feldman
b35cc6ac8c
Merge pull request #2795 from rtfeldman/i/2582
...
Deal with fastcc return-by-pointer convention correctly
2022-04-04 20:14:49 -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
Ayaz Hafiz
0f0e56a21c
Deal with fastcc return-by-pointer convention correctly
...
Closes #2582
2022-04-04 16:33:01 -04:00
Folkert
68536e4026
Merge remote-tracking branch 'origin/trunk' into list-str-capacity
2022-04-04 19:55:04 +02:00
Folkert
1e397e950d
changes after review
2022-04-04 19:53:33 +02:00
Brendan Hansknecht
19c02aa087
Merge pull request #2789 from rtfeldman/atomic-rc
...
Use zig for all refcounts and add atomic support
2022-04-03 22:23:28 +00:00
Brendan Hansknecht
3ef40e2e82
use exhaustive refcount pattern match
2022-04-03 13:29:16 -07:00
Brendan Hansknecht
a1c469232f
simplify allocate_with_refcount to be closer to the old llvm version
2022-04-01 16:27:42 -07:00
Brendan Hansknecht
eea8eeb1b6
clippy
2022-04-01 15:14:30 -07:00
Brendan Hansknecht
a4f0ed1990
flip max for min
2022-04-01 15:07:00 -07:00
Brendan Hansknecht
3606543ac0
keep normal as the default refcounting
2022-04-01 15:03:16 -07:00
Brendan Hansknecht
2093405ffc
make sure the rodata refcounts aren't incremented
2022-04-01 15:02:01 -07:00
Brendan Hansknecht
cf238862f4
fix formatting
2022-04-01 14:12:31 -07:00
Brendan Hansknecht
577282ced3
have zig allocate all refcounts
2022-04-01 14:06:28 -07:00
Brendan Hansknecht
805e4ef5d3
change refcount type to enum so none can be select
2022-04-01 13:48:14 -07:00
Brendan Hansknecht
ef49d5714b
change incref to use the zig builtin
2022-04-01 13:41:46 -07:00
Brendan Hansknecht
56dc503d11
fix formatting
2022-03-31 22:26:18 -07:00
Brendan Hansknecht
a75ecb2883
add variable to enable atomic refcounts for testing
2022-03-31 22:18:25 -07:00
Folkert
426aa13e13
fix merge error
2022-03-31 21:09:55 +02:00
Folkert
2c8d58329c
formatting
2022-03-31 19:42:43 +02:00
Folkert
0dd2cec09a
update with new clippy lints
2022-03-31 19:34:51 +02:00
Folkert
f9f3a255a9
Merge remote-tracking branch 'origin/trunk' into list-str-capacity
2022-03-31 19:19:36 +02:00
Folkert
61aeaefc76
a start with 32-bit linux support
2022-03-30 23:55:34 +02:00
Folkert
108f2142ba
clippy
2022-03-30 19:23:51 +02:00
Folkert
bd46103f0c
use RocResult for some tests
2022-03-30 19:21:18 +02:00
Folkert
786246f427
when doing a memcpy, don't take alignment into account
2022-03-30 19:20:53 +02:00
Folkert
e94bdb0ed8
use a nullable pointer to store the output of strSplitInPlace
2022-03-30 19:18:29 +02:00