summaryrefslogtreecommitdiff
path: root/embed.fnc
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 /embed.fnc
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 'embed.fnc')
-rw-r--r--embed.fnc3
1 files changed, 2 insertions, 1 deletions
diff --git a/embed.fnc b/embed.fnc
index 63bbcd8940..47ca611a49 100644
--- a/embed.fnc
+++ b/embed.fnc
@@ -887,8 +887,9 @@ sd |void |pad_reset
#endif
: Used in op.c
pd |void |pad_swipe |PADOFFSET po|bool refadjust
-: FIXME
+: peephole optimiser
p |void |peep |NULLOK OP* o
+p |void |rpeep |NULLOK OP* o
: Defined in doio.c, used only in pp_hot.c
dopM |PerlIO*|start_glob |NN SV *tmpglob|NN IO *io
#if defined(USE_REENTRANT_API)