< prev index next >

test/testlibrary/jittester/src/jdk/test/lib/jittester/UnaryOperator.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,16 +24,12 @@
 package jdk.test.lib.jittester;
 
 import jdk.test.lib.jittester.visitors.Visitor;
 
 public class UnaryOperator extends Operator {
-    protected OperatorKind opKind;
-    protected Type resultType;
-
     public UnaryOperator(OperatorKind opKind, IRNode expression) {
-        super(opKind.priority);
-        this.opKind = opKind;
+        super(opKind, expression.getResultType());
         addChild(expression);
     }
 
     @Override
     public long complexity() {

@@ -47,10 +43,6 @@
     }
 
     public boolean isPrefix() {
         return opKind.isPrefix;
     }
-
-    public String getOperatorText() {
-        return opKind.text;
-    }
 }
< prev index next >