diff options
author | Nathan Froyd <froydnj@gmail.com> | 2018-03-23 12:38:07 -0400 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2018-03-23 09:38:07 -0700 |
commit | 9c2fa9247333233d3454c546677205b4a3c2e96a (patch) | |
tree | 3d6babf3adb4857dd266cf5756dc123112cd0419 /src/wasm-js.cpp | |
parent | f7ebc7c0e53241e4604be5321134d48d640f0a40 (diff) | |
download | binaryen-9c2fa9247333233d3454c546677205b4a3c2e96a.tar.gz binaryen-9c2fa9247333233d3454c546677205b4a3c2e96a.tar.bz2 binaryen-9c2fa9247333233d3454c546677205b4a3c2e96a.zip |
remap {get,set}_local indices (#1486)
When lowering i64 values in a function, we create new local variables
for all of the i64 local variables, one local for the low bits, and one
for the high bits. We create a mapping between the old locals and the
new as well. During translation, when we encountered a `get_local` that
didn't have type `i64`, we skipped it, on the supposition that there was
nothing to do. But that's not true; the local it was getting may have
been remapped to a new index in the lowered function, and we need to
account for that change. Similar logic holds for `set_local`.
Diffstat (limited to 'src/wasm-js.cpp')
0 files changed, 0 insertions, 0 deletions