Commits

timfel  committed 946a179

(timfel, cfbolz) add bytecodeoffset to shadow

  • Participants
  • Parent commits e5c223d

Comments (0)

Files changed (2)

File spyvm/shadow.py

         self.w_compiledmethod = w_compiledmethod
         self.bytecode = "".join(w_compiledmethod.bytes)
         self.literals = w_compiledmethod.literals
+        self.bytecodeoffset = w_compiledmethod.bytecodeoffset()

File spyvm/test/test_shadow.py

     w_compiledmethod.setbytes(list("abc"))
     shadow = w_compiledmethod.as_compiledmethod_get_shadow(space)
     assert shadow.bytecode == "abc"
+    assert shadow.bytecodeoffset == 12
 
     w_compiledmethod.literalatput0(space, 1, 17)
     w_compiledmethod.literalatput0(space, 2, 41)