org.jikesrvm.compilers.opt.specialization
Class SpecializedMethod

java.lang.Object
  extended by org.jikesrvm.compilers.opt.specialization.SpecializedMethod

public final class SpecializedMethod
extends Object

This is the top-level class to support specialized versions of Java methods


Field Summary
(package private)  CompiledMethod compiledMethod
          Corresponding compiled method
(package private)  SpecializationContext context
          Encodes the rules for generating the specialized code.
(package private)  NormalMethod method
          The method that was specialized
(package private)  int smid
          Specialized Method index into the SpecializedMethods table
 
Constructor Summary
SpecializedMethod(NormalMethod source, SpecializationContext context)
          constructor for OPT compiler.
 
Method Summary
(package private)  void compile()
          generate the specialized code for this method
 CompiledMethod getCompiledMethod()
           
 NormalMethod getMethod()
           
 SpecializationContext getSpecializationContext()
           
 int getSpecializedMethodIndex()
           
 void setCompiledMethod(CompiledMethod cm)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

method

final NormalMethod method
The method that was specialized


compiledMethod

CompiledMethod compiledMethod
Corresponding compiled method


smid

final int smid
Specialized Method index into the SpecializedMethods table


context

final SpecializationContext context
Encodes the rules for generating the specialized code.

Constructor Detail

SpecializedMethod

SpecializedMethod(NormalMethod source,
                  SpecializationContext context)
constructor for OPT compiler.

Method Detail

compile

void compile()
generate the specialized code for this method


getMethod

public NormalMethod getMethod()

getSpecializationContext

public SpecializationContext getSpecializationContext()

getCompiledMethod

public CompiledMethod getCompiledMethod()

setCompiledMethod

public void setCompiledMethod(CompiledMethod cm)

getSpecializedMethodIndex

public int getSpecializedMethodIndex()

toString

public String toString()
Overrides:
toString in class Object