[pypy-dev] [pypy-commit] pypy default: INSTANCE_PTR_{EQ, NE} also do not escape their arguments in the JIT

Carl Friedrich Bolz cfbolz at gmx.de
Fri Nov 16 16:19:48 CET 2012


Hi Alex, 

Please write a test for this change. 

Cheers, 

Carl Friedrich 

alex_gaynor <noreply at buildbot.pypy.org> wrote:

>Author: Alex Gaynor <alex.gaynor at gmail.com>
>Branch: 
>Changeset: r58945:e72d4f5b720e
>Date: 2012-11-16 07:11 -0800
>http://bitbucket.org/pypy/pypy/changeset/e72d4f5b720e/
>
>Log:	INSTANCE_PTR_{EQ,NE} also do not escape their arguments in the JIT
>
>diff --git a/pypy/jit/metainterp/heapcache.py
>b/pypy/jit/metainterp/heapcache.py
>--- a/pypy/jit/metainterp/heapcache.py
>+++ b/pypy/jit/metainterp/heapcache.py
>@@ -74,7 +74,9 @@
>         elif (opnum != rop.GETFIELD_GC and
>               opnum != rop.MARK_OPAQUE_PTR and
>               opnum != rop.PTR_EQ and
>-              opnum != rop.PTR_NE):
>+              opnum != rop.PTR_NE and
>+              opnum != rop.INSTANCE_PTR_EQ and
>+              opnum != rop.INSTANCE_PTR_NE):
>             idx = 0
>             for box in argboxes:
>                 # setarrayitem_gc don't escape its first argument
>_______________________________________________
>pypy-commit mailing list
>pypy-commit at python.org
>http://mail.python.org/mailman/listinfo/pypy-commit


Carl Friedrich Bolz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20121116/74641a54/attachment.html>


More information about the pypy-dev mailing list