Next: , Previous: , Up: CompiledCode   [Index]


1.39.11 CompiledCode: testing accesses

accesses: instVarIndex

Answer whether the receiver accesses the instance variable with the given index

assigns: instVarIndex

Answer whether the receiver writes to the instance variable with the given index

containsLiteral: anObject

Answer if the receiver contains a literal which is equal to anObject.

hasBytecode: byte between: firstIndex and: lastIndex

Answer whether the receiver includes the ‘byte’ bytecode in any of the indices between firstIndex and lastIndex.

jumpDestinationAt: anIndex forward: aBoolean

Answer where the jump at bytecode index ‘anIndex’ lands

reads: instVarIndex

Answer whether the receiver reads the instance variable with the given index

refersTo: anObject

Answer whether the receiver refers to the given object

sendsToSuper

Answer whether the receiver includes a send to super.

sourceCodeMap

Answer an array which maps bytecode indices to source code line numbers. 0 values represent invalid instruction pointer indices.