Author: Antonio Cuni <anto.c...@gmail.com>
Branch: virtual-raw-mallocs
Changeset: r59918:8f40ffdee0dd
Date: 2013-01-10 11:29 +0100
http://bitbucket.org/pypy/pypy/changeset/8f40ffdee0dd/

Log:    all_virtuals is no longer a list, but an instance of VirtualCache
        now

diff --git a/pypy/jit/metainterp/compile.py b/pypy/jit/metainterp/compile.py
--- a/pypy/jit/metainterp/compile.py
+++ b/pypy/jit/metainterp/compile.py
@@ -650,9 +650,9 @@
 
 class AllVirtuals:
     llopaque = True
-    list = [resume.ResumeDataDirectReader.virtual_ptr_default]   # annotation 
hack
-    def __init__(self, list):
-        self.list = list
+    cache = None
+    def __init__(self, cache):
+        self.cache = cache
     def hide(self, cpu):
         ptr = cpu.ts.cast_instance_to_base_ref(self)
         return cpu.ts.cast_to_ref(ptr)
@@ -676,7 +676,7 @@
         from pypy.jit.metainterp.blackhole import resume_in_blackhole
         hidden_all_virtuals = metainterp_sd.cpu.get_savedata_ref(deadframe)
         obj = AllVirtuals.show(metainterp_sd.cpu, hidden_all_virtuals)
-        all_virtuals = obj.list
+        all_virtuals = obj.cache
         if all_virtuals is None:
             all_virtuals = ResumeDataDirectReader.VirtualCache([], [])
         assert jitdriver_sd is self.jitdriver_sd
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to