# HG changeset patch # User Josef Eisl # Date 1396374591 -7200 # Node ID 302d7b447d38b8a1c3850c4e4cb7d17b89b86fb4 # Parent 93de07975ea974ff43ebc1509ec96866d8dcf2a5 Rename KindInterface to KindProvider. diff -r 93de07975ea9 -r 302d7b447d38 graal/com.oracle.graal.api.meta/src/com/oracle/graal/api/meta/KindInterface.java --- a/graal/com.oracle.graal.api.meta/src/com/oracle/graal/api/meta/KindInterface.java Tue Apr 01 20:26:22 2014 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,33 +0,0 @@ -/* - * Copyright (c) 2014, 2014, 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. - * - * This code is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - * version 2 for more details (a copy is included in the LICENSE file that - * accompanied this code). - * - * You should have received a copy of the GNU General Public License version - * 2 along with this work; if not, write to the Free Software Foundation, - * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. - * - * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA - * or visit www.oracle.com if you need additional information or have any - * questions. - */ - -package com.oracle.graal.api.meta; - -/** - * Interface for the AbstractFrameStateBuilder and BytecodeParserHelper. - */ -public interface KindInterface { - - Kind getKind(); - -} diff -r 93de07975ea9 -r 302d7b447d38 graal/com.oracle.graal.api.meta/src/com/oracle/graal/api/meta/KindProvider.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/graal/com.oracle.graal.api.meta/src/com/oracle/graal/api/meta/KindProvider.java Tue Apr 01 19:49:51 2014 +0200 @@ -0,0 +1,33 @@ +/* + * Copyright (c) 2014, 2014, 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. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA + * or visit www.oracle.com if you need additional information or have any + * questions. + */ + +package com.oracle.graal.api.meta; + +/** + * Interface for classes which can be associated with a Kind. + */ +public interface KindProvider { + + Kind getKind(); + +} diff -r 93de07975ea9 -r 302d7b447d38 graal/com.oracle.graal.api.meta/src/com/oracle/graal/api/meta/Value.java --- a/graal/com.oracle.graal.api.meta/src/com/oracle/graal/api/meta/Value.java Tue Apr 01 20:26:22 2014 +0200 +++ b/graal/com.oracle.graal.api.meta/src/com/oracle/graal/api/meta/Value.java Tue Apr 01 19:49:51 2014 +0200 @@ -28,7 +28,7 @@ * Abstract base class for values manipulated by the compiler. All values have a {@linkplain Kind * kind} and are immutable. */ -public abstract class Value implements Serializable, KindInterface { +public abstract class Value implements Serializable, KindProvider { private static final long serialVersionUID = -6909397188697766469L; diff -r 93de07975ea9 -r 302d7b447d38 graal/com.oracle.graal.java/src/com/oracle/graal/java/AbstractBytecodeParser.java --- a/graal/com.oracle.graal.java/src/com/oracle/graal/java/AbstractBytecodeParser.java Tue Apr 01 20:26:22 2014 +0200 +++ b/graal/com.oracle.graal.java/src/com/oracle/graal/java/AbstractBytecodeParser.java Tue Apr 01 19:49:51 2014 +0200 @@ -43,7 +43,7 @@ import com.oracle.graal.options.*; import com.oracle.graal.phases.*; -public abstract class AbstractBytecodeParser> { +public abstract class AbstractBytecodeParser> { static class Options { // @formatter:off @@ -65,7 +65,7 @@ public static final int TRACELEVEL_STATE = 2; protected F frameState; - protected BytecodeStream stream; // the bytecode stream + protected BytecodeStream stream; private GraphBuilderConfiguration graphBuilderConfig; protected ResolvedJavaMethod method; protected BciBlock currentBlock; diff -r 93de07975ea9 -r 302d7b447d38 graal/com.oracle.graal.java/src/com/oracle/graal/java/AbstractFrameStateBuilder.java --- a/graal/com.oracle.graal.java/src/com/oracle/graal/java/AbstractFrameStateBuilder.java Tue Apr 01 20:26:22 2014 +0200 +++ b/graal/com.oracle.graal.java/src/com/oracle/graal/java/AbstractFrameStateBuilder.java Tue Apr 01 19:49:51 2014 +0200 @@ -25,7 +25,7 @@ import com.oracle.graal.api.meta.*; -public abstract class AbstractFrameStateBuilder { +public abstract class AbstractFrameStateBuilder { protected final ResolvedJavaMethod method; protected int stackSize; diff -r 93de07975ea9 -r 302d7b447d38 graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/ValueNode.java --- a/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/ValueNode.java Tue Apr 01 20:26:22 2014 +0200 +++ b/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/ValueNode.java Tue Apr 01 19:49:51 2014 +0200 @@ -31,7 +31,7 @@ * This class represents a value within the graph, including local variables, phis, and all other * instructions. */ -public abstract class ValueNode extends ScheduledNode implements StampProvider, KindInterface { +public abstract class ValueNode extends ScheduledNode implements StampProvider, KindProvider { /** * The kind of this value. This is {@link Kind#Void} for instructions that produce no value.