# HG changeset patch # User Josef Eisl # Date 1426609179 -3600 # Node ID 22b14fba2e991c1e4e59c106d0fd7b2eb3d49f20 # Parent eab99dc3134c46de256177b6ed5c8c053aa48436 Make LIRGeneratorTool a BenchmarkCounterFactory. diff -r eab99dc3134c -r 22b14fba2e99 graal/com.oracle.graal.lir/src/com/oracle/graal/lir/gen/LIRGenerator.java --- a/graal/com.oracle.graal.lir/src/com/oracle/graal/lir/gen/LIRGenerator.java Tue Mar 17 17:19:18 2015 +0100 +++ b/graal/com.oracle.graal.lir/src/com/oracle/graal/lir/gen/LIRGenerator.java Tue Mar 17 17:19:39 2015 +0100 @@ -391,4 +391,12 @@ public void emitBlackhole(Value operand) { append(new StandardOp.BlackholeOp(operand)); } + + public LIRInstruction createBenchmarkCounter(String name, String group, Value increment) { + throw GraalInternalError.unimplemented(); + } + + public LIRInstruction createMultiBenchmarkCounter(String[] names, String[] groups, Value[] increments) { + throw GraalInternalError.unimplemented(); + } } diff -r eab99dc3134c -r 22b14fba2e99 graal/com.oracle.graal.lir/src/com/oracle/graal/lir/gen/LIRGeneratorTool.java --- a/graal/com.oracle.graal.lir/src/com/oracle/graal/lir/gen/LIRGeneratorTool.java Tue Mar 17 17:19:18 2015 +0100 +++ b/graal/com.oracle.graal.lir/src/com/oracle/graal/lir/gen/LIRGeneratorTool.java Tue Mar 17 17:19:39 2015 +0100 @@ -30,7 +30,7 @@ import com.oracle.graal.compiler.common.spi.*; import com.oracle.graal.lir.*; -public interface LIRGeneratorTool extends ArithmeticLIRGenerator { +public interface LIRGeneratorTool extends ArithmeticLIRGenerator, BenchmarkCounterFactory { public interface SpillMoveFactory {