diff options
author | John Hawthorn <[email protected]> | 2021-07-12 13:35:09 -0700 |
---|---|---|
committer | Alan Wu <[email protected]> | 2021-10-20 18:19:37 -0400 |
commit | cb5571eece818b33d2f6a33b892e7cda31231e69 (patch) | |
tree | e320cfb64a30f1c5b3b1ca6adb038aee5b3ca197 /yjit_codegen.c | |
parent | d5f18f7845f0f0fb3024ada63a552deac9c11ad7 (diff) |
Flatten mappings when clearing locals
We clear locals when we know their values might change (ex. when
performing a method call). However previously values on the stack which
were originally pushed from a local would still point back to that
local.
With this commit, when clearing locals, we'll now iterate over the
mappings of the stack and copy the known type from the local to the
stack mapping, removing the association to the local.
This should mean both that we'll retain any information we already know
about the local type, and that if a local is modified we won't
incorrectly infer it's new type from the existing value on the stack.
Diffstat (limited to 'yjit_codegen.c')
0 files changed, 0 insertions, 0 deletions