Commit graph

820 commits

Author SHA1 Message Date
J.Teeuwissen
16da790fac
Order by index + clippy 2023-05-27 14:52:25 +02:00
J.Teeuwissen
378a298b45
move record index to start of update 2023-05-27 14:42:37 +02:00
J.Teeuwissen
f6ab5f5552
updated drop_specialization for boxes 2023-05-23 14:45:44 +02:00
Ayaz Hafiz
a67c148be7
Convert LayoutRepr::Struct into a tuple variant 2023-05-16 11:58:16 -05:00
Folkert de Vries
f2a033d0da
Merge pull request #5406 from JTeeuwissen/cross-layout-reuse
Cross layout reuse
2023-05-15 15:20:23 +02:00
J.Teeuwissen
e26a1f2aaa
fixed resetref wasm 2023-05-15 00:53:14 +02:00
J.Teeuwissen
93030fd3c8
ResetRef reachable 2023-05-15 00:53:14 +02:00
J.Teeuwissen
99dae2fd80
expect as borrowed 2023-05-15 00:53:13 +02:00
Folkert
c449582951
clippy 2023-05-15 00:53:12 +02:00
J.Teeuwissen
e9c77a1d30
using DecRef again 2023-05-15 00:53:11 +02:00
J.Teeuwissen
9e74a2cc8c
fixed rc for debug/expect 2023-05-15 00:53:11 +02:00
J.Teeuwissen
f5feec1e6c
right param 2023-05-15 00:53:11 +02:00
J.Teeuwissen
ec731443c4
moved drop specialization up 2023-05-15 00:53:07 +02:00
J.Teeuwissen
c991451265
added layout 2023-05-15 00:51:33 +02:00
J.Teeuwissen
d82f3ee09d
Start reuse similar layouts 2023-05-15 00:51:33 +02:00
Brian Carroll
cfcd2a5289
Merge pull request #5312 from roc-lang/dev-refcount-seamless-slice
Dev refcount seamless slice
2023-05-14 18:37:23 +01:00
Folkert
c084ff06b3
allow unused 2023-05-14 18:25:57 +02:00
Folkert
79daa102a0
simplify list RC joinpoint 2023-05-14 18:13:44 +02:00
Folkert
12975bdffb
shift pointer by one if string slice 2023-05-14 18:02:51 +02:00
Folkert
c19ad4ecfd
fix list decrement in dev backend 2023-05-14 15:20:42 +02:00
Folkert
1c6b55584a
fix list inc/dec wrt slices 2023-05-14 15:20:42 +02:00
Folkert
736b7c6a83
inc/dec string slices 2023-05-14 15:20:41 +02:00
Folkert
62dac6bdf8
don't calculate RC pointer in STR decrement function
we now decrement based on the data pointer; further logic is all in zig now
2023-05-14 15:20:41 +02:00
Brian Carroll
17d8ef2aa7
Support refcounting Str seamless slices for dev backends 2023-05-14 15:20:40 +02:00
Brian Carroll
5c53530c81
Support refcounting List seamless slices for dev backends 2023-05-14 15:20:40 +02:00
Ayaz Hafiz
1b84cbafe3
Only compare reprs in gen_dev 2023-05-11 12:48:38 -05:00
Ayaz Hafiz
931d26206f
Only check for repr equality in codegen 2023-05-11 09:23:45 -05:00
Ayaz Hafiz
8ca71c7eda
Get started with semantic layouts for tag unions 2023-05-10 18:47:10 -05:00
Ayaz Hafiz
4d50817968
Preserve semantic when reifying recursion layouts 2023-05-10 17:29:00 -05:00
Ayaz Hafiz
94203ca6d9
Preserve semantic when fixing rec pointer 2023-05-10 17:25:15 -05:00
Ayaz Hafiz
fa787b9b48
Unused imports 2023-05-10 17:25:05 -05:00
Ayaz Hafiz
49b8886b82
Hide semantic repr in layout 2023-05-10 17:24:45 -05:00
Ayaz Hafiz
31c9cc8227
Hide away SemanticRepr definition 2023-05-10 17:10:58 -05:00
Ayaz Hafiz
a37a0f1770
DbgDeep for semantic reprs 2023-05-10 17:09:50 -05:00
Ayaz Hafiz
4296d5a349
Drop Layout::struct_no_name_order 2023-05-10 15:58:51 -05:00
Ayaz Hafiz
1170b542b6
Remove field_order_hash from struct layouts 2023-05-10 15:49:30 -05:00
Ayaz Hafiz
43d4135dc8
Semantic layouts for tuples 2023-05-10 15:40:44 -05:00
Ayaz Hafiz
c06ffc434b
Begin generating semantic reprs for records 2023-05-10 15:38:25 -05:00
Ayaz Hafiz
6714a6fd92
Use LayoutRepr directly when possible 2023-05-10 15:28:11 -05:00
Ayaz Hafiz
7b2d149deb
Move repr-specific functions to LayoutRepr and impl deref 2023-05-10 15:26:31 -05:00
Ayaz Hafiz
58fe2bb4e0
Ignore all semantic layouts for now 2023-05-10 15:21:01 -05:00
Ayaz Hafiz
f100e8753c
Introduce the concept of SemanticRepr 2023-05-10 13:51:04 -05:00
Ayaz Hafiz
c3eeb5e2cc
Wrap layouts in a LayoutRepr constructor
Part 1 of support semantic layout representations.
2023-05-10 13:22:10 -05:00
Folkert
6091ccd3b0
enable list_ends_with test for dev backend 2023-05-07 20:31:47 +02:00
Folkert
72a997f1bf
move ptr equality check under length equality check 2023-05-07 20:31:47 +02:00
Folkert
a4be750a3a
properly load pointers before comparison 2023-05-07 20:31:47 +02:00
Folkert de Vries
deb1e9952d
Merge pull request #5365 from roc-lang/dev-backend-cli
Dev backend list tests
2023-05-07 14:47:39 +02:00
Folkert de Vries
ec21f19826
Merge pull request #5374 from GabrielDertoni/remove-needless-string-alloc
refactor: remove needless string allocation in pretty printer
2023-05-06 00:34:48 +02:00
Folkert
6ed899d8be
indirec inc/dec generation in mono helpers 2023-05-05 15:02:21 +02:00
Richard Feldman
df0ab01128
Merge pull request #5348 from basile-henry/basile/num-is-nan
Implement builtins for Num.isNan, Num.isInfinite, and Num.isFinite
2023-05-05 06:15:18 -04:00