diff options
author | Björn Gustavsson <[email protected]> | 2017-10-06 08:52:32 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2017-10-09 19:20:55 +0200 |
commit | 4fe3f3b8be4825726fab6d4ea7515adf5b5df1ac (patch) | |
tree | 6b417bc151f9cb71e7ab1c9ebedbe17cfc358966 /erts/prebuild.skip | |
parent | e38c688d3961bedcd85f842fd052836cb345a902 (diff) | |
download | otp-4fe3f3b8be4825726fab6d4ea7515adf5b5df1ac.tar.gz otp-4fe3f3b8be4825726fab6d4ea7515adf5b5df1ac.tar.bz2 otp-4fe3f3b8be4825726fab6d4ea7515adf5b5df1ac.zip |
Slightly speed up try/catch
The try_end and try_case instructions are implemented the same way
(try_case is translated to try_end by the loader).
We can do better than that. We know that try_case will only be executed
when an exception has been caught. Therefore, we know that x(0) is
the non-value and that x(1) through x(3) need to be shifted down to
x(0) through x(2). There is no need to test x(0) before shifting down.
try_end does not need the register shifting code at all.
Diffstat (limited to 'erts/prebuild.skip')
0 files changed, 0 insertions, 0 deletions