< prev index next >

test/testlibrary/jittester/src/jdk/test/lib/jittester/BinaryOperator.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 BinaryOperator extends Operator { ! protected String operationCode; ! protected Type resultType; ! ! public BinaryOperator(OperatorKind opKind, IRNode leftOperand, IRNode rightOperand) { ! super(opKind.priority); ! operationCode = opKind.text; addChild(leftOperand); addChild(rightOperand); } @Override --- 24,35 ---- package jdk.test.lib.jittester; import jdk.test.lib.jittester.visitors.Visitor; public class BinaryOperator extends Operator { ! public BinaryOperator(OperatorKind opKind, Type resultType, IRNode leftOperand, IRNode rightOperand) { ! super(opKind, resultType); addChild(leftOperand); addChild(rightOperand); } @Override
*** 45,58 **** } else { return 0; } } - public String getOperationCode() { - return operationCode; - } - @Override public<T> T accept(Visitor<T> v) { return v.visit(this); } } --- 41,50 ----
< prev index next >