Commit graph

87 commits

Author SHA1 Message Date
Anton-4
eee85fa45d
moved all crates into seperate folder + related path fixes 2022-07-01 17:37:43 +02:00
Brian Carroll
d7ac8cfcbc
wasm: implement addOrPanic in Zig 2022-06-22 22:11:44 +01:00
Folkert
a69bf971f0
Merge remote-tracking branch 'origin/trunk' into update_zig_09 2022-04-06 15:38:15 +02:00
Folkert
68536e4026
Merge remote-tracking branch 'origin/trunk' into list-str-capacity 2022-04-04 19:55:04 +02:00
Brendan Hansknecht
3ef40e2e82 use exhaustive refcount pattern match 2022-04-03 13:29:16 -07:00
Brendan Hansknecht
a1c469232f simplify allocate_with_refcount to be closer to the old llvm version 2022-04-01 16:27:42 -07:00
Brendan Hansknecht
a4f0ed1990 flip max for min 2022-04-01 15:07:00 -07:00
Brendan Hansknecht
3606543ac0 keep normal as the default refcounting 2022-04-01 15:03:16 -07:00
Brendan Hansknecht
2093405ffc make sure the rodata refcounts aren't incremented 2022-04-01 15:02:01 -07:00
Brendan Hansknecht
cf238862f4 fix formatting 2022-04-01 14:12:31 -07:00
Brendan Hansknecht
577282ced3 have zig allocate all refcounts 2022-04-01 14:06:28 -07:00
Brendan Hansknecht
805e4ef5d3 change refcount type to enum so none can be select 2022-04-01 13:48:14 -07:00
Brendan Hansknecht
56dc503d11 fix formatting 2022-03-31 22:26:18 -07:00
Brendan Hansknecht
a75ecb2883 add variable to enable atomic refcounts for testing 2022-03-31 22:18:25 -07:00
Brian Carroll
4878c701ae Fix Zig builtins for 32-bit targets 2022-03-10 23:26:58 +00:00
rvcas
94e4c2c381
fix: c_void is gone use anyopaque 2022-02-09 19:04:09 -05:00
rvcas
0124e4d4b1
Merge branch 'trunk' into update_zig_09 2022-02-09 18:42:24 -05:00
Richard Feldman
778d32f6b2
Acknowledge possibility of roc_alloc failing 2022-02-02 19:25:08 -05:00
Richard Feldman
9b05d8dd50
Move expect zig code out of utils 2022-02-02 19:15:47 -05:00
Richard Feldman
06203163eb
Use mutex more in expect failures 2022-02-02 18:59:34 -05:00
Richard Feldman
c21741a7e0
zig fmt 2022-02-01 08:37:51 -05:00
Richard Feldman
a55ff62e6c
Merge remote-tracking branch 'origin/trunk' into expect-dont-panic 2022-01-30 20:22:26 -05:00
Chelsea Troy
4f8d0776b3 We got a test working for panicking with the appropriate number fo failures. Ultimatly we want:
+ An error maessage that says what the failures were
+ Not panicking (so these are effectively error productions)
2022-01-30 18:55:09 -06:00
Chelsea Troy
085c02ffee Infrastructure to test and implement the replacement of an 'expect' failure with an error production
Last command run was 'cargo test expect_fail'
2022-01-16 22:01:22 -06:00
Richard Feldman
74cca25aec Use global mutex over threadlocal 2022-01-02 22:53:48 -05:00
Richard Feldman
ac67eaf837 Use deinitFailures in expectFailure test 2022-01-02 22:43:15 -05:00
Richard Feldman
bfdf0bf916 Use roc_realloc in expect failures 2022-01-02 22:43:15 -05:00
Richard Feldman
afca1b9ee5 Revert "Use std.testing.free over destroy"
This reverts commit 7ba074353028907450c0eaad0da5cc32c4f38df8.
2022-01-02 22:43:15 -05:00
Richard Feldman
8c267f937b Use std.testing.free over destroy 2022-01-02 22:43:15 -05:00
Richard Feldman
e324366ecf zig fmt 2022-01-02 22:43:15 -05:00
Chelsea Troy
bf582b8120 Add C implementations for testing functions in zig 2022-01-02 14:55:56 -06:00
Chelsea Troy
e95c5f9a9d Include a public API for the failure collection 2022-01-02 14:08:25 -06:00
Chelsea Troy
39f6bde62c Install a temporary memory allocation solution to make the test work 2022-01-02 14:03:10 -06:00
Chelsea Troy
a6e2f1152e The tests run, but they don't work 2022-01-02 13:29:08 -06:00
rvcas
923c5c7c28 fix(zig): resolve v0.9 compilation issues 2021-12-23 15:33:44 -05:00
Brian Carroll
3c74acafa4 More precise alignCast (allow for 32-bit targets) 2021-12-16 11:45:54 +00:00
Chelsea Troy
b96ebe0457 Starts memory allocation for our collection of failures for the expect keyword
+ BLOCKED: @lucas how do we initialize an empty slice in Zig?
2021-12-12 19:02:18 -06:00
Brian Carroll
6e5acadfea Create new lowlevels for refcounting 2021-11-30 09:57:00 +00:00
Folkert
7fc79c3d40 fix typo 2021-11-21 19:20:05 +01:00
Kevin Sjöberg
f6d055dc62 Correct minor spelling mistakes 2021-11-06 15:29:08 +01:00
Locria Cyber
791c46fe0d Remove deprecated zig features 2021-10-26 20:21:55 -04:00
Folkert
018348bd83 make Str.fromUtf8 in-place 2021-10-03 12:13:17 +02:00
Folkert
cd9b32ba65 fix list decref 2021-09-10 21:53:57 +02:00
Folkert
5e68d31afc expose decref_pointer_check_NULL 2021-09-10 20:42:25 +02:00
Folkert
3adfbf3459 fix bug in realloc on 32-bit platforms 2021-09-04 13:46:30 +02:00
Folkert
cde8f5cbd4 optimize RC 2021-09-02 21:29:24 +02:00
Folkert
4e39543054 simplify/optimize decref logic 2021-09-01 23:07:56 +02:00
Folkert
7aac6b6750 cleanup 2021-09-01 22:52:39 +02:00
Folkert
5cb7dbd3cc use zig's decref instead of an LLVM implementation 2021-09-01 16:58:05 +02:00
Folkert
3ef4a40f45 hopefully get the logic right this time 2021-09-01 15:56:50 +02:00