Table of Contents

Class: codeIndex ./src/peak/util/Code.py

Useful indexes over a code object

opcodeLocations[op]
list of instruction numbers with op as opcode
opcode[i]
the i'th instruction's opcode
operand[i]
the i'th instruction's operand (or None)
offset[i]
location of the i'th instruction
byteIndex[b]
instruction number i for byte b
byteLine[b]
source line number that generated byte b
nextLine[b]
offset of next line number change following byte b
nextSplit[b]
offset of next "safe code split point" following b
Base Classes   
object
Methods   
__init__
byteIndex
byteLine
nextLine
nextSplit
  __init__ 
__init__ ( self,  codeObject )

  byteIndex 
byteIndex ( self )

Property: instruction sequence number by byte

  byteLine 
byteLine ( self )

Property: line number for each byte

  nextLine 
nextLine ( self )

Property: offset of next line number change for each byte

  nextSplit 
nextSplit ( self )

Property: next safe code split offset by byte


Table of Contents

This document was automatically generated on Mon Nov 11 01:11:04 2024 by HappyDoc version 2.1