Commit graph

228 commits

Author SHA1 Message Date
faldor20
a7308130cf
clippy on everything 2024-12-12 20:54:25 +10:00
Brendan Hansknecht
37c6330c6f
cleanup when expects are run 2024-12-11 15:15:46 -08:00
Richard Feldman
bc0c9250f9
Convert unused dbg!()s to eprintln!()s
This makes it nicer to work with dbg! normally,
because grepping the code base for dbg!() reveals
only the usages of it that are currently active.
2024-12-01 23:10:35 -05:00
Agus Zubiaga
2e96aca0fd
Merge branch 'main' into specialize-exprs 2024-11-23 01:48:51 -03:00
Richard Feldman
44d00e1f13
Updates for making soa no_std 2024-10-21 22:10:43 -04:00
Richard Feldman
98535bfbce
wip 2024-10-20 11:00:58 -04:00
Brendan Hansknecht
e6a149642d
minor fix 2024-10-07 21:16:30 -07:00
Brendan Hansknecht
a9d1327dd1
Enable multiple functions exposed to the host 2024-10-07 21:16:30 -07:00
Brendan Hansknecht
507d339691
fix infinite recursion in dev rc generation 2024-07-15 09:04:50 -07:00
Brendan Hansknecht
0533578562
add missed RocRefcounted 2024-07-13 10:39:58 -07:00
Brendan Hansknecht
b28e6b343a
cleanup gen_refcount and add new test based on map2 2024-07-13 10:39:56 -07:00
Brendan Hansknecht
a8bef30392
fix gen_refcount tests 2024-07-13 10:39:55 -07:00
Brendan Hansknecht
ad76fa2a4e
use calloc to make wasm tests consistent 2024-07-13 10:39:55 -07:00
Brendan Hansknecht
93fab26c01
Add a RocRefcounted trait in roc_std
This is required to properly handle refcounting of RocList.
Without it, we can't tell if we need to get the length from the heap.
That said, it isn't a pretty solution.

I think dealing with generating bespoke type in glue would feel nicer than this but be much more work.
It also would deal with the issue of implementations in the bitcode not matching external libraries.
That said, it would require exposing way more symbols from roc for each monomophorphized list variant.
2024-07-13 10:39:51 -07:00
Agus Zubiaga
ec23c9a41b
Add missing argument in test_gen helpers/wasm 2024-06-10 10:18:51 -03:00
Agus Zubiaga
a1b84f01f5
Add missing argument in test_gen helpers/dev 2024-06-09 15:25:01 -03:00
Agus Zubiaga
4e5fdfbf52
Handle root type when loading from str 2024-06-08 19:46:41 -03:00
Anton-4
ec874655dd
apply Ayaz review suggestions 2024-04-30 19:34:21 +02:00
Anton-4
99ca3f545f
clippy 2024-04-16 20:02:08 +02:00
Brendan Hansknecht
6dc5bfb1b7
Use roc_target over target_lexicon
Tailors a target class for our needs.
Replaces tons of uses across the entire compiler.
This is a base for later adding new targets like thumb.
2024-03-31 10:50:26 -07:00
Richard Feldman
30712d352a
Silence some unused test macro warnings 2024-02-14 20:16:39 -05:00
Richard Feldman
3aec2a9182
Address some unused warnings 2024-02-14 13:47:26 -05:00
Folkert
73d4a4ee56
wasm: incorrect step used to read RocList elements 2024-01-30 18:51:14 +01:00
Folkert
919a51137a
make ROC_DEV_WRITE_OBJ work in more cases 2024-01-27 17:46:19 +01:00
Brendan Hansknecht
749faf4850
a few missed variable renames 2023-12-04 14:57:47 -08:00
Brendan Hansknecht
dbcb6ca5da
clippy 2023-12-04 13:53:56 -08:00
Brendan Hansknecht
fc09c3b002
remove debugir 2023-12-04 13:50:53 -08:00
Brendan Hansknecht
496cd6710a
fix debug info and add it all to the llvm backend 2023-12-04 12:55:33 -08:00
Brendan Hansknecht
3e66254b25
update zig and rust platforms to have correct roc_panic and roc_dbg 2023-11-29 21:49:34 -08:00
Brendan Hansknecht
f5fb01fd53
Get tests passing
Add roc_dbg to some platforms.
Also start updating some roc_panic impls.
2023-11-29 21:05:49 -08:00
Brian Carroll
5719384ed9
Get rid of VM stack storage 2023-11-05 23:20:46 +00:00
Brian Carroll
c50925240d
Merge pull request #5921 from roc-lang/wasm-repl-crash
report roc_panic to the user in the web repl
2023-10-25 19:22:10 +01:00
Anton-4
845da6a5c9
clippy 2023-10-23 13:50:35 -07:00
Anton-4
7da37c0e98
rustfmt 2023-10-23 13:50:35 -07:00
Brian Carroll
6e2d7e4a8d
Improve Wasm debug instructions 2023-10-23 13:50:35 -07:00
Folkert
eb61d352f5
changes after review 2023-10-20 18:04:07 +02:00
Folkert
47d4335cda
cleanup test-gen-dev macro code 2023-10-17 20:02:00 +02:00
Luke Boswell
99369dec85
implement roc_panic aarch64 2023-10-09 15:24:37 +02:00
Folkert
821cc0cfd8
env variable for writing out the obj file 2023-09-16 00:51:14 +02:00
Folkert
f30b0bdf68
disable some debugging stuff 2023-09-15 23:10:43 +02:00
Folkert
cfe21a4894
safe generated object file 2023-09-15 23:07:27 +02:00
Folkert
63ff495763
call the main function directly on aarch64? 2023-09-15 23:07:27 +02:00
Folkert
bcfab8d09e
fix relocation size 2023-09-15 23:07:26 +02:00
Luke Boswell
6ecc72f68e
log location of gen-test object location 2023-09-03 21:32:36 +02:00
Folkert
7fb4b60b21
move around hostexposedalias logic 2023-08-09 15:09:03 +02:00
Folkert
8d4e83c3bb
remove lazy_static dependency in test_gen 2023-08-05 18:37:37 +02:00
Folkert
4cfa7c124d
better way of fetching the error message 2023-07-30 20:44:14 +02:00
Luke Boswell
c4b8a6e8f2
windows patches 2023-07-30 20:44:13 +02:00
Folkert
863ba06269
disable development flag 2023-07-30 20:44:12 +02:00
Folkert
d5bf526d66
fix calling convention problems 2023-07-30 20:44:11 +02:00