comparison graal/com.oracle.graal.snippets/src/com/oracle/graal/snippets/WordTypeRewriterPhase.java @ 6539:2463eb24b644

Cleanup of Graal API: Rename methods so that it follows the getXxx naming convention and so that they are similar to the names of the java.lang.reflect classes. Remove unused methods.
author Christian Wimmer <christian.wimmer@oracle.com>
date Tue, 09 Oct 2012 15:23:38 -0700
parents ee651c726397
children 030c4a1d6a03 41938af2b3d8
comparison
equal deleted inserted replaced
6538:d1ba5ba4f484 6539:2463eb24b644
156 } 156 }
157 157
158 case W2A: { 158 case W2A: {
159 assert arguments.size() == 1; 159 assert arguments.size() == 1;
160 ValueNode value = arguments.first(); 160 ValueNode value = arguments.first();
161 ResolvedJavaType targetType = (ResolvedJavaType) targetMethod.signature().returnType(targetMethod.holder()); 161 ResolvedJavaType targetType = (ResolvedJavaType) targetMethod.getSignature().getReturnType(targetMethod.getDeclaringClass());
162 UnsafeCastNode cast = graph.unique(new UnsafeCastNode(value, targetType)); 162 UnsafeCastNode cast = graph.unique(new UnsafeCastNode(value, targetType));
163 replace(invoke, cast); 163 replace(invoke, cast);
164 break; 164 break;
165 } 165 }
166 166