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
From:
Jim Cromie
Date:
September 9, 2011 22:26
Subject:
Re: [perl #98810] add OP_IS_DIRHOP, OP_IS_NUMCOMPARE macros
Message ID:
CAJfuBxz19SKbWSHA5Axhy72RYJ_J_KWTq39=D3sq7GcJZfjPYA@mail.gmail.com
> pair of patches generate 2 more OP_IS_* macros:
>
>    regen/opcode.pl: 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/opcode.pl 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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About