Brian Carroll
|
c00b43c36b
|
wasm: Move some of the DCE code from CodeSection to WasmModule
|
2022-06-07 23:52:33 +01:00 |
|
Brian Carroll
|
dfda992d93
|
wasm: first draft DCE for imports
|
2022-06-07 22:01:17 +01:00 |
|
Brian Carroll
|
87deb1c13c
|
wasm: fix bug in dead code elimination
|
2022-06-06 23:17:47 +01:00 |
|
Brian Carroll
|
87cb9298d9
|
wasm: insert _start function to call host main
|
2022-06-06 23:17:46 +01:00 |
|
Anton-4
|
77f20afe63
|
clear local cache dir as well
|
2022-06-06 17:20:23 +02:00 |
|
Brian Carroll
|
27ecf4424f
|
wasm: get hello-world to build (but not run yet!)
|
2022-06-06 15:23:36 +01:00 |
|
Brian Carroll
|
e660add064
|
wasm: Don't bail after the first symbol exposed to JS
|
2022-06-06 14:43:49 +01:00 |
|
Brian Carroll
|
882640b20d
|
clippy
|
2022-06-06 12:47:55 +01:00 |
|
Brian Carroll
|
d045f3be7b
|
Merge branch 'trunk' of github.com:rtfeldman/roc into wasm-link-host-to-app-calls
|
2022-06-06 12:00:16 +01:00 |
|
Brian Carroll
|
24d5e06ca6
|
wasm: PR review changes
|
2022-06-06 11:59:55 +01:00 |
|
Brian Carroll
|
eaae7f1004
|
wasm: Deal with hosts where Roc main is called from JS (also test_gen & REPL!)
|
2022-06-06 11:37:44 +01:00 |
|
Brian Carroll
|
84aab36284
|
wasm: more linking improvements
|
2022-06-06 10:55:57 +01:00 |
|
Brian Carroll
|
8606c070d2
|
wasm: Remove imported tables and memories, and make sure stack pointer is the only imported global
|
2022-06-06 10:54:56 +01:00 |
|
Brian Carroll
|
376cbbc4b2
|
wasm: Make NameSection easier to manipulate
|
2022-06-06 10:54:56 +01:00 |
|
Brian Carroll
|
66c0c423b3
|
wasm: Rework host-to-app linking code
|
2022-06-06 10:54:56 +01:00 |
|
Brian Carroll
|
57998491da
|
wasm: Make FunctionSection easier to manipulate, rather than opaque bytes
|
2022-06-05 20:38:19 +02:00 |
|
Brian Carroll
|
3253f8a976
|
wasm: Rename some linking symbol variants to be more accurate
|
2022-06-05 20:38:19 +02:00 |
|
Folkert de Vries
|
49c5dbf317
|
Merge pull request #3178 from rtfeldman/wasm-remove-linker-output
Wasm: remove code for emitting linker data
|
2022-06-05 18:17:40 +02:00 |
|
Brian Carroll
|
8aa3cd7fcf
|
wasm: delete some unused code
|
2022-06-05 16:08:37 +02:00 |
|
Brian Carroll
|
a1ef2d913d
|
wasm: README notes and diagram for linking
|
2022-06-05 08:48:25 +02:00 |
|
Ayaz Hafiz
|
c17525aa4d
|
Differentiate type variables with the same rigid name during pretty-printing
|
2022-06-04 15:29:52 -05:00 |
|
Brian Carroll
|
19dc07f01e
|
wasm: Implement function index relocations
|
2022-06-04 20:42:34 +02:00 |
|
Brian Carroll
|
d42cbd052f
|
wasm: print out the host path in tests
|
2022-06-04 20:26:12 +02:00 |
|
Brian Carroll
|
1d585e6732
|
wasm: link host-to-app calls
|
2022-06-04 20:26:11 +02:00 |
|
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 |
|
Folkert
|
2fc4ad109f
|
Merge remote-tracking branch 'origin/trunk' into wasm-host-with-linker-data
|
2022-06-03 21:28:55 +02:00 |
|
Ayaz
|
9f6da8df53
|
Merge pull request #3162 from rtfeldman/remove-ena
remove ena dependency
|
2022-06-03 13:56:03 -05:00 |
|
Folkert
|
a5b3f9fb50
|
remove unneeded use of impl Borrow
|
2022-06-03 19:15:26 +02:00 |
|
Folkert de Vries
|
84970f3c74
|
Merge pull request #3169 from rtfeldman/unspecialized-lambda-set
Add Type::UnspecializedLambdaSet variant
|
2022-06-03 18:43:00 +02:00 |
|
Folkert
|
d4efd0d167
|
fix merge conflict
|
2022-06-03 18:18:53 +02:00 |
|
Folkert
|
fd233764c2
|
Merge remote-tracking branch 'origin/trunk' into remove-ena
|
2022-06-03 18:16:19 +02:00 |
|
Ayaz Hafiz
|
fd08918ef9
|
Simplify mut iter
|
2022-06-03 10:28:48 -05:00 |
|
Folkert de Vries
|
cc4fafdbd6
|
Merge pull request #3152 from rtfeldman/hello_swift_fix
fix hello swift
|
2022-06-03 17:12:54 +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 |
|