diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-01-01 19:24:02 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-01-02 19:10:11 -0700 |
| commit | fea8659b82ea1a785f933c58ba9d65ceb05a4094 (patch) | |
| tree | 91d33abe8ae357bc5aecc06e9fd2423bd83a10a8 /src/codegen.zig | |
| parent | fb37c1b0912c65d72b82f32df8bc7e780ab1ad80 (diff) | |
| download | zig-fea8659b82ea1a785f933c58ba9d65ceb05a4094.tar.gz zig-fea8659b82ea1a785f933c58ba9d65ceb05a4094.zip | |
stage2: comptime function calls
* Function calls that happen in a comptime scope get called at
compile-time. We do this by putting the parameters in place as
constant values and then running regular function analysis on the
body.
* Added `Scope.Block.dump()` for debugging purposes.
* Fixed some code to call `identifierTokenString` rather than
`tokenSlice`, making it work for `@""` syntax.
* Implemented `Value.copy` for big integers.
Follow-up issues to tackle:
* Adding compile errors to the callsite instead of the callee Decl.
* Proper error notes for "called from here".
- Related: #7555
* Branch quotas.
* ZIR support?
Diffstat (limited to 'src/codegen.zig')
0 files changed, 0 insertions, 0 deletions
