< prev index next >
test/testlibrary/jittester/src/jdk/test/lib/jittester/loops/CounterManipulator.java
Print this page
@@ -23,10 +23,11 @@
package jdk.test.lib.jittester.loops;
import jdk.test.lib.jittester.IRNode;
import jdk.test.lib.jittester.LocalVariable;
+import jdk.test.lib.jittester.Statement;
import jdk.test.lib.jittester.visitors.Visitor;
/*
* Note: Can be theoretically subclassed from Operator and have an
* operatorPriority field. Therefore, it can used later as a part
@@ -34,11 +35,12 @@
*/
public class CounterManipulator extends IRNode {
LocalVariable counter;
- public CounterManipulator(IRNode manipulator) {
+ public CounterManipulator(Statement manipulator) {
+ super(manipulator.getResultType());
addChild(manipulator);
}
@Override
public long complexity() {
< prev index next >