aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/beam_load.c
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2011-02-26 11:11:27 +0100
committerBjörn Gustavsson <[email protected]>2011-08-16 08:58:49 +0200
commit0befcf588ae4fe9ea686ea81727114a8dc5c0cac (patch)
tree42776c505002c3753307349afb8486e5be98c741 /erts/emulator/beam/beam_load.c
parent29d734adaec35052ce153b05621babf9333bc651 (diff)
downloadotp-0befcf588ae4fe9ea686ea81727114a8dc5c0cac.tar.gz
otp-0befcf588ae4fe9ea686ea81727114a8dc5c0cac.tar.bz2
otp-0befcf588ae4fe9ea686ea81727114a8dc5c0cac.zip
compiler, emulator: Introduce the line/1 instruction
Introduce the line/1 instruction in the compiler and the BEAM virtual machine. It will not yet be generated by the compiler and will not actually carry any information.
Diffstat (limited to 'erts/emulator/beam/beam_load.c')
-rw-r--r--erts/emulator/beam/beam_load.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/erts/emulator/beam/beam_load.c b/erts/emulator/beam/beam_load.c
index eb10ae59a8..3cfba5e827 100644
--- a/erts/emulator/beam/beam_load.c
+++ b/erts/emulator/beam/beam_load.c
@@ -2104,6 +2104,10 @@ load_code(LoaderState* stp)
stp->catches = ci-3;
break;
+ case op_line_I:
+ ci -= 2; /* Get rid of the instruction */
+ break;
+
/*
* End of code found.
*/