summaryrefslogtreecommitdiff
path: root/embedvar.h
diff options
context:
space:
mode:
authorZefram <zefram@fysh.org>2010-08-16 20:22:42 +0100
committerFlorian Ragwitz <rafl@debian.org>2010-08-26 15:10:55 +0200
commit1a0a2ba99e0c0ff795f145aaf54fcf0c4a8f7478 (patch)
treef24669c95c6d89ac6f5277dac7f3518afc1cd5e1 /embedvar.h
parentc35dcbe240980301d3462300f3b790ccfbe52c24 (diff)
downloadperl-1a0a2ba99e0c0ff795f145aaf54fcf0c4a8f7478.tar.gz
make recursive part of peephole optimiser hookable
New variable PL_rpeepp makes it possible for extensions to hook the per-op-chain part of the peephole optimiser (which recurses into side chains). The existing variable PL_peepp still allows hooking the per-sub part of the peephole optimiser, maintaining perfect backward compatibility.
Diffstat (limited to 'embedvar.h')
-rw-r--r--embedvar.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/embedvar.h b/embedvar.h
index 587bc94863..e57eed9d7f 100644
--- a/embedvar.h
+++ b/embedvar.h
@@ -258,6 +258,7 @@
#define PL_replgv (vTHX->Ireplgv)
#define PL_restartjmpenv (vTHX->Irestartjmpenv)
#define PL_restartop (vTHX->Irestartop)
+#define PL_rpeepp (vTHX->Irpeepp)
#define PL_rs (vTHX->Irs)
#define PL_runops (vTHX->Irunops)
#define PL_savebegin (vTHX->Isavebegin)
@@ -589,6 +590,7 @@
#define PL_Ireplgv PL_replgv
#define PL_Irestartjmpenv PL_restartjmpenv
#define PL_Irestartop PL_restartop
+#define PL_Irpeepp PL_rpeepp
#define PL_Irs PL_rs
#define PL_Irunops PL_runops
#define PL_Isavebegin PL_savebegin