aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/beam_load.c
diff options
context:
space:
mode:
authorJohn Högberg <[email protected]>2018-05-08 08:51:21 +0200
committerJohn Högberg <[email protected]>2018-09-24 06:54:02 +0200
commitcf5094ccc73446496e33b0aa6cbbf7fe65bbbe76 (patch)
treec57c9978683c609b6df58f936f3d1f354f1f8cea /erts/emulator/beam/beam_load.c
parent672a164719fe5f0e2b3185034dfc3f761b5397e9 (diff)
downloadotp-cf5094ccc73446496e33b0aa6cbbf7fe65bbbe76.tar.gz
otp-cf5094ccc73446496e33b0aa6cbbf7fe65bbbe76.tar.bz2
otp-cf5094ccc73446496e33b0aa6cbbf7fe65bbbe76.zip
Support using match contexts from Y registers
The upcoming beam_ssa_bsm pass allows match contexts to be used across function calls that take said context as an argument, which means it's fairly common for them to end up in Y registers.
Diffstat (limited to 'erts/emulator/beam/beam_load.c')
-rw-r--r--erts/emulator/beam/beam_load.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/erts/emulator/beam/beam_load.c b/erts/emulator/beam/beam_load.c
index 50cbb37f3e..c28a5c57e6 100644
--- a/erts/emulator/beam/beam_load.c
+++ b/erts/emulator/beam/beam_load.c
@@ -2868,6 +2868,7 @@ load_code(LoaderState* stp)
break;
case op_bs_put_string_WW:
case op_i_bs_match_string_xfWW:
+ case op_i_bs_match_string_yfWW:
new_string_patch(stp, ci-1);
break;