changeset 16258:3a463b85b195

fix for LoadMethodNode
author Lukas Stadler <lukas.stadler@oracle.com>
date Thu, 26 Jun 2014 17:29:37 +0200
parents 7e87ec3d156a
children 639e8085323a
files graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/extended/LoadMethodNode.java
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/extended/LoadMethodNode.java	Thu Jun 26 16:27:36 2014 +0200
+++ b/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/extended/LoadMethodNode.java	Thu Jun 26 17:29:37 2014 +0200
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 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
@@ -70,7 +70,7 @@
                 ResolvedJavaMethod resolvedMethod = type.findUniqueConcreteMethod(method);
                 if (resolvedMethod != null && !type.isInterface() && method.getDeclaringClass().isAssignableFrom(type)) {
                     tool.assumptions().recordConcreteMethod(method, type, resolvedMethod);
-                    return ConstantNode.forConstant(resolvedMethod.getEncoding(), tool.getMetaAccess(), graph());
+                    return ConstantNode.forConstant(resolvedMethod.getEncoding(), tool.getMetaAccess());
                 }
             }
         }
@@ -96,9 +96,9 @@
              * This really represent a misuse of LoadMethod since we're loading from a class which
              * isn't known to implement the original method but for now at least fold it away.
              */
-            return ConstantNode.forConstant(Constant.NULL_OBJECT, null, graph());
+            return ConstantNode.forConstant(Constant.NULL_OBJECT, null);
         } else {
-            return ConstantNode.forConstant(newMethod.getEncoding(), tool.getMetaAccess(), graph());
+            return ConstantNode.forConstant(newMethod.getEncoding(), tool.getMetaAccess());
         }
     }