summaryrefslogtreecommitdiff
path: root/cop.h
diff options
context:
space:
mode:
authorRuslan Zakirov <ruz@bestpractical.com>2012-09-29 20:41:10 +0400
committerFather Chrysostomos <sprout@cpan.org>2013-06-30 11:43:40 -0700
commitc106c2be8b83eeb3799c9f2127c5030a7a04115a (patch)
tree3cf5f79a8d6fc9e0e3a03e41dfe022a0ed16a9d7 /cop.h
parentf26c79ba7e11714d3002a9ea191aed997403b6e8 (diff)
downloadperl-c106c2be8b83eeb3799c9f2127c5030a7a04115a.tar.gz
G_METHOD_NAMED flag for call_method and call_sv
Can be used when it's known that method name has no package part - just method name. With flag set SV with precomputed hash value is used and pp_method_named is called instead of pp_method. Method lookup is faster.
Diffstat (limited to 'cop.h')
-rw-r--r--cop.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cop.h b/cop.h
index 122e2d75e0..e33dc15493 100644
--- a/cop.h
+++ b/cop.h
@@ -1058,6 +1058,7 @@ L<perlcall>.
#define G_WRITING_TO_STDERR 1024 /* Perl_write_to_stderr() is calling
Perl_magic_methcall(). */
#define G_RE_REPARSING 0x800 /* compiling a run-time /(?{..})/ */
+#define G_METHOD_NAMED 4096 /* calling named method, eg without :: or ' */
/* flag bits for PL_in_eval */
#define EVAL_NULL 0 /* not in an eval */