aboutsummaryrefslogtreecommitdiff
path: root/src/InternPool.zig
diff options
context:
space:
mode:
authorJacob Young <jacobly0@users.noreply.github.com>2023-06-02 04:24:25 -0400
committerAndrew Kelley <andrew@ziglang.org>2023-06-10 20:47:59 -0700
commitda24ea7f36d056cb49e8e91064f06cb724e46f67 (patch)
tree0b3920d68166cf664d4c72731d1260ea34a82d72 /src/InternPool.zig
parent04e66e6b4deb67aef9a4064decd82a678cb7ec82 (diff)
downloadzig-da24ea7f36d056cb49e8e91064f06cb724e46f67.tar.gz
zig-da24ea7f36d056cb49e8e91064f06cb724e46f67.zip
Sema: rewrite `monomorphed_funcs` usage
In an effort to delete `Value.hashUncoerced`, generic instantiation has been redesigned. Instead of just storing instantiations in `monomorphed_funcs`, partially instantiated generic argument types are also cached. This isn't quite the single `getOrPut` that it used to be, but one `get` per generic argument plus one get for the instantiation, with an equal number of `put`s per unique instantiation isn't bad.
Diffstat (limited to 'src/InternPool.zig')
0 files changed, 0 insertions, 0 deletions