aboutsummaryrefslogtreecommitdiff
path: root/lib/std/json
diff options
context:
space:
mode:
authormlugg <mlugg@mlugg.co.uk>2024-08-19 07:50:57 +0100
committermlugg <mlugg@mlugg.co.uk>2024-08-21 01:26:55 +0100
commit9cf8a7661f34e764f785583a3028429e2a700d20 (patch)
tree44d19306bf88259cdb82f7b23eee976a2a6711a0 /lib/std/json
parent16d74809d44d6bb8db1a32923ef8db43d956e24d (diff)
downloadzig-9cf8a7661f34e764f785583a3028429e2a700d20.tar.gz
zig-9cf8a7661f34e764f785583a3028429e2a700d20.zip
compiler: handle eval branch quota in memoized calls
In a `memoized_call`, store how many backwards braches the call performs. Add this to `sema.branch_count` when using a memoized call. If this exceeds the quota, perform a non-memoized call to get a correct "exceeded X backwards branches" error. Also, do not memoize calls which do `@setEvalBranchQuota` or similar, as this affects global state which must apply to the caller. Change some eval branch quotas so that the compiler itself still builds correctly. This commit manually changes a file in Aro which is automatically generated. The sources which generate the file are not in this repo. Upstream Aro should make the suitable changes on their end before the next sync of Aro sources into the Zig repo.
Diffstat (limited to 'lib/std/json')
0 files changed, 0 insertions, 0 deletions