mirror of
https://github.com/ziglang/zig.git
synced 2026-01-26 01:05:22 +00:00
stage2-wasm: finishAir handle .stack result
By allowing finishAir to handle .stack results, we simplify a lot of code in
air*** functions, which try to handle this case. Also this changes will result in optimization, if one of operands is dead after instruction its place could be reused by result.
The only downside to this change is that finishAir now can return error, though it handled by returning finishAir result, because it always needs to be final in air*** functions.
Additionally I migrated WValue{ to .{ inside CodeGen.zig.
This commit is contained in:
parent
6eb76f930d
commit
31706dc31a
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user