develooper Front page | perl.perl5.porters | Postings from June 2008

Re: [perl #56150] return return

Thread Previous | Thread Next
From:
Yitzchak Scott-Thoennes
Date:
June 25, 2008 01:38
Subject:
Re: [perl #56150] return return
Message ID:
38154.71.32.85.253.1214383115.squirrel@webmail.efn.org
On Wed, June 25, 2008 1:17 am, Reini Urban wrote:
> David Nicol schrieb:
>> leaving the question, why doesn't the optimizer get rid of return?
>>
>> tentative answer: because the optimizer authors didn't get around to
>> it, seeing once-per-subroutine as not enough savings to justify the
>> effort.
>
> The optimizer does something with the op_type OP_RETURN.
> The ck_return() does change all kids to OP_LEAVESUBLV if lvalue'd.
> The problem is the tokenizer.

Wouldn't this go in a ck_ for leavesub, leavesublv, and leavetry?
Or maybe lineseq; don't know where all that is used or what its
purpose is.


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