changeset 5562:4ffc061dc71a

commented out use of non-snippet eager resolving in GraphBuilder
author Doug Simon <doug.simon@oracle.com>
date Mon, 11 Jun 2012 15:35:23 +0200
parents faa9628bb37d
children 6a2671066204
files graal/com.oracle.graal.java/src/com/oracle/graal/java/GraphBuilderPhase.java
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/graal/com.oracle.graal.java/src/com/oracle/graal/java/GraphBuilderPhase.java	Mon Jun 11 15:34:33 2012 +0200
+++ b/graal/com.oracle.graal.java/src/com/oracle/graal/java/GraphBuilderPhase.java	Mon Jun 11 15:35:23 2012 +0200
@@ -592,17 +592,17 @@
     }
 
     private Object lookupConstant(int cpi, int opcode) {
-        eagerResolving(cpi, opcode);
+        eagerResolvingForSnippets(cpi, opcode);
         Object result = constantPool.lookupConstant(cpi);
         assert !graphBuilderConfig.eagerResolving() || !(result instanceof JavaType) || (result instanceof ResolvedJavaType);
         return result;
     }
 
-    private void eagerResolving(int cpi, int bytecode) {
-        if (graphBuilderConfig.eagerResolving()) {
-            constantPool.loadReferencedType(cpi, bytecode);
-        }
-    }
+//    private void eagerResolving(int cpi, int bytecode) {
+//        if (graphBuilderConfig.eagerResolving()) {
+//            constantPool.loadReferencedType(cpi, bytecode);
+//        }
+//    }
 
     private void eagerResolvingForSnippets(int cpi, int bytecode) {
         if (graphBuilderConfig.eagerResolvingForSnippets()) {