aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/beam_emu.c
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2010-12-16 08:22:11 +0100
committerBjörn Gustavsson <[email protected]>2011-01-17 15:23:47 +0100
commitd8a47b34744be64db10a458991bf340328af8f9c (patch)
tree07291b097e72ea44d3803811cdd3d983352e50f7 /erts/emulator/beam/beam_emu.c
parent51ddd2047c70bce67c8644d85f5d5de72842c320 (diff)
downloadotp-d8a47b34744be64db10a458991bf340328af8f9c.tar.gz
otp-d8a47b34744be64db10a458991bf340328af8f9c.tar.bz2
otp-d8a47b34744be64db10a458991bf340328af8f9c.zip
Introduce a few more variations of the move instructions
Frequency counts show that move Const x(1) move Const x(2) are very common.
Diffstat (limited to 'erts/emulator/beam/beam_emu.c')
-rw-r--r--erts/emulator/beam/beam_emu.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/erts/emulator/beam/beam_emu.c b/erts/emulator/beam/beam_emu.c
index edb4d61ed2..16741aa2d7 100644
--- a/erts/emulator/beam/beam_emu.c
+++ b/erts/emulator/beam/beam_emu.c
@@ -1520,6 +1520,17 @@ void process_main(void)
NextPF(1, next);
}
+ OpCase(move_x1_c): {
+ x(1) = Arg(0);
+ Next(1);
+ }
+
+ OpCase(move_x2_c): {
+ x(2) = Arg(0);
+ Next(1);
+ }
+
+
OpCase(return): {
SET_I(c_p->cp);
/*