nullable unwrapped for the dev backend

This commit is contained in:
Folkert 2023-05-31 23:14:37 +02:00
parent 0adf075123
commit f6fafdb019
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
8 changed files with 198 additions and 10 deletions

View file

@ -305,6 +305,10 @@ pub fn isUnique(
const isizes: [*]isize = @intToPtr([*]isize, masked_ptr);
if (DEBUG_INCDEC and builtin.target.cpu.arch != .wasm32) {
std.debug.print("| is unique {*}\n", .{&bytes[0]});
}
const refcount = (isizes - 1)[0];
return refcount == REFCOUNT_ONE_ISIZE;