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
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
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
Brian Carroll
448140d223
wasm: refactor to prepare for HigherOrder calls
2022-04-05 00:01:11 +01:00
Folkert
c73c01aa34
Merge remote-tracking branch 'origin/trunk' into list-str-capacity
2022-03-30 14:07:17 +02:00
Brian Carroll
3c9d624a73
Merge pull request #2757 from rtfeldman/fix_shift_filling
...
Fix (flip) `Num.shiftRight*` builtins
2022-03-23 00:07:19 +00:00
Brian Carroll
24e6cd80e7
wasm: fix argument order for shiftRightBy & disable tests with 8-bit values
2022-03-22 22:28:18 +00:00
Folkert de Vries
5e9e7f3ad5
Merge pull request #2760 from rtfeldman/wasm-reset-reuse
...
Wasm reset & reuse
2022-03-21 23:02:28 +01:00
Brian Carroll
1f82310832
wasm: Add support for Expr::Reuse
2022-03-20 23:01:54 +00:00
Brian Carroll
5de539b9fa
mono: Generate IR for refcount reset procedures
2022-03-20 22:48:23 +00:00
Brian Carroll
9b6b81a438
WIP
2022-03-20 11:17:34 +00:00
Brian Carroll
c9efeed17e
wasm: add support for Expr::Reset
2022-03-19 09:37:45 +00:00
Brian Carroll
bb62571e3a
wasm: reorder some code
2022-03-19 09:27:17 +00:00
Folkert
6134e57921
Merge remote-tracking branch 'origin/trunk' into list-str-capacity
2022-03-18 18:13:55 +01:00
Brian Carroll
136b42cbeb
formatting
2022-03-18 15:17:45 +00:00
Brian Carroll
21ee531e8c
wasm: Add Roc procedure names to Names section for debug
2022-03-18 14:46:53 +00:00
Brian Carroll
1afada4075
wasm: fix panic on empty Struct expression
2022-03-12 09:30:27 +00:00
Brendan Hansknecht
bc492fa22b
run cargo fmt
2022-03-11 19:29:34 -08:00
Brian Carroll
456d8ff9cb
Merge branch 'trunk' of github.com:rtfeldman/roc into list-str-capacity
2022-03-11 19:28:13 +00:00
Brian Carroll
ad5da76588
wasm: fix remaining tests for capacity
2022-03-11 19:20:57 +00:00
Brian Carroll
20f6330f72
wasm: Fix Str.isEmpty for capacity
2022-03-10 06:59:15 +00:00
Brian Carroll
0c6fef0ba3
wasm: Generate Str literals with capacity
2022-03-09 21:18:30 +00:00
Folkert
574f14522d
placeholders in the wasm code
2022-03-09 00:04:23 +01:00
Folkert
6543c9bbc6
Merge remote-tracking branch 'origin/trunk' into box-all-the-things
2022-03-09 00:00:15 +01:00
Folkert
92f2927046
initial implementation
2022-03-08 19:09:42 +01:00
Brian Carroll
70804e9bec
Merge branch 'trunk' of github.com:rtfeldman/roc into wasm-runtime-error
2022-03-08 08:58:15 +00:00
Brian Carroll
9ae26c5aac
wasm: use __data_end to account for all constant data including zero (bss) data
2022-03-08 08:56:34 +00:00
Derek Gustafson
ba6b225761
Hide RocDec implemntation details.
2022-03-07 15:34:02 -05:00
Folkert
3510bad1d5
add scaffolding
2022-03-07 20:55:40 +01:00
Brian Carroll
770155312c
Merge branch 'trunk' of github.com:rtfeldman/roc into wasm-runtime-error
2022-03-04 21:22:08 +00:00