develooper Front page | perl.perl5.porters | Postings from July 2001

Re: [PATCH] Turn off constant folding and optimization

Thread Previous | Thread Next
From:
Arthur Bergman
Date:
July 24, 2001 00:19
Subject:
Re: [PATCH] Turn off constant folding and optimization
Message ID:
B782EE22.279E%arthur@contiller.se
01-07-24 08.05, skrev Simon Cozens på simon@netthink.co.uk följande:

This patch breaks ithreads. You disable peep while ithreads needs peep to
work. 

> 
> switch (type) {
> @@ -6700,7 +6700,7 @@
> register OP* oldop = 0;
> STRLEN n_a;
> 
> -    if (!o || o->op_seq)
> +    if (!o || o->op_seq || PL_no_optimize)
> return;

If PL_no_optimize is true, then we won't move the constants to the pad and
that is where we expect to find them! Maybe we should move the constants to
the pad earlier? 

Sarathy, why wait until peep to move consts to the pad?
 

-- 
Arthur


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