Author: Ronan Lamy <[email protected]>
Branch: framestate
Changeset: r74662:456a7f470921
Date: 2014-05-04 21:00 +0100
http://bitbucket.org/pypy/pypy/changeset/456a7f470921/

Log:    Use consistent terminology for offset vs instruction:

        offset = index into the code bytestring instruction = an opcode
        together with its argument

diff --git a/rpython/flowspace/bytecode.py b/rpython/flowspace/bytecode.py
--- a/rpython/flowspace/bytecode.py
+++ b/rpython/flowspace/bytecode.py
@@ -108,7 +108,7 @@
 
         if opnum in opcode.hasjrel:
             oparg += next_offset
-        return next_offset, BCInstruction(opnum, oparg, pos)
+        return next_offset, BCInstruction(opnum, oparg, offset)
 
     @property
     def is_generator(self):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to