changeset 6383:f43a545b0097

removed need for calling Node.toString() when creating an InliningIdentifier
author Doug Simon <doug.simon@oracle.com>
date Thu, 13 Sep 2012 11:13:09 +0200
parents 9b6b8626983a
children 2643a994e709
files graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/util/InliningUtil.java graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/FrameState.java
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/util/InliningUtil.java	Thu Sep 13 11:05:37 2012 +0200
+++ b/graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/util/InliningUtil.java	Thu Sep 13 11:13:09 2012 +0200
@@ -802,7 +802,7 @@
      * @param receiverNullCheck true if a null check needs to be generated for non-static inlinings, false if no such check is required
      */
     public static void inline(Invoke invoke, StructuredGraph inlineGraph, boolean receiverNullCheck) {
-        InliningIdentifier identifier = new InliningIdentifier(inlineGraph.method(), invoke.toString());
+        InliningIdentifier identifier = new InliningIdentifier(inlineGraph.method(), invoke);
         NodeInputList<ValueNode> parameters = invoke.callTarget().arguments();
         StructuredGraph graph = (StructuredGraph) invoke.node().graph();
 
--- a/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/FrameState.java	Thu Sep 13 11:05:37 2012 +0200
+++ b/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/FrameState.java	Thu Sep 13 11:13:09 2012 +0200
@@ -44,9 +44,9 @@
      */
     public static final class InliningIdentifier {
         private final ResolvedJavaMethod method;
-        private final String context;
+        private final Object context;
 
-        public InliningIdentifier(ResolvedJavaMethod method, String context) {
+        public InliningIdentifier(ResolvedJavaMethod method, Object context) {
             this.method = method;
             this.context = context;
         }