diff options
author | Björn Gustavsson <[email protected]> | 2017-08-25 14:40:50 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2017-08-31 15:45:32 +0200 |
commit | e53b75431e40cec0c26032df1867301e76688009 (patch) | |
tree | 592f6aed85e6dc26531ebf217cd6c69283754e1c /erts/emulator/beam/beam_emu.c | |
parent | 50da607331bc2de990828c3c74bbf4ee7efa27f0 (diff) | |
download | otp-e53b75431e40cec0c26032df1867301e76688009.tar.gz otp-e53b75431e40cec0c26032df1867301e76688009.tar.bz2 otp-e53b75431e40cec0c26032df1867301e76688009.zip |
Eliminate three arguments for erts_hibernate()
We don't need to pass x(0), x(1), and x(2) because they
can already be found in the register array.
Diffstat (limited to 'erts/emulator/beam/beam_emu.c')
-rw-r--r-- | erts/emulator/beam/beam_emu.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/erts/emulator/beam/beam_emu.c b/erts/emulator/beam/beam_emu.c index 8692b99c57..7ef0772703 100644 --- a/erts/emulator/beam/beam_emu.c +++ b/erts/emulator/beam/beam_emu.c @@ -2328,10 +2328,13 @@ fixed_apply(Process* p, Eterm* reg, Uint arity, } int -erts_hibernate(Process* c_p, Eterm module, Eterm function, Eterm args, Eterm* reg) +erts_hibernate(Process* c_p, Eterm* reg) { int arity; Eterm tmp; + Eterm module = reg[0]; + Eterm function = reg[1]; + Eterm args = reg[2]; if (is_not_atom(module) || is_not_atom(function)) { /* |