harpoon.Analysis.PreciseGC
Class WriteBarrierQuadPass

java.lang.Object
  extended by harpoon.Analysis.Transformation.MethodMutator
      extended by harpoon.Analysis.PreciseGC.WriteBarrierQuadPass
All Implemented Interfaces:
Serializable

public class WriteBarrierQuadPass
extends MethodMutator

WriteBarrierQuadPass takes code in Quad form and inserts a fake call to a write barrier that is later replaced with a real implementation in WriteBarrierTreePass. When used without WriteBarrierTreePass and in combination with the mark-and-sweep collector, reports statistics about the number of times the write-barrier is called.

Version:
$Id: WriteBarrierQuadPass.java,v 1.9 2005/10/15 22:51:56 salcianu Exp $
Author:
Karen Zee <kkz@tmi.lcs.mit.edu>
See Also:
Serialized Form

Constructor Summary
WriteBarrierQuadPass(ClassHierarchy ch, HCodeFactory parent, Linker linker, String resourceName, int optLevel)
          Creates a WriteBarrierQuadPass.
 
Method Summary
protected  HCode mutateHCode(HCodeAndMaps input)
          Override this method to effect transformations on split methods.
 
Methods inherited from class harpoon.Analysis.Transformation.MethodMutator
cloneHCode, codeFactory, mutateCodeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WriteBarrierQuadPass

public WriteBarrierQuadPass(ClassHierarchy ch,
                            HCodeFactory parent,
                            Linker linker,
                            String resourceName,
                            int optLevel)
Creates a WriteBarrierQuadPass. Write barrier removal performed if optimize is true.

Method Detail

mutateHCode

protected HCode mutateHCode(HCodeAndMaps input)
Description copied from class: MethodMutator
Override this method to effect transformations on split methods.

Overrides:
mutateHCode in class MethodMutator