[pypy-commit] pypy framestate: Use consistent terminology for offset vs instruction:
rlamy
noreply at buildbot.pypy.org
Mon Nov 24 17:29:29 CET 2014
Author: Ronan Lamy <ronan.lamy at gmail.com>
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):
More information about the pypy-commit
mailing list