001/*
002 *  This file is part of the Jikes RVM project (http://jikesrvm.org).
003 *
004 *  This file is licensed to You under the Eclipse Public License (EPL);
005 *  You may not use this file except in compliance with the License. You
006 *  may obtain a copy of the License at
007 *
008 *      http://www.opensource.org/licenses/eclipse-1.0.php
009 *
010 *  See the COPYRIGHT.txt file distributed with this work for information
011 *  regarding copyright ownership.
012 */
013package org.jikesrvm.adaptive.recompilation.instrumentation;
014
015import org.jikesrvm.adaptive.util.AOSOptions;
016import org.jikesrvm.classloader.NormalMethod;
017import org.jikesrvm.compilers.opt.driver.InstrumentationPlan;
018
019/**
020 * An instance of this class is created for each method that is
021 * instrumented by the adaptive system.  It serves as a place to put
022 * information that is needed by the instrumentation phases.  Is is
023 * different from an InstrumentationPlan because it contains
024 * information that the non-adaptive opt-compiler can't see.
025 */
026public class AOSInstrumentationPlan extends InstrumentationPlan {
027
028  public AOSInstrumentationPlan(NormalMethod method) {
029  }
030
031  public AOSInstrumentationPlan(AOSOptions options, NormalMethod method) {
032    // If we want to collect method invocation counts.
033    if (options.INSERT_METHOD_COUNTERS_OPT) {
034    }
035  }
036
037  @Override
038  public void initInstrumentation(NormalMethod method) {
039  }
040
041  @Override
042  public void finalizeInstrumentation(NormalMethod method) {
043  }
044}
045