diff options
author | Björn Gustavsson <[email protected]> | 2017-09-19 08:07:48 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2017-10-01 07:08:19 +0200 |
commit | 53e6fb04c52703a222884b709e86d1fd8bcf98d9 (patch) | |
tree | 4fab5b2fecb742fb15412223f6e297dd13adc0d5 /erts/emulator/beam/trace_instrs.tab | |
parent | 4e94a3dfc5cade0f8334efa1c785f44eaa55fdac (diff) | |
download | otp-53e6fb04c52703a222884b709e86d1fd8bcf98d9.tar.gz otp-53e6fb04c52703a222884b709e86d1fd8bcf98d9.tar.bz2 otp-53e6fb04c52703a222884b709e86d1fd8bcf98d9.zip |
Eliminate the OpCode() macro
Introduce the IsOpCode() macro that can be used to compare
instructions.
Diffstat (limited to 'erts/emulator/beam/trace_instrs.tab')
-rw-r--r-- | erts/emulator/beam/trace_instrs.tab | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/beam/trace_instrs.tab b/erts/emulator/beam/trace_instrs.tab index b10442c5e7..3eee81c053 100644 --- a/erts/emulator/beam/trace_instrs.tab +++ b/erts/emulator/beam/trace_instrs.tab @@ -61,12 +61,12 @@ i_return_to_trace() { Uint *cpp = (Uint*) E; for(;;) { ASSERT(is_CP(*cpp)); - if (*cp_val(*cpp) == (BeamInstr) OpCode(return_trace)) { + if (IsOpCode(*cp_val(*cpp), return_trace)) { do ++cpp; while (is_not_CP(*cpp)); cpp += 2; - } else if (*cp_val(*cpp) == (BeamInstr) OpCode(i_return_to_trace)) { + } else if (IsOpCode(*cp_val(*cpp), i_return_to_trace)) { do ++cpp; while (is_not_CP(*cpp)); |