Files
turso/core
Jussi Saurio 731ff1480f Simplify working with labels
TLDR: no need to call either of:

program.emit_insn_with_label_dependency() -> just call program.emit_insn()
program.defer_label_resolution() -> just call program.resolve_label()

Changes:

- make BranchOffset an explicit enum (Label, Offset, Placeholder)
- remove program.emit_insn_with_label_dependency() - label dependency is automatically detected
- for label to offset mapping, use a hashmap from label(negative i32) to offset (positive u32)
- resolve all labels in program.build()
- remove program.defer_label_resolution() - all labels are resolved in build()
2025-01-07 12:53:10 +02:00
..
2025-01-01 16:11:52 +05:30
2025-01-02 15:09:16 +07:00
2025-01-07 12:53:10 +02:00
2025-01-07 12:53:10 +02:00
2025-01-05 17:56:59 +05:30
2025-01-05 17:56:59 +05:30
2024-12-24 18:04:30 +01:00