Chelsea Troy
fc55172219
Fix test typo
2021-10-25 10:45:18 -05:00
Brian Carroll
0aee2c8348
Merge branch 'trunk' into wasm_generate_bytes
2021-10-25 16:36:21 +02:00
Anton-4
39974ea039
Merge branch 'trunk' of github.com:rtfeldman/roc into function_closure_to_mark_node
2021-10-25 14:34:58 +02:00
Brian Carroll
d996eee72e
Pointlessly improve how we handle a crazy edge case, because my brain wouldn't let it go
2021-10-25 13:26:50 +02:00
Brian Carroll
4e098be7fe
Fix a test throwing a Wasm runtime error
2021-10-25 13:04:30 +02:00
Brian Carroll
3f404dd114
clippy
2021-10-25 12:23:24 +02:00
Brian Carroll
ddf66293e9
Fix and refactor number encodings
2021-10-25 12:15:04 +02:00
Chelsea Troy
789cc5acc0
cargo fmt
2021-10-25 00:28:50 -05:00
Chelsea Troy
886f85d3e3
Merge branch 'trunk' into add-list-dropLast
2021-10-25 00:09:09 -05:00
Chelsea Troy
063d7b178b
Figured out why dropLast call was producing an argument mismatch:
...
- Although list_drop_last's LowLevel operation modeling (body) was correct, the defn() CALLED that body with an extra argument for index (a copy-paste error from dropAt).
- List.dropAt works now :)
2021-10-25 00:06:37 -05:00
Brian Carroll
3992850387
Merge branch 'trunk' of github.com:rtfeldman/roc into wasm_generate_bytes
2021-10-24 23:36:12 +02:00
Brian Carroll
b6e442c9ee
Fix locals code gen
2021-10-24 23:36:00 +02:00
Brian Carroll
11f327f722
Fix function call
2021-10-24 23:35:25 +02:00
Brian Carroll
c46e73bd64
Fix test code gen
2021-10-24 23:34:14 +02:00
Brian Carroll
6534da5055
Fix LEB encoding and refactor insertions
2021-10-24 11:54:21 +02:00
Brian Carroll
13577aa9ec
Combine our handmade Code section with other sections from parity_wasm (tests compile but fail)
2021-10-23 17:12:49 +02:00
Brian Carroll
7c398ba238
tweak comment
2021-10-23 13:52:45 +02:00
Brian Carroll
0f8fcb68b1
Merge branch 'trunk' of github.com:rtfeldman/roc into wasm_generate_bytes
2021-10-23 13:50:11 +02:00
Brian Carroll
973626fe2d
Rename FunctionBuilder back to CodeBuilder
2021-10-23 13:48:20 +02:00
Brian Carroll
dbe6d195f7
Delete CodeBuilder
2021-10-23 13:40:10 +02:00
Brian Carroll
74e3239a1c
Switch over to function_builder
2021-10-23 13:39:54 +02:00
Chelsea Troy
9633a5adaa
Fix the build, but List.dropLast itself still doesn't work.
2021-10-23 00:29:13 -05:00
Chelsea Troy
fd83c3b749
Branch the dropLast functionality from dropAt, inserting an index gathered by subtracting 1 from the list length
2021-10-23 00:17:08 -05:00
Brian Carroll
bca9f31c58
Implement insertions for byte-level code gen
2021-10-23 00:02:14 +02:00
Folkert
0ee4076e62
Merge remote-tracking branch 'origin/trunk' into procs-use-vectors
2021-10-22 23:01:12 +02:00
Folkert
127b1495a7
add comment
2021-10-22 23:00:47 +02:00
Folkert
2e773e5f66
turn module_thunks into a slice
2021-10-22 22:59:00 +02:00
Folkert
6a6ea64323
abstract checking of is module thunk
2021-10-22 22:16:52 +02:00
Folkert
6400baf2c1
shrink Procs until the last moment
2021-10-22 21:42:53 +02:00
Brian Carroll
dc1779d41d
Finalisation and serialisation for byte-level function builder
2021-10-22 19:02:03 +02:00
Folkert
eaaf3eb940
simplify monomorphization first steps
2021-10-22 18:12:46 +02:00
Folkert
0529d6dbc6
refactor insert_named
2021-10-22 17:22:15 +02:00
Folkert
9d343ab206
use vector instead of set
2021-10-22 16:57:14 +02:00
Brian Carroll
e55f4e7fa9
Merge branch 'trunk' of github.com:rtfeldman/roc into wasm_bumpalo
2021-10-22 16:57:04 +02:00
Brian Carroll
db43a15759
Fix clippy warning
2021-10-22 16:56:54 +02:00
Brian Carroll
0586f91b04
Reorder arguments of instruction methods
...
Having the opcode first makes it easier to see if it matches the method name
2021-10-22 13:17:18 +02:00
Folkert
ad9f0b0609
clippy
2021-10-22 13:07:45 +02:00
Brian Carroll
fbceafa8dc
Get all instructon methods compiling
2021-10-22 12:59:19 +02:00
Folkert
da3787feb8
Merge remote-tracking branch 'origin/trunk' into remove-call-result-again
2021-10-22 12:57:36 +02:00
Folkert
10b9307ab6
centralize calling roc functions in llvm
2021-10-22 12:56:58 +02:00
Folkert
e6edfda9a5
refactor call to roc function
2021-10-22 12:32:37 +02:00
Folkert
83de4b55ef
remove another instance of RocCallResult
2021-10-22 12:26:04 +02:00
Brian Carroll
4f958e8a80
Get most common instruction patterns to compile
2021-10-22 12:01:22 +02:00
Brian Carroll
4563e2af49
Get function_builder compiling
2021-10-22 10:38:53 +02:00
Chelsea Troy
49a832d757
Add dropLast to tests and parser
2021-10-21 23:02:26 -05:00
Brian Carroll
dc80623d45
Sketch out methods for byte-level instructions. No macros yet.
2021-10-21 23:21:56 +02:00
Brian Carroll
e168d175c4
Start writing a byte-level function_builder
2021-10-21 21:30:51 +02:00
Brian Carroll
5ea313f256
update gen_wasm to use bumpalo::collections::Vec where possible
2021-10-21 21:14:15 +02:00
Folkert
5507743776
pass arguments as owned again, borrowed caused regressions
2021-10-21 21:09:48 +02:00
Folkert
0a12ce896f
Revert "make list inc/dec non-recursive (except when freeing the list)"
...
This reverts commit 19eadbfe70
.
2021-10-21 20:28:32 +02:00