org.jikesrvm.adaptive.recompilation.instrumentation
Class AOSInstrumentationPlan

java.lang.Object
  extended by org.jikesrvm.compilers.opt.driver.InstrumentationPlan
      extended by org.jikesrvm.adaptive.recompilation.instrumentation.AOSInstrumentationPlan

public class AOSInstrumentationPlan
extends InstrumentationPlan

An instance of this class is created for each method that is instrumented by the adaptive system. It serves as a place to put information that is needed by the instrumentation phases. Is is different from an InstrumentationPlan because it contains information that the non-adaptive opt-compiler can't see.


Constructor Summary
AOSInstrumentationPlan(AOSOptions options, NormalMethod method)
          Construct based on options
AOSInstrumentationPlan(NormalMethod method)
          Construct empty plan, must setup manually
 
Method Summary
 void finalizeInstrumentation(NormalMethod method)
          Called after compilation is complete.
 void initInstrumentation(NormalMethod method)
          Initialize instrumentation by the opt compiler immediately before compilation begins.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AOSInstrumentationPlan

public AOSInstrumentationPlan(NormalMethod method)
Construct empty plan, must setup manually


AOSInstrumentationPlan

public AOSInstrumentationPlan(AOSOptions options,
                              NormalMethod method)
Construct based on options

Method Detail

initInstrumentation

public void initInstrumentation(NormalMethod method)
Initialize instrumentation by the opt compiler immediately before compilation begins.

Specified by:
initInstrumentation in class InstrumentationPlan

finalizeInstrumentation

public void finalizeInstrumentation(NormalMethod method)
Called after compilation is complete. If instrumentation has occurred, perform some cleanup/finalization

Specified by:
finalizeInstrumentation in class InstrumentationPlan