Author: Armin Rigo <[email protected]>
Branch:
Changeset: r70686:1f54c89f98a0
Date: 2014-04-17 10:51 +0200
http://bitbucket.org/pypy/pypy/changeset/1f54c89f98a0/
Log: A skipped test
diff --git a/rpython/jit/codewriter/effectinfo.py
b/rpython/jit/codewriter/effectinfo.py
--- a/rpython/jit/codewriter/effectinfo.py
+++ b/rpython/jit/codewriter/effectinfo.py
@@ -167,6 +167,12 @@
def is_call_release_gil(self):
return bool(self.call_release_gil_target)
+ def __repr__(self):
+ more = ''
+ if self.oopspecindex:
+ more = ' OS=%r' % (self.oopspecindex,)
+ return '<EffectInfo 0x%x: EF=%r%s>' % (id(self), self.extraeffect,
more)
+
def frozenset_or_none(x):
if x is None:
diff --git a/rpython/jit/metainterp/test/test_ajit.py
b/rpython/jit/metainterp/test/test_ajit.py
--- a/rpython/jit/metainterp/test/test_ajit.py
+++ b/rpython/jit/metainterp/test/test_ajit.py
@@ -3418,6 +3418,25 @@
'int_sub': 2, 'jump': 1, 'call': 2,
'guard_no_exception': 2, 'int_add': 4})
+ def test_elidable_method(self):
+ py.test.skip("method sometimes @elidable and sometimes not")
+ class A(object):
+ def meth(self):
+ return 41
+ class B(A):
+ @elidable
+ def meth(self):
+ return 42
+ x = B()
+ def callme(x):
+ return x.meth()
+ def f():
+ callme(A())
+ return callme(x)
+ res = self.interp_operations(f, [])
+ assert res == 42
+ self.check_operations_history({'finish': 1})
+
def test_look_inside_iff_const_getarrayitem_gc_pure(self):
driver = JitDriver(greens=['unroll'], reds=['s', 'n'])
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit