|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectharpoon.Analysis.Transformation.MethodMutator
harpoon.Analysis.PreciseGC.WriteBarrierInserter
public class WriteBarrierInserter
WriteBarrierInserter
takes code in Quad form and inserts
write barriers for generational garbage collection. Write barriers are
inserted before SET
s of non-static Object
and
ASET
s of
Object
arrays.
The write barrier used is a call to a native implementation that may be
replaced in later passes with a more efficient implementation.
Nested Class Summary
static class
WriteBarrierInserter.DefaultWriteBarrierAnalysis
DefaultWriteBarrierAnalysis
returns a no-
analysis WriteBarrierAnalysis
Object that
assumes write barriers are needed for all SET and ASETs
of object fields.
static interface
WriteBarrierInserter.WriteBarrierAnalysis
A WriteBarrierAnalysis
maps Code
s
to Set
s of Quads for which write barriers have
been deemed unnecessary.
Constructor Summary
WriteBarrierInserter(HCodeFactory parent,
Linker linker)
Creates a WriteBarrierInserter
using a default
no-analysis WriteBarrierAnalysis
.
WriteBarrierInserter(HCodeFactory parent,
Linker linker,
WriteBarrierInserter.WriteBarrierAnalysis wba)
Creates a WriteBarrierInserter
.
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
WriteBarrierInserter
public WriteBarrierInserter(HCodeFactory parent,
Linker linker,
WriteBarrierInserter.WriteBarrierAnalysis wba)
WriteBarrierInserter
.
WriteBarrierInserter
public WriteBarrierInserter(HCodeFactory parent,
Linker linker)
WriteBarrierInserter
using a default
no-analysis WriteBarrierAnalysis
.
Method Detail
mutateHCode
protected HCode mutateHCode(HCodeAndMaps input)
MethodMutator
mutateHCode
in class MethodMutator
Overview
Package
Class
Tree
Deprecated
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD