diff graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/typesystem/TypeSystemCodeGenerator.java @ 8310:89006c76f737

Final fields of base node can be optionally passed to builtin specialization method. And a few fixes.
author Christian Humer <christian.humer@gmail.com>
date Fri, 15 Mar 2013 21:18:33 +0100
parents 0905d796944a
children 07f8d136a05e
line wrap: on
line diff
--- a/graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/typesystem/TypeSystemCodeGenerator.java	Thu Mar 14 13:13:59 2013 +0100
+++ b/graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/typesystem/TypeSystemCodeGenerator.java	Fri Mar 15 21:18:33 2013 +0100
@@ -41,15 +41,15 @@
     }
 
     public static String isTypeMethodName(TypeData type) {
-        return "is" + Utils.getSimpleName(type.getBoxedType());
+        return "is" + Utils.getTypeId(type.getBoxedType());
     }
 
     public static String asTypeMethodName(TypeData type) {
-        return "as" + Utils.getSimpleName(type.getBoxedType());
+        return "as" + Utils.getTypeId(type.getBoxedType());
     }
 
     public static String expectTypeMethodName(TypeData type) {
-        return "expect" + Utils.getSimpleName(type.getBoxedType());
+        return "expect" + Utils.getTypeId(type.getBoxedType());
     }
 
     /**