Armin Rigo avatar Armin Rigo committed 011983d

fix test

Comments (0)

Files changed (1)

pypy/jit/metainterp/test/test_resume.py

         CONST_NULL = ConstPtr(gcrefnull)
     def __init__(self, values):
         self.values = values
-    def get_latest_value_count(self):
+    def get_latest_value_count(self, deadframe):
+        assert deadframe == "deadframe"
         return len(self.values)
-    def get_latest_value_int(self, index):
+    def get_latest_value_int(self, deadframe, index):
+        assert deadframe == "deadframe"
         return self.values[index]
-    def get_latest_value_ref(self, index):
+    def get_latest_value_ref(self, deadframe, index):
+        assert deadframe == "deadframe"
         return self.values[index]
-    def get_latest_value_float(self, index):
+    def get_latest_value_float(self, deadframe, index):
+        assert deadframe == "deadframe"
         return self.values[index]
 
 class MyBlackholeInterp:
     #
     cpu = MyCPU([42, gcref1, -66])
     metainterp = MyMetaInterp(cpu)
-    reader = ResumeDataDirectReader(metainterp, storage)
+    reader = ResumeDataDirectReader(metainterp, storage, "deadframe")
     _next_section(reader, 42, 111, gcrefnull, 42, gcref1)
     _next_section(reader, 222, 333)
     _next_section(reader, 42, gcref1, -66)
     #
-    reader = ResumeDataBoxReader(storage, metainterp)
+    reader = ResumeDataBoxReader(storage, "deadframe", metainterp)
     bi, br, bf = [None]*3, [None]*2, [None]*0
     info = MyBlackholeInterp([lltype.Signed, lltype.Signed,
                               llmemory.GCREF, lltype.Signed,
     storage.rd_numb = numb
     #
     cpu = MyCPU([])
-    reader = ResumeDataDirectReader(MyMetaInterp(cpu), storage)
+    reader = ResumeDataDirectReader(MyMetaInterp(cpu), storage, "deadframe")
     _next_section(reader, 100)
 
 
     class FakeMetainterp(object):
         _already_allocated_resume_virtuals = None
         cpu = None
-    reader = ResumeDataDirectReader(MyMetaInterp(None), FakeStorage())
+    reader = ResumeDataDirectReader(MyMetaInterp(None), FakeStorage(),
+                                    "deadframe")
     assert reader.force_all_virtuals() == ["allocated", reader.virtual_default]
 
 # ____________________________________________________________
     liveboxes = modifier.finish(FakeOptimizer({}))
     assert storage.rd_snapshot is None
     cpu = MyCPU([])
-    reader = ResumeDataDirectReader(MyMetaInterp(cpu), storage)
+    reader = ResumeDataDirectReader(MyMetaInterp(cpu), storage, "deadframe")
     _next_section(reader, sys.maxint, 2**16, -65)
     _next_section(reader, 2, 3)
     _next_section(reader, sys.maxint, 1, sys.maxint, 2**16)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.