< prev index next >

test/testlibrary/jittester/src/jdk/test/lib/jittester/UnaryOperator.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2005, 2015, 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. --- 1,7 ---- /* ! * 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,39 **** 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; addChild(expression); } @Override public long complexity() { --- 24,35 ---- package jdk.test.lib.jittester; import jdk.test.lib.jittester.visitors.Visitor; public class UnaryOperator extends Operator { public UnaryOperator(OperatorKind opKind, IRNode expression) { ! super(opKind, expression.getResultType()); addChild(expression); } @Override public long complexity() {
*** 47,56 **** } public boolean isPrefix() { return opKind.isPrefix; } - - public String getOperatorText() { - return opKind.text; - } } --- 43,48 ----
< prev index next >