Commit graph

8300 commits

Author SHA1 Message Date
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
Brendan Hansknecht
6f8de4492e correct typo 2022-04-01 23:09:32 -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
Folkert
5a3be2adf4
give correct stack size without alignment for tags 2022-03-30 19:18:16 +02:00
Folkert
e13ea55004
use roc_load_value to move a value to the stack 2022-03-30 19:16:10 +02:00
Folkert
49f624a27a
use store_roc_value when inserting into dict 2022-03-30 19:15:39 +02:00
Folkert
85bf881b3b
make Dict.keys and Dict.values use list helpers for returning 2022-03-30 19:14:52 +02:00
Folkert
de77748dd5
add additonal tests 2022-03-30 19:08:23 +02:00
Folkert
4426f5793b
rename a function 2022-03-30 19:08:09 +02:00
Folkert
972c5d78d3
use roc_ helpers for box loading and storing 2022-03-30 19:07:55 +02:00
Folkert
59a2253b9a
rework how tags are created 2022-03-30 19:07:40 +02:00
Folkert
3cc96e76dc
preparation for using argument_type_from_layout 2022-03-30 19:07:20 +02:00
Folkert
94b5abf2ce
fix spelling 2022-03-30 17:43:11 +02:00