changeset 2816:5526d82388be

Made more nodes floating (including the allocation nodes NewInstance, NewArray, and NewMultiArray).
author Thomas Wuerthinger <thomas@wuerthinger.net>
date Mon, 30 May 2011 15:28:38 +0200
parents 32fd5ea3a6cc
children f9f40748442f
files graal/GraalCompiler/src/com/sun/c1x/ir/Convert.java graal/GraalCompiler/src/com/sun/c1x/ir/MonitorAddress.java graal/GraalCompiler/src/com/sun/c1x/ir/NegateOp.java graal/GraalCompiler/src/com/sun/c1x/ir/NewArray.java
diffstat 4 files changed, 4 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/ir/Convert.java	Mon May 30 15:24:44 2011 +0200
+++ b/graal/GraalCompiler/src/com/sun/c1x/ir/Convert.java	Mon May 30 15:28:38 2011 +0200
@@ -31,7 +31,7 @@
 /**
  * The {@code Convert} class represents a conversion between primitive types.
  */
-public final class Convert extends Instruction {
+public final class Convert extends Value {
 
     private static final int INPUT_COUNT = 1;
     private static final int INPUT_VALUE = 0;
--- a/graal/GraalCompiler/src/com/sun/c1x/ir/MonitorAddress.java	Mon May 30 15:24:44 2011 +0200
+++ b/graal/GraalCompiler/src/com/sun/c1x/ir/MonitorAddress.java	Mon May 30 15:28:38 2011 +0200
@@ -29,7 +29,7 @@
 /**
  * Instruction that is used to refer to the address of an on-stack monitor.
  */
-public final class MonitorAddress extends Instruction {
+public final class MonitorAddress extends Value {
 
     private static final int INPUT_COUNT = 0;
     private static final int SUCCESSOR_COUNT = 0;
--- a/graal/GraalCompiler/src/com/sun/c1x/ir/NegateOp.java	Mon May 30 15:24:44 2011 +0200
+++ b/graal/GraalCompiler/src/com/sun/c1x/ir/NegateOp.java	Mon May 30 15:28:38 2011 +0200
@@ -30,7 +30,7 @@
 /**
  * The {@code NegateOp} instruction negates its operand.
  */
-public final class NegateOp extends Instruction {
+public final class NegateOp extends Value {
 
     private static final int INPUT_COUNT = 2;
     private static final int INPUT_X = 0;
--- a/graal/GraalCompiler/src/com/sun/c1x/ir/NewArray.java	Mon May 30 15:24:44 2011 +0200
+++ b/graal/GraalCompiler/src/com/sun/c1x/ir/NewArray.java	Mon May 30 15:28:38 2011 +0200
@@ -28,7 +28,7 @@
 /**
  * The {@code NewArray} class is the base of all instructions that allocate arrays.
  */
-public abstract class NewArray extends StateSplit {
+public abstract class NewArray extends Value {
 
     private static final int INPUT_COUNT = 1;
     private static final int INPUT_LENGTH = 0;
@@ -69,9 +69,4 @@
         setFlag(Flag.NonNull);
         setLength(length);
     }
-
-    @Override
-    public boolean needsStateAfter() {
-        return false;
-    }
 }