Commit graph

474 commits

Author SHA1 Message Date
Ayaz Hafiz
50826d1a83
Inline interners into the layout interner module
I realized that we'll need to make the layout interner more complicated
to support things like recursive pointers pointing to their parents and
to support lambda set layout caching. Since the layout interner is the
only user of intern crate right now anyway, just inline the whole thing.
2023-01-03 14:19:39 -06:00
Ayaz Hafiz
b60d5c0251
Push wrapped layout interners through 2023-01-03 10:51:33 -06:00
Ayaz Hafiz
947158b17e
Stub out layout interners into own module 2023-01-03 10:07:12 -06:00
Ayaz
ea53a50447
Merge pull request #4836 from roc-lang/intern-layouts-2
Intern list element layouts and thread mut layout interner through LLVM backend
2022-12-29 18:41:35 -06:00
Ayaz
7076c889a5
Merge pull request #4828 from roc-lang/refactor-build
Refactor build
2022-12-29 18:41:22 -06:00
Folkert
92da3973e7
remove argument from load_and_typecheck 2022-12-29 16:50:19 +01:00
Ayaz Hafiz
e4b5252e51
List takes interned element 2022-12-29 08:52:37 -06:00
Ayaz Hafiz
7ab7fdfa7b
Push interned layouts as mut throughout the backend, and intern box layouts 2022-12-28 18:51:26 -06:00
Folkert
d287eafa3a
remove F128 2022-12-14 23:28:38 +01:00
Brendan Hansknecht
759130952d
fix glue generation for Dict and Set 2022-12-07 20:53:50 -08:00
Brendan Hansknecht
436bfc41ed
disable glue test and update mono test 2022-12-03 13:17:36 -08:00
Richard Feldman
7d2fa63dca
Make roc_cache_dir() panic if it can't find $HOME 2022-11-20 20:54:03 -05:00
Richard Feldman
721841fa1f
Provide roc_cache_dir everywhere 2022-11-20 19:53:48 -05:00
Richard Feldman
36178b5f59
REVERT ME - add some debug info 2022-11-16 17:07:04 -05:00
Richard Feldman
58e672749c
Fix glue getter name synchronization 2022-11-16 17:06:21 -05:00
Richard Feldman
4ba59077b9
Return glue getters via pointer 2022-11-16 14:30:06 -05:00
Richard Feldman
53ab17d0e9
contains_functions -> has_varying_stack_size 2022-11-16 13:55:06 -05:00
Richard Feldman
781c151f17
Fix some more glue for getters 2022-11-16 13:26:45 -05:00
Richard Feldman
59e29bbb91
Allow unused variables in glue header 2022-11-16 13:26:09 -05:00
Richard Feldman
9b04480fdc
Make naming more consistent 2022-11-16 11:22:12 -05:00
Richard Feldman
b3f9ff562d
Silence some warnings 2022-11-16 10:51:57 -05:00
Richard Feldman
42f2d0941d
Fix some exhaustiveness errors with todo! for now 2022-11-16 10:38:27 -05:00
Richard Feldman
a9b116cbeb
Fix some exhaustivness errors in glue 2022-11-16 09:42:56 -05:00
Richard Feldman
8fc635efc3
Fix some glue borrow checker errors 2022-11-16 09:37:54 -05:00
Richard Feldman
2db6856dbf
Fix remaining glue type mismatches name: _, 2022-11-15 21:18:11 -05:00
Richard Feldman
66644f26a5
Use RocStructFields correctly in more places 2022-11-15 21:00:17 -05:00
Richard Feldman
5d062f901c
Fix a bunch of type mismatches 2022-11-15 20:48:11 -05:00
Richard Feldman
955ed673e3
Drop variant_size idea 2022-11-15 20:18:55 -05:00
Richard Feldman
f4c9d245b7
Revise Rust glue derive logic 2022-11-15 20:18:43 -05:00
Richard Feldman
6d54ec0ab8
Remove RocTags from glue 2022-11-15 20:09:25 -05:00
Richard Feldman
2de1b3f51d
Don't always derive PartialEq in glue 2022-11-15 20:09:01 -05:00
Richard Feldman
e5f4e08fec
wip 2022-11-15 16:41:51 -05:00
Richard Feldman
2122bcb563
Restore discriminant_offset 2022-11-15 12:17:40 -05:00
Richard Feldman
d3d21630e8
Merge remote-tracking branch 'origin/main' into glue-getters-rtfeldman 2022-11-15 12:16:19 -05:00
Richard Feldman
8e2bbee377
Simplify how glue_procs are handled 2022-11-13 23:10:23 -05:00
Richard Feldman
746b2fdeb1
Further incorporate closures into glue 2022-11-12 18:08:30 -05:00
Richard Feldman
5b04c0e31d
Take closures into account with has_float_help 2022-11-12 15:51:05 -05:00
Richard Feldman
b943537068
s/glue_procs/glue_getter_procs for clarity 2022-11-12 04:19:55 -05:00
Richard Feldman
b06d90c405
Fix some single tag payload glue 2022-11-12 04:19:45 -05:00
Richard Feldman
c29d9ef682
Drop unused imports 2022-11-12 02:59:55 -05:00
Richard Feldman
3c80d8ee13
Thread glue procs into Types::new 2022-11-12 02:59:06 -05:00
Richard Feldman
d6490b8731
Don't hardcode glue to assume UNIX as the OS 2022-11-12 02:44:51 -05:00
Brian Carroll
b64514d7e4
Fix web REPL error formatting by routing the active Palette everywhere 2022-11-11 23:38:08 +00:00
Richard Feldman
99420f65ed
Merge branch 'glue-exposed' into glue-getters 2022-11-11 17:02:27 -05:00
Richard Feldman
cc190374b5
Inline Env::vars_to_types 2022-11-11 16:54:29 -05:00
Richard Feldman
7667aebebb
Avoid an allocation on variables 2022-11-11 16:53:56 -05:00
Richard Feldman
0c78716696
Fix glue for exposed-to-host-symbols 2022-11-11 16:43:36 -05:00
Richard Feldman
aca942864d
Extract Types::new and hide Env 2022-11-11 16:43:36 -05:00
Richard Feldman
1e7ffae62b
Only generate glue for exposed-to-host symbols 2022-11-11 16:42:28 -05:00
Richard Feldman
a0e450cadd
wip 2022-11-11 16:37:49 -05:00