Hi Alex,
Please write a test for this change.
Cheers,
Carl Friedrich
alex_gaynor <[email protected]> wrote:
>Author: Alex Gaynor <[email protected]>
>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
>[email protected]
>http://mail.python.org/mailman/listinfo/pypy-commit
Carl Friedrich Bolz_______________________________________________
pypy-dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-dev