diff options
author | Björn Gustavsson <[email protected]> | 2017-09-05 08:33:02 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2017-09-14 10:16:15 +0200 |
commit | df1f7395a206d1fd4e70b7380fccdbd53540db40 (patch) | |
tree | f8f5e8ebfb073e4a346805f670c63a4d9cbe7b10 /erts/emulator/beam/select_instrs.tab | |
parent | 76b4ff5c5db9610ecd09b11d3816f25b1e6b58f8 (diff) | |
download | otp-df1f7395a206d1fd4e70b7380fccdbd53540db40.tar.gz otp-df1f7395a206d1fd4e70b7380fccdbd53540db40.tar.bz2 otp-df1f7395a206d1fd4e70b7380fccdbd53540db40.zip |
Use relative failure labels
Relative failure in itself is not an optimization, but we plan to
pack failure labels in the future to save memory.
Diffstat (limited to 'erts/emulator/beam/select_instrs.tab')
-rw-r--r-- | erts/emulator/beam/select_instrs.tab | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/beam/select_instrs.tab b/erts/emulator/beam/select_instrs.tab index 88049bbcf0..da6b7dbe62 100644 --- a/erts/emulator/beam/select_instrs.tab +++ b/erts/emulator/beam/select_instrs.tab @@ -32,7 +32,7 @@ select_val_bins.fetch(Src) { select_val_bins.select(Fail, NumElements) { struct Pairs { BeamInstr val; - BeamInstr* addr; + Eterm offset; }; struct Pairs* low; struct Pairs* high; @@ -68,7 +68,7 @@ select_val_bins.select(Fail, NumElements) { } else if (select_val > mid->val) { low = mid + 1; } else { - $JUMP(mid->addr); + $JUMP(mid->offset); } } $JUMP($Fail); |