at.dms.backend
Class StackSchleduler

java.lang.Object
  extended by at.dms.backend.TreeWalker
      extended by at.dms.backend.StackSchleduler

public class StackSchleduler
extends TreeWalker

This class tries to find the best schleduling to minimize local vars


Constructor Summary
StackSchleduler(at.dms.backend.BasicBlock[] bblocks, at.dms.backend.BasicBlock[] eblocks)
          Creates a new instruction handle.
 
Method Summary
protected  void kill()
          Called when a branch is reached
protected  void processNode(at.dms.backend.QNode node)
          Processes the node
 void run()
          Runs the deadcode algorithm
 
Methods inherited from class at.dms.backend.TreeWalker
getBasicBlock, removeNode, traverse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StackSchleduler

public StackSchleduler(at.dms.backend.BasicBlock[] bblocks,
                       at.dms.backend.BasicBlock[] eblocks)
Creates a new instruction handle. (Probably buggy description from cut and paste -- deleted references to wrong parameters)

Method Detail

run

public void run()
Runs the deadcode algorithm


processNode

protected void processNode(at.dms.backend.QNode node)
Processes the node

Specified by:
processNode in class TreeWalker
Parameters:
node - the node to be processed

kill

protected void kill()
Called when a branch is reached

Overrides:
kill in class TreeWalker