diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-05-01 21:57:52 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-05-01 21:57:52 -0700 |
| commit | eadcefc124b4ee61c99c8ed97434ed26e24c5f83 (patch) | |
| tree | e76e08b8c4411a8ef609efdef020e9731e43de4b /lib | |
| parent | 6248e2a5609cb9e30588f8bcd0000f5d5aa5fdee (diff) | |
| download | zig-eadcefc124b4ee61c99c8ed97434ed26e24c5f83.tar.gz zig-eadcefc124b4ee61c99c8ed97434ed26e24c5f83.zip | |
stage2: dbg_stmt ZIR instructions have line/col
instead of node indexes.
* AstGen: dbg_stmt instructions now have line and column indexes,
relative to the parent declaration. This allows codegen to emit debug
info without having the source bytes, tokens, or AST nodes loaded
in memory.
* ZIR: each decl has the absolute line number. This allows computing
line numbers from offsets without consulting source code bytes.
Memory management: creating a function definition does not prematurely
set the Decl arena. Instead the function is allocated with the general
purpose allocator.
Codegen no longer looks at source code bytes for any reason. They can
remain unloaded from disk.
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions
