summaryrefslogtreecommitdiff
path: root/coverage/bytecode.py
diff options
context:
space:
mode:
authorBen Finney <ben@benfinney.id.au>2011-07-27 13:08:39 +1000
committerBen Finney <ben@benfinney.id.au>2011-07-27 13:08:39 +1000
commitd9318b840bec37c116d5ef95ac1a618149f625da (patch)
tree305c374ca027499889a059f1809beb60dabdbdd6 /coverage/bytecode.py
parentca7a10dff148fdb68f577f09e1f572f8350491b3 (diff)
parent0f1b0d30e306ad35b1e29912e0613e9bf2618c47 (diff)
downloadpython-coveragepy-d9318b840bec37c116d5ef95ac1a618149f625da.tar.gz
Refactor handling of static report files to a separate function.
Diffstat (limited to 'coverage/bytecode.py')
-rw-r--r--coverage/bytecode.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/coverage/bytecode.py b/coverage/bytecode.py
index ab522d6..61c311e 100644
--- a/coverage/bytecode.py
+++ b/coverage/bytecode.py
@@ -5,10 +5,19 @@ import opcode, sys, types
class ByteCode(object):
"""A single bytecode."""
def __init__(self):
+ # The offset of this bytecode in the code object.
self.offset = -1
+
+ # The opcode, defined in the `opcode` module.
self.op = -1
+
+ # The argument, a small integer, whose meaning depends on the opcode.
self.arg = -1
+
+ # The offset in the code object of the next bytecode.
self.next_offset = -1
+
+ # The offset to jump to.
self.jump_to = -1