Dan Knutson
c8287032b6
use reverse utf8 iterator for trailing whitespace
2021-10-25 20:22:37 -05:00
Dan Knutson
8bf252a56e
use mutation for the unique case
2021-10-25 20:22:37 -05:00
Dan Knutson
024a902579
add a slow zig impl
2021-10-25 20:22:37 -05:00
Dan Knutson
fdac5e2bd8
add isWhitespace helper
2021-10-25 20:22:37 -05: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
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
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
Folkert
ad9f0b0609
clippy
2021-10-22 13:07:45 +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
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
Folkert
03144f978f
Revert "clippy"
...
This reverts commit 7773cf9b4d
.
2021-10-21 20:28:18 +02:00
Brian Carroll
1be6fd1222
Switch to fork of parity-wasm that can support bumpalo vectors
2021-10-21 17:14:07 +02:00
Richard Feldman
48505abb08
Merge pull request #1801 from rtfeldman/shritesh/m1-codesign
...
Just enough changes to compile on M1
2021-10-20 22:50:14 -04:00
Richard Feldman
cf76ef1f6f
Merge pull request #1796 from rtfeldman/divTruncate
...
Intrinsics for more types
2021-10-20 21:33:44 -04:00
Shritesh Bhattarai
be9d817830
Just enough changes to compile on M1
2021-10-20 20:07:33 -04:00
Folkert
5c02899535
oops
2021-10-20 23:52:51 +02:00
Folkert
dd38d49335
fix formatting
2021-10-20 19:44:26 +02:00
Folkert
76e26e47f3
more cleanup
2021-10-20 17:05:59 +02:00
Folkert
7735ca21ea
cleanup
2021-10-20 17:03:55 +02:00
Folkert
f8dec9453b
make things static again
2021-10-20 16:58:25 +02:00
Folkert
a072d8d1b1
fix things
2021-10-20 16:56:04 +02:00
Folkert
63b1aaad4e
hook up polymorphic zig builtins
2021-10-20 16:43:39 +02:00
Folkert
ab34c2a55e
generalize all number intrinsics
2021-10-20 16:21:57 +02:00
Folkert
9fc832d8ef
new intrinsic approach
2021-10-20 15:18:02 +02:00
Folkert
bd98ac6dc7
Merge remote-tracking branch 'origin/trunk' into divTruncate
2021-10-19 23:36:03 +02:00
Folkert
78c49d3095
support intrinsics/builtins for more integer types
2021-10-19 21:41:38 +02:00
Brian Carroll
95e38a36b6
Merge pull request #1784 from rtfeldman/wasm_reduce_set_get
...
Improve WasmBackend's output, and its structure
2021-10-19 18:19:10 +02:00
Anton-4
bb715e0f84
cleanup
2021-10-19 17:51:47 +02:00
Anton-4
c7c421b2f5
fixed scope lookup bug
2021-10-19 16:45:28 +02:00
Brian Carroll
401f2ececd
rename some methods
2021-10-18 21:35:16 +02:00
Brian Carroll
e4db06cbdd
Add a debug assertion in code builder
2021-10-18 21:16:54 +02:00
Brian Carroll
64603a480c
Get rid of Option in VM stack model
2021-10-18 21:03:54 +02:00
Brian Carroll
b86849347a
Write test debug output to a path in /tmp
2021-10-18 20:42:13 +02:00
Anton-4
0a77b3f334
debugging wrong id in docs test
2021-10-18 19:58:03 +02:00
Brian Carroll
f242aade86
Rename a variable & fix a bug calling functions that return via stack memory
2021-10-18 18:35:48 +02:00
Brian Carroll
1b97675f1f
Refactor the optimisation for immediately-returned Let statements
...
The original intention was to avoid creating a local when we define
and immediately return a primitive value. But now our default path
does avoids unnecessary locals anyway!
For StackMemory values we do need an optimised path but it's nicer
to just pass a flag to Storage::allocate.
2021-10-18 13:18:10 +02:00
Brian Carroll
2daefc8b32
Name a constant
2021-10-18 13:11:05 +02:00