|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectharpoon.Analysis.Transformation.MethodMutator
harpoon.Analysis.Quads.DispatchTreeTransformation
public class DispatchTreeTransformation
DispatchTreeTransformation
replaces dynamic dispatch
call sites with TYPESWITCHes leading to static dispatch calls.
Given proper optimization of the TYPESWITCH test, this should
speed up dispatch.
Constructor Summary | |
---|---|
DispatchTreeTransformation(HCodeFactory parent,
ClassHierarchy ch)
Creates a DispatchTreeTransformation . |
Method Summary | |
---|---|
protected HCodeAndMaps |
cloneHCode(HCode hc,
HMethod newmethod)
Override this method if you do not want the mutatable HCode to be a straight clone of the original HCode: for example, if the input HCodes were QuadSSI and you wanted to
clone them into QuadRSSI s before mutating. |
protected String |
mutateCodeName(String codeName)
Override this method to change the codename which this MethodMutator 's codefactory reports. |
protected HCode |
mutateHCode(HCodeAndMaps input)
Override this method to effect transformations on split methods. |
Methods inherited from class harpoon.Analysis.Transformation.MethodMutator |
---|
codeFactory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DispatchTreeTransformation(HCodeFactory parent, ClassHierarchy ch)
DispatchTreeTransformation
.
Method Detail |
---|
protected HCode mutateHCode(HCodeAndMaps input)
MethodMutator
mutateHCode
in class MethodMutator
protected HCodeAndMaps cloneHCode(HCode hc, HMethod newmethod)
MethodMutator
QuadSSI
and you wanted to
clone them into QuadRSSI
s before mutating.
By default, this method returns hc.clone(newmethod)
.
cloneHCode
in class MethodMutator
protected String mutateCodeName(String codeName)
MethodMutator
MethodMutator
's codefactory reports.
mutateCodeName
in class MethodMutator
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |