< prev index next >
test/testlibrary/jittester/src/jdk/test/lib/jittester/CastOperator.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2005, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
@@ -24,15 +24,13 @@
package jdk.test.lib.jittester;
import jdk.test.lib.jittester.visitors.Visitor;
public class CastOperator extends Operator {
- private final Type resultType;
public CastOperator(Type resultType, IRNode casted) {
- super(13);
- this.resultType = resultType;
+ super(null, 13, resultType);
addChild(casted);
}
@Override
public long complexity() {
@@ -41,10 +39,6 @@
@Override
public<T> T accept(Visitor<T> v) {
return v.visit(this);
}
-
- public Type getResultType() {
- return resultType;
- }
}
< prev index next >