Commit graph

8897 commits

Author SHA1 Message Date
Brian Carroll
b4e139a799
wasm: store Imports in deserialized form for easier manipulation 2022-06-04 20:24:10 +02:00
Brian Carroll
0900481ec8
wasm: try to link Roc main to the test platform 2022-06-04 20:24:08 +02:00
Brian Carroll
0c077e1b66
wasm: do relocations by name only, without specifying symbol type 2022-06-04 20:21:20 +02:00
Brian Carroll
5c3e95f099
wasm: better comments for SectionSymbol 2022-06-04 20:12:51 +02:00
Brian Carroll
163d1f2426
wasm: delete Serialize instances for linker sections 2022-06-04 20:02:35 +02:00
Brian Carroll
16c2d64d17
wasm: use linker data rather than debug data to lookup builtins & host fns 2022-06-04 19:39:10 +02:00
Brian Carroll
36daa50a9a
wasm: remove obsolete code for *emitting* linker info 2022-06-04 14:44:16 +02:00
Brian Carroll
4de7490c96
wasm: Make serialization functions more consistent 2022-06-03 09:59:37 +02:00
Brian Carroll
aa8c05d535
wasm: address PR feedback 2022-06-03 09:59:37 +02:00
Brian Carroll
86d14b9391
wasm: initialise the heap with one page of memory (otherwise some tests crash) 2022-06-03 09:51:33 +02:00
Brian Carroll
f063064e01
wasm: make sure the host's extern globals are exposed to JS 2022-06-03 09:51:33 +02:00
Brian Carroll
32db70d661
wasm: ensure output debug data is valid when we have duplicate names 2022-06-03 09:51:33 +02:00
Brian Carroll
19a47cb384
wasm: Configure and export the module's memory 2022-06-03 09:51:33 +02:00
Brian Carroll
32d1e0b50b
wasm: relocations must account for offset of preloaded bytes in code section 2022-06-03 09:51:33 +02:00
Brian Carroll
b1d3bac1c4
wasm: fix relocation bug 2022-06-03 09:51:33 +02:00
Brian Carroll
ddf1fe3977
wasm: Fix ImportSection bug 2022-06-03 09:51:33 +02:00
Brian Carroll
9b47dada6a
wasm: implement relocations to set memory layout 2022-06-03 09:51:33 +02:00
Brian Carroll
73f0a7c96c
wasm: Create a global for __stack_pointer 2022-06-03 09:51:33 +02:00
Brian Carroll
78cae6c3b3
wasm: extract end address from Data section 2022-06-03 09:51:33 +02:00
Brian Carroll
f493fcb1e4
wasm: parse the remainder of the 'linking' section 2022-06-03 09:51:33 +02:00
Brian Carroll
16333b823a
wasm: parse some of the linking section 2022-06-03 09:51:33 +02:00
Brian Carroll
155dcefd00
wasm: parse relocation data 2022-06-03 09:51:33 +02:00
Brian Carroll
73d79d68b0
wasm: add some utility Parser instances and todos 2022-06-03 09:51:33 +02:00
Brian Carroll
2732d46f37
wasm: fix section order for a file with linking data 2022-06-03 09:51:33 +02:00
Brian Carroll
4a22d22515
wasm: treat wrong section ID as empty section 2022-06-03 09:51:32 +02:00
Brian Carroll
dad1d14ef8
wasm: make host file relocatable 2022-06-03 09:51:32 +02:00
Folkert de Vries
c436ac98e2
Merge pull request #3167 from rtfeldman/no-more-tagname
Remove TagName on the front end
2022-06-02 22:52:08 +02:00
Ayaz Hafiz
fe85cdc3c2
Remove Subs::restore
Looks like this is unneeded. One less large type walker to update
2022-06-02 12:28:02 -05:00
Ayaz Hafiz
873271b02d
Remove unused impl 2022-06-02 09:44:39 -05:00
Ayaz Hafiz
26332901be
Update ident size on wasm 2022-06-02 09:44:39 -05:00
Ayaz Hafiz
32cd3d16d2
Assert sizeof non-wasm 2022-06-02 09:44:38 -05:00
Ayaz Hafiz
7421e444b1
Remove unnecessary SubsFmtContent 2022-06-02 09:44:38 -05:00
Ayaz Hafiz
b0c602eb8d
Clippy 2022-06-02 09:44:38 -05:00
Ayaz Hafiz
bde107da49
Remove TagName in favor of explicit TagName or Closure
Note that we still need a `TagOrClosure` enum for phases past mono, but
at least we get rid of the branches in the front end.
2022-06-02 09:44:34 -05:00
Ayaz Hafiz
5e35609369
Remove mono/src/exhaustive.rs 2022-06-01 17:39:16 -05:00
Ayaz Hafiz
a8453b0fca
Fix macro 2022-06-01 13:27:24 -05:00
Ayaz Hafiz
c827349ae2
Simply choosing of the matching variable 2022-06-01 13:18:56 -05:00
Ayaz Hafiz
2c62f9b5ba
s/occurence/occurrence 2022-06-01 13:18:55 -05:00
Ayaz Hafiz
5b7f4ef5ec
Clippy 2022-06-01 13:18:55 -05:00
Ayaz Hafiz
0fa4aa8cbd
Simplify maybe_mark_union_recursive 2022-06-01 13:18:55 -05:00
Ayaz Hafiz
2f29326e7a
Remove piggyback of tag unions for lambda sets 2022-06-01 13:18:55 -05:00
Ayaz Hafiz
b4bca5423b
Remove promotion to recursion var for lambda sets 2022-06-01 13:18:55 -05:00
Ayaz Hafiz
591528d8a3
Handle case where lambda set is unbound 2022-06-01 13:18:55 -05:00
Ayaz Hafiz
c66f989467
Recursive closure layout working again in effect test 2022-06-01 13:18:54 -05:00
Ayaz Hafiz
2e70c9aba4
Getting closer. Checking in for a break. 2022-06-01 13:18:53 -05:00
Ayaz Hafiz
790eb8e20c
Lambda sets don't need extension vars 2022-06-01 13:18:03 -05:00
Ayaz Hafiz
c2a2ce690c
Lift lambda sets as their own type
This prepares for unspecialized lambda set in the type system in
general.
2022-06-01 13:17:22 -05:00
Ayaz Hafiz
3fc95bad90
Remove unused lambda set struct 2022-06-01 13:14:00 -05:00
Folkert de Vries
80492cbb0a
Merge pull request #3164 from rtfeldman/deep-copy-var-loop
make deep_copy_var non-recursive
2022-06-01 20:00:05 +02:00
Folkert
9540aa5b70
make deep_copy_var non-recursive 2022-06-01 17:59:35 +02:00