Commit Graph

611 Commits

Author SHA1 Message Date
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
Richard Feldman
1ef5d785c0
Remove no-longer-necessary ReferenceCount uses in wasm 2022-05-26 11:18:06 -04:00
Brian Carroll
44bca1c8c5
clippying & fmt'ing 2022-05-26 00:27:18 +01:00
Brian Carroll
11c1c92cc1
wasm: self-review edits 2022-05-25 23:11:37 +01:00
Brian Carroll
4300ef8b47
wasm: cleanup Section trait 2022-05-25 22:40:46 +01:00
Brian Carroll
da4529ab16
Clippyyy, Clippyyy, Clippyyy, the bush kangaroo... 2022-05-25 22:17:48 +01:00
Brian Carroll
07b83b1999
wasm: delete preload functions 2022-05-25 22:04:59 +01:00
Brian Carroll
adc16e1db1
wasm: convert CodeSection preload to parse 2022-05-25 21:57:04 +01:00
Brian Carroll
6ef445dc3f
wasm: delete ImportSection::append, which can never be called 2022-05-25 21:36:15 +01:00
Brian Carroll
731a227c61
Merge branch 'trunk' of github.com:rtfeldman/roc into wasm-parser-trait 2022-05-25 21:15:08 +01:00
Brian Carroll
db9881bbfb
wasm: use Parse instances for most sections (CodeSection todo) 2022-05-25 08:35:05 +01:00
Brian Carroll
1219af2664
wasm: implement Parse for Function section 2022-05-25 08:21:50 +01:00
Brian Carroll
2313ee2259
Parse ImportSection 2022-05-24 08:12:56 +01:00
Brian Carroll
cbf8c841f7
Parse TypeSection 2022-05-24 08:12:55 +01:00
Brian Carroll
dccdce839e
wasm: Create Parse instances for all Sections in the wasm file 2022-05-23 23:12:10 +01:00
Richard Feldman
4eec34becf
Update to use new square brace formatting 2022-05-22 23:15:54 -04:00
Brian Carroll
873d9d4e06
wasm: create separate steps for parsing the host and compiling the app 2022-05-22 20:49:16 +01:00
Brian Carroll
84a3ac2ef6
Replace byte slices with str 2022-05-22 19:37:06 +01:00
Brian Carroll
c16a5ad8ae
wasm: Create ParseError type 2022-05-22 15:37:47 +01:00
Brian Carroll
66c78ceed5
Replace some helper functions with Parse trait instances 2022-05-22 15:37:47 +01:00
Brian Carroll
8114ec60c1
Start using Result to handle Wasm module parse failures 2022-05-22 09:36:33 +01:00
Brian Carroll
fc5d71c20c
wasm: Create parse module and move SkipBytes trait into it 2022-05-21 10:53:50 +01:00
Richard Feldman
49aea9d639
Use [u8; 16] to avoid number alignment bumps 2022-05-21 00:53:47 -04:00
Anton-4
0f59f3097a
cargo fix --edition 2022-05-16 17:04:17 +02:00
Brian Carroll
aaea254e8f
Pass precompiled host bytes to gen_wasm in CLI 2022-05-15 11:11:08 +01:00
Richard Feldman
fd40fed937
Fix a bunch of errors from clippy --tests 2022-05-10 15:21:48 -04:00
Richard Feldman
df7df4ccf8
Merge branch 'trunk' into mfonism/rename-num-float-type-to-frac 2022-05-08 20:54:33 -04:00
Folkert de Vries
5d3b83f5a6
Merge pull request #2268 from rtfeldman/update_zig_09
Update to Zig 0.9 + LLVM 13
2022-05-08 23:29:45 +02:00
Mfon Eti-mfon
9068c2414e
Rename float functions and vars 2022-05-08 18:42:12 +01:00
jonas schell
532055bf3b implement NumPowInt 2022-05-08 14:17:11 +02:00
Folkert
81caa96af2
Merge remote-tracking branch 'origin/trunk' into update_zig_09 2022-05-07 19:38:04 +02:00
Folkert
9e80673b1d
implement Num.round in the wasm backend like how the dev backend does it 2022-05-06 20:41:02 +02:00
Folkert
07383e96f0
Merge remote-tracking branch 'origin/trunk' into i/2792 2022-05-06 20:17:53 +02:00
Folkert
64b633bea6
make round return an integer 2022-05-06 20:17:40 +02:00
Folkert
5755475b3a
add ListIsUnique lowlevel operation 2022-05-06 13:56:35 +02:00
Brian Carroll
07b3c74713
Refactor for faster Rust compile times 2022-05-02 04:28:33 -07:00
Jared Cone
c7459e9888
Added support for unsigned gt/lt to wasm.
Breaks some other tests, pushing now for sharing
2022-05-02 04:28:33 -07:00
Folkert
b7b86c0cde
Merge remote-tracking branch 'origin/trunk' into update_zig_09 2022-04-30 23:34:48 +02:00
Folkert
76754e4d2a
use &str instead of Ident in some key places 2022-04-30 20:43:12 +02:00
Folkert
d3ef35d935
rename 2022-04-26 11:33:26 +02:00
Folkert
af6c3231f3
Improved IdentIds 2022-04-25 23:15:57 +02:00
Brian Carroll
f8156ffd53
Merge pull request #2834 from rtfeldman/wasm-list-map-n
Wasm List.mapN
2022-04-20 14:47:04 +01:00
Brian Carroll
ae05e870af wasm: Fix Wasm type mismatch for empty closure data in List.mapN 2022-04-13 22:05:57 +01:00
Brian Carroll
bdad1a5161 wasm: Extract List.mapN logic into a helper function 2022-04-13 21:38:54 +01:00