diff options
author | Ruslan Zakirov <ruz@bestpractical.com> | 2012-09-29 20:41:10 +0400 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2013-06-30 11:43:40 -0700 |
commit | c106c2be8b83eeb3799c9f2127c5030a7a04115a (patch) | |
tree | 3cf5f79a8d6fc9e0e3a03e41dfe022a0ed16a9d7 /cop.h | |
parent | f26c79ba7e11714d3002a9ea191aed997403b6e8 (diff) | |
download | perl-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 */ |