Files
zig/src
Luuk de Gram 3c27df6b13 wasm: generate function to get tag name
When we lower the instruction for `@tagName` we generate a new
function if it doesn't exist yet for that decl. This function creates
an if-else chain to determine which value was provided. Each tag
generates a constant that contains its name as the value. For each
tag we generate a case where the pointer of the string is stored in
the result slice. The length of the tagname is comptime-known, therefore
will be stored in the slice directly without having it being part of
the tagname symbol. In the future this can use a jump table instead
of an if-else chain, similar to the `switch` instruction.
2023-04-12 22:23:32 +02:00
..
2022-09-14 20:08:34 -04:00
2023-04-12 01:14:02 +00:00
2023-01-26 16:36:13 -07:00
2023-04-11 08:41:24 -07:00
2023-04-03 18:02:53 +02:00
2022-11-04 00:09:27 +03:30
2023-01-26 16:36:13 -07:00
2023-01-26 16:36:13 -07:00
2023-01-25 20:56:23 -07:00