[pypy-dev] jit-short_from_state

Alex Gaynor alex.gaynor at gmail.com
Fri Aug 12 07:43:40 CEST 2011


On Thu, Aug 11, 2011 at 10:41 PM, Hakan Ardo <hakan at debian.org> wrote:

> On Wed, Aug 10, 2011 at 6:42 PM, Hakan Ardo <hakan at debian.org> wrote:
> >
> > I'm not sure why test_instance works on trunk actually, but the way to
> > get it to work on this branch I think is to make the heap optimizer
> > aware of the setfield_gc's produced by forcing p22 and then have the
> > heap optimizer remove the getfield_gc_pure. Using the pure operations
> > optimizer here is not straight forwars as there is no
> > getfield_gc_pure(p22).
>
> This issues does not show up on trunk because of is_forced_virtual()
> keeps track of forced virtuals and treats them separately. I dont
> think we want specialize loops to inputargs beeing forced virtuals and
> guard for this condition at the end of bridges...
>
> --
> Håkan Ardö
>

The only motivation for `is_forced_virtual` was to have fields that are pure
be kept as known values (to prevent re-reading), since when you force a
virtual the setfields don't go through the heap cache (which they probably
should, TBH, since we know exactly what fields a call can force).

Alex

-- 
"I disapprove of what you say, but I will defend to the death your right to
say it." -- Evelyn Beatrice Hall (summarizing Voltaire)
"The people's good is the highest law." -- Cicero
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20110811/d69904a7/attachment.html>


More information about the pypy-dev mailing list