aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/beam_load.c
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2010-12-07 13:57:24 +0100
committerBjörn Gustavsson <[email protected]>2011-01-17 15:23:44 +0100
commit3694076f5a68cc78e9ccd6c67651bc0f761fc94f (patch)
tree4cbb16a21177e908eecd3151d421214ee77ae46f /erts/emulator/beam/beam_load.c
parentec2fcc7aefec2f4ede4f789098f5093cd2fe00b2 (diff)
downloadotp-3694076f5a68cc78e9ccd6c67651bc0f761fc94f.tar.gz
otp-3694076f5a68cc78e9ccd6c67651bc0f761fc94f.tar.bz2
otp-3694076f5a68cc78e9ccd6c67651bc0f761fc94f.zip
Eliminate use of GetArg2() in the i_element instruction
Use separate instructions for each register type.
Diffstat (limited to 'erts/emulator/beam/beam_load.c')
-rw-r--r--erts/emulator/beam/beam_load.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/erts/emulator/beam/beam_load.c b/erts/emulator/beam/beam_load.c
index 4233e26f54..02aef95a52 100644
--- a/erts/emulator/beam/beam_load.c
+++ b/erts/emulator/beam/beam_load.c
@@ -2321,9 +2321,9 @@ gen_element(LoaderState* stp, GenOpArg Fail, GenOpArg Index,
op->a[3] = Dst;
} else {
op->op = genop_i_element_4;
- op->a[0] = Fail;
- op->a[1] = Index;
- op->a[2] = Tuple;
+ op->a[0] = Tuple;
+ op->a[1] = Fail;
+ op->a[2] = Index;
op->a[3] = Dst;
}