aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2010-12-08 06:55:37 +0100
committerBjörn Gustavsson <[email protected]>2011-01-17 15:23:42 +0100
commita3981bb0d5742098e484e49661b7f378f18069d5 (patch)
tree81ed03c938cd0017cf81eb2dae5e2257574102e2 /README.md
parent4d05097ec97cc18c795ffee83d1d08d396e16814 (diff)
downloadotp-a3981bb0d5742098e484e49661b7f378f18069d5.tar.gz
otp-a3981bb0d5742098e484e49661b7f378f18069d5.tar.bz2
otp-a3981bb0d5742098e484e49661b7f378f18069d5.zip
beam_emu: Clean up calling of the error_handler module
There were two separate functions (call_error_handler() and call_breakpoint_handler()) that were identical except for the name of the function in the error_handler module being called. Generalize call_error_handler() by adding a function name argument so that it can be used for both purposes. Also let the call_error_handler() return the new program counter instead of passing it in c_p->i. That slightly decrease the code size at the call site. There is also no need to use the Dispatch() macro to yet again decrease the reduction counter, because that has just been done by the call instruction that caused the execution of the call_error_handler or i_debug_breakpoint instruction.
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions