edu.uci.eecs.doc.cascade.graph
Class Invoke

java.lang.Object
  extended by edu.uci.eecs.doc.cascade.graph.Vertex
      extended by edu.uci.eecs.doc.cascade.graph.BasicBlock
          extended by edu.uci.eecs.doc.cascade.graph.Invoke

public class Invoke
extends BasicBlock

A basic block representing an instruction invocation.

Author:
Trevor Harmon

Field Summary
 
Fields inherited from class edu.uci.eecs.doc.cascade.graph.BasicBlock
instructions, node
 
Fields inherited from class edu.uci.eecs.doc.cascade.graph.Vertex
graph
 
Constructor Summary
Invoke(Graph graph, Node node, InstructionHandle invokeInstruction, InvokeMiss invokeMissBlock)
          Creates a new Invoke object.
 
Method Summary
 InvokeInstruction getInvokeInstruction()
          Returns the bytecode instruction that this block represents.
 InvokeMiss getInvokeMiss()
          Returns the block that control flows to if the invocation results in a cache miss.
 
Methods inherited from class edu.uci.eecs.doc.cascade.graph.BasicBlock
getInstructions, getNode, isReturn, toString
 
Methods inherited from class edu.uci.eecs.doc.cascade.graph.Vertex
asList, getGraph
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Invoke

public Invoke(Graph graph,
              Node node,
              InstructionHandle invokeInstruction,
              InvokeMiss invokeMissBlock)
Creates a new Invoke object.

Parameters:
graph - the control flow graph to which this block belongs
node - a control flow tree node that corresponds to the basic block
invokeInstruction - the bytecode instruction that this block represents (invokeInstruction.getInstruction() must be of type InvokeInstruction)
invokeMissBlock - the block that control flows to if the invocation results in a cache miss
Method Detail

getInvokeInstruction

public InvokeInstruction getInvokeInstruction()
Returns the bytecode instruction that this block represents.

Returns:
a handle to an invocation bytecode instruction

getInvokeMiss

public InvokeMiss getInvokeMiss()
Returns the block that control flows to if the invocation results in a cache miss.

Returns:
an invoke miss block