aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/ops.tab
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2019-03-11 07:32:43 +0100
committerBjörn Gustavsson <[email protected]>2019-03-19 16:01:59 +0100
commita0a3f3c1891bf74d35b84855891caa5928cc14c1 (patch)
tree4021a86efd67ad792bfc07296a88f7baba2d7b6b /erts/emulator/beam/ops.tab
parent96730efed3b16bf20149d8716d17486217e51e6e (diff)
downloadotp-a0a3f3c1891bf74d35b84855891caa5928cc14c1.tar.gz
otp-a0a3f3c1891bf74d35b84855891caa5928cc14c1.tar.bz2
otp-a0a3f3c1891bf74d35b84855891caa5928cc14c1.zip
Refactor put_list instructions for readability
Apart from the refactoring, the instruction "put_list x c y" is replaced with "put_list x n y".
Diffstat (limited to 'erts/emulator/beam/ops.tab')
-rw-r--r--erts/emulator/beam/ops.tab28
1 files changed, 11 insertions, 17 deletions
diff --git a/erts/emulator/beam/ops.tab b/erts/emulator/beam/ops.tab
index 70a6049c75..a6f5ba347c 100644
--- a/erts/emulator/beam/ops.tab
+++ b/erts/emulator/beam/ops.tab
@@ -530,32 +530,26 @@ put_list Src Dst=x Dst => update_list Src Dst
update_list xyc x
-put_list x n x
-put_list y n x
-put_list x x x
-put_list y x x
+# put_list SrcReg1 SrcReg2 => Dst
-put_list y y x
-put_list x y x
+put_list xy xy x
-# put_list SrcReg Constant Dst
+# put_list SrcReg [] => Dst
-put_list x c x
-put_list x c y
+put_list xy n xy
-put_list y c x
+# put_list SrcReg Constant => x
-# put_list Constant SrcReg Dst
+put_list xy c x
-put_list c x x
-put_list c y x
+# put_list Constant SrcReg => Dst
+
+put_list c xy x
# The following put_list instructions using x(0) are frequently used.
-put_list r n r
-put_list r n x
-put_list r x x
-put_list r x r
+put_list r n rx
+put_list r x rx
put_list x x r
%cold