develooper Front page | perl.perl5.porters | Postings from September 2011

Re: [perl #98810] add OP_IS_DIRHOP, OP_IS_NUMCOMPARE macros

Thread Previous | Thread Next
Jim Cromie
September 9, 2011 22:26
Re: [perl #98810] add OP_IS_DIRHOP, OP_IS_NUMCOMPARE macros
Message ID:
> pair of patches generate 2 more OP_IS_* macros:
>    regen/ generate OP_IS_DIRHOP, use in gv.c
>    Generate OP_IS_DIRHOP like other OP_IS_* macros,
>    use in gv.c:Perl_gv_add_by_type().
>    Modifies D operand type to DF.
>    This yields a micro-optimization.
>    implement OP_IS_NUMCOMPARE like other OP_IS macros
>    other macros are written by regen/ into opnames.h
>    Generate OP_IS_NUMCOMPARE the same way, and get a micro-optimization.
>    Adds a new 'S<' operand type for the numeric comparison ops.
>    Needs make regen.

and here they are:

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About