Commit Graph

14196 Commits

Author SHA1 Message Date
Ayaz Hafiz
163c6b39d6
Unify type alias "real variables"
Turns out that we can't always assume that a successful unification of
type alias type variables means that those aliases had the same real
type from the start. Because type variables may contain unbound type
variables and grow during their unification (for example,
`[InvalidNumStr]a ~ [ListWasEmpty]b` unify to give `[InvalidNumStr,
ListWasEmpty]`), the real type may grow as well.

For this reason, continue to explicitly unify alias real types for now.
We can get away with not having to do so when the type variable
unification causes no changes to the unification tree at all, but we
don't have a great way to detect that right now (maybe snapshots?)

Closes #2583
2022-04-05 11:21:52 -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
Folkert de Vries
036ace0223
Merge pull request #2538 from rtfeldman/list-str-capacity
Add capacity to RocStr/RocList
2022-04-05 01:14:16 +02: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
e342b21d43 wasm: enable some List.map tests 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
Brian Carroll
448140d223 wasm: refactor to prepare for HigherOrder calls 2022-04-05 00:01:11 +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
Richard Feldman
37182c971b
Merge pull request #2678 from rtfeldman/editor-new-examples-fix
fixed editor new project init for new example folder layout
2022-04-01 23:09:53 -07:00
Brendan Hansknecht
6f8de4492e correct typo 2022-04-01 23:09:32 -07:00
Richard Feldman
87a677ec4e
Merge pull request #2787 from rtfeldman/rust-1.59-clippy
update with new clippy lints
2022-04-01 23:09:17 -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
Richard Feldman
0fe7e784b6
Merge pull request #2790 from rtfeldman/gui-example-mem
fixed high mem+CPU usage for gui-example and editor
2022-04-01 09:08:18 -07:00
Anton-4
ace5b066f8 fixed high mem+CPU usage for gui-example and editor 2022-04-01 09:41:13 +02: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
Richard Feldman
51b360b578
Merge pull request #2783 from rtfeldman/capacity-cherry-picks
List/String Capacity cherry picks
2022-03-30 23:10:59 -04:00
Folkert
295764420d
disable 32-bit linux tests (until zig 0.9) 2022-03-30 23:57:48 +02:00
Folkert
61aeaefc76
a start with 32-bit linux support 2022-03-30 23:55:34 +02:00
Folkert
79d7dd0cbf
make the wasm repl aware of capacity 2022-03-30 20:23:16 +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