summaryrefslogtreecommitdiff
path: root/src/wasm-js.cpp
diff options
context:
space:
mode:
authorNathan Froyd <froydnj@gmail.com>2018-03-23 12:38:07 -0400
committerAlon Zakai <alonzakai@gmail.com>2018-03-23 09:38:07 -0700
commit9c2fa9247333233d3454c546677205b4a3c2e96a (patch)
tree3d6babf3adb4857dd266cf5756dc123112cd0419 /src/wasm-js.cpp
parentf7ebc7c0e53241e4604be5321134d48d640f0a40 (diff)
downloadbinaryen-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