Dataflow Software Stack  032db78
Master Thesis of Mathijs Saey at the VUB
 All Classes Namespaces Files Functions Variables Pages
Public Member Functions | Public Attributes | List of all members
core.instruction.ContextChange Class Reference

Represents a context change in the program. More...

Inheritance diagram for core.instruction.ContextChange:
Inheritance graph

Public Member Functions

def __init__
 Initialize a context change instruction. More...
 
def addLiteral
 
def getLiterals
 
def execute
 
def setKey
 Set the instruction address. More...
 
def __str__
 Return a string representation of this instruction. More...
 

Public Attributes

 retnSink
 
 destSink
 
 restores
 
 bindargs
 
 literals
 
 chunk
 
 key
 

Detailed Description

Represents a context change in the program.

e.g. a function call.

Constructor & Destructor Documentation

def core.instruction.ContextChange.__init__ (   self,
  binds,
  restores,
  destSink,
  returnSink 
)

Initialize a context change instruction.

Parameters
bindsThe amount of tokens to bind to a new context.
restoresThe amount of tokens the context will produce before being deleted.
destSinkThe destination of the token after the context change.
returnSinkThe destination of the tokens after their context is restored.

Member Function Documentation

def core.instruction.ContextChange.addLiteral (   self,
  port,
  val 
)
def core.instruction.ContextChange.getLiterals (   self)
def core.instruction.ContextChange.execute (   self,
  token,
  core 
)
def core.instruction.Instruction.setKey (   self,
  key 
)
inherited

Set the instruction address.

def core.instruction.Instruction.__str__ (   self)
inherited

Return a string representation of this instruction.

Member Data Documentation

core.instruction.ContextChange.retnSink
core.instruction.ContextChange.destSink
core.instruction.ContextChange.restores
core.instruction.ContextChange.bindargs
core.instruction.ContextChange.literals
core.instruction.Instruction.chunk
inherited
core.instruction.Instruction.key
inherited