diff graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/java/AccessFieldNode.java @ 16332:ddd68e267e34

explicitly define optional inputs in @Input
author Lukas Stadler <lukas.stadler@oracle.com>
date Mon, 30 Jun 2014 18:46:41 +0200
parents 820c6d353358
children 5d468add216f
line wrap: on
line diff
--- a/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/java/AccessFieldNode.java	Mon Jun 30 18:46:41 2014 +0200
+++ b/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/java/AccessFieldNode.java	Mon Jun 30 18:46:41 2014 +0200
@@ -32,7 +32,7 @@
  */
 public abstract class AccessFieldNode extends FixedWithNextNode implements Lowerable {
 
-    @Input private ValueNode object;
+    @OptionalInput private ValueNode object;
 
     protected final ResolvedJavaField field;
 
@@ -42,7 +42,7 @@
 
     /**
      * Constructs a new access field object.
-     * 
+     *
      * @param object the instruction producing the receiver object
      * @param field the compiler interface representation of the field
      */
@@ -55,7 +55,7 @@
 
     /**
      * Gets the compiler interface field for this field access.
-     * 
+     *
      * @return the compiler interface field for this field access
      */
     public ResolvedJavaField field() {
@@ -64,7 +64,7 @@
 
     /**
      * Checks whether this field access is an access to a static field.
-     * 
+     *
      * @return {@code true} if this field access is to a static field
      */
     public boolean isStatic() {
@@ -73,7 +73,7 @@
 
     /**
      * Checks whether this field is declared volatile.
-     * 
+     *
      * @return {@code true} if the field is resolved and declared volatile
      */
     public boolean isVolatile() {