harpoon.IR.Bytecode
Class Liveness

java.lang.Object
  extended by harpoon.IR.Bytecode.Liveness

public class Liveness
extends Object

Liveness is a local-variable liveness analysis on Bytecode form.

Version:
$Id: Liveness.java,v 1.4 2004/02/08 01:55:10 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>

Constructor Summary
Liveness(Code bcode)
          Creates a Liveness.
 
Method Summary
 boolean isLive(Instr where, int lv_index)
          Return the liveness of local variable #lv_index at instruction where.
 Set liveSet(Instr where)
          Return a Collection of live local variables at the given instruction where.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Liveness

public Liveness(Code bcode)
Creates a Liveness.

Method Detail

isLive

public boolean isLive(Instr where,
                      int lv_index)
Return the liveness of local variable #lv_index at instruction where.


liveSet

public Set liveSet(Instr where)
Return a Collection of live local variables at the given instruction where.