comparison graal/com.oracle.graal.snippets/src/com/oracle/graal/snippets/Snippet.java @ 7059:e4d9f153934f

removed ResolvedJavaType.toJava() and introduced ResolvedJavaType.isPrimitive()
author Doug Simon <doug.simon@oracle.com>
date Tue, 27 Nov 2012 22:24:39 +0100
parents 41938af2b3d8
children 3e61ffb9ce29
comparison
equal deleted inserted replaced
7058:413f9352cdfd 7059:e4d9f153934f
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any 20 * or visit www.oracle.com if you need additional information or have any
21 * questions. 21 * questions.
22 */ 22 */
23 package com.oracle.graal.snippets; 23 package com.oracle.graal.snippets;
24
25 import static com.oracle.graal.api.meta.MetaUtil.*;
24 26
25 import java.lang.annotation.*; 27 import java.lang.annotation.*;
26 import java.lang.reflect.*; 28 import java.lang.reflect.*;
27 29
28 import com.oracle.graal.api.meta.*; 30 import com.oracle.graal.api.meta.*;
78 return false; 80 return false;
79 } 81 }
80 if (method.getAnnotation(NodeIntrinsic.class) != null) { 82 if (method.getAnnotation(NodeIntrinsic.class) != null) {
81 return false; 83 return false;
82 } 84 }
83 if (Throwable.class.isAssignableFrom(method.getDeclaringClass().toJava())) { 85 if (Throwable.class.isAssignableFrom(getMirrorOrFail(method.getDeclaringClass(), null))) {
84 if (method.getName().equals("<init>")) { 86 if (method.getName().equals("<init>")) {
85 return false; 87 return false;
86 } 88 }
87 } 89 }
88 if (method.getAnnotation(Operation.class) != null) { 90 if (method.getAnnotation(Operation.class) != null) {