summaryrefslogtreecommitdiff
path: root/proto.h
diff options
context:
space:
mode:
authorGerard Goossen <gerard@ggoossen.net>2011-08-16 09:22:14 +0200
committerFather Chrysostomos <sprout@cpan.org>2011-08-24 23:17:35 -0700
commit540dd7705e32a86ebc36aa94607e5814b510903d (patch)
tree41b18486ee435e6f5907cf9d9058750c72da3e32 /proto.h
parente92f843df4fffff9b210a84828d09e0af4499cd2 (diff)
downloadperl-540dd7705e32a86ebc36aa94607e5814b510903d.tar.gz
Move making inplace sort and reverse away from the peephole optimiser to scalarvoid.
Why: The in place assignment is not just an optimisation but has significant different behaviour and thus doesn't belong in the peephole optimiser. Also the optree changes are unified and simpler.
Diffstat (limited to 'proto.h')
-rw-r--r--proto.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/proto.h b/proto.h
index 7784a7a30e..73a322db2d 100644
--- a/proto.h
+++ b/proto.h
@@ -5513,17 +5513,17 @@ STATIC const char* S_gv_ename(pTHX_ GV *gv)
#define PERL_ARGS_ASSERT_GV_ENAME \
assert(gv)
+STATIC void S_inplace_aassign(pTHX_ OP* o)
+ __attribute__nonnull__(pTHX_1);
+#define PERL_ARGS_ASSERT_INPLACE_AASSIGN \
+ assert(o)
+
STATIC bool S_is_handle_constructor(const OP *o, I32 numargs)
__attribute__warn_unused_result__
__attribute__nonnull__(1);
#define PERL_ARGS_ASSERT_IS_HANDLE_CONSTRUCTOR \
assert(o)
-STATIC OP* S_is_inplace_av(pTHX_ OP* o, OP* oright)
- __attribute__nonnull__(pTHX_1);
-#define PERL_ARGS_ASSERT_IS_INPLACE_AV \
- assert(o)
-
STATIC I32 S_is_list_assignment(pTHX_ const OP *o)
__attribute__warn_unused_result__;