aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHakan Ardo <hakan@debian.org>2011-09-27 19:32:45 +0200
committerHakan Ardo <hakan@debian.org>2011-09-27 19:32:45 +0200
commitaec318260e43373538e2330a64d0d3ac796a915a (patch)
treed70da4951de6112c13005c85ce3c6907ee550e71 /pypy/jit/metainterp/test/test_resume.py
parentfix merge (diff)
downloadpypy-aec318260e43373538e2330a64d0d3ac796a915a.tar.gz
pypy-aec318260e43373538e2330a64d0d3ac796a915a.tar.bz2
pypy-aec318260e43373538e2330a64d0d3ac796a915a.zip
Make forced virtuals emit ops using OptVirtualize.emit_operation(). This makes the heap optimizer see those ops, but in the wrong order and everything becomes an obsure mess :( Maybe I can fix that...
Diffstat (limited to 'pypy/jit/metainterp/test/test_resume.py')
-rw-r--r--pypy/jit/metainterp/test/test_resume.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/pypy/jit/metainterp/test/test_resume.py b/pypy/jit/metainterp/test/test_resume.py
index f3a17a11ef..6496373a8d 100644
--- a/pypy/jit/metainterp/test/test_resume.py
+++ b/pypy/jit/metainterp/test/test_resume.py
@@ -576,8 +576,9 @@ def test_rebuild_from_resumedata_two_guards():
class FakeOptimizer_VirtualValue(object):
- class cpu:
- pass
+ class optimizer:
+ class cpu:
+ pass
fakeoptimizer = FakeOptimizer_VirtualValue()
def ConstAddr(addr, cpu): # compatibility