comparison 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
comparison
equal deleted inserted replaced
8280:2ddf84436009 8310:89006c76f737
39 public TypeSystemCodeGenerator(ProcessorContext context) { 39 public TypeSystemCodeGenerator(ProcessorContext context) {
40 super(context); 40 super(context);
41 } 41 }
42 42
43 public static String isTypeMethodName(TypeData type) { 43 public static String isTypeMethodName(TypeData type) {
44 return "is" + Utils.getSimpleName(type.getBoxedType()); 44 return "is" + Utils.getTypeId(type.getBoxedType());
45 } 45 }
46 46
47 public static String asTypeMethodName(TypeData type) { 47 public static String asTypeMethodName(TypeData type) {
48 return "as" + Utils.getSimpleName(type.getBoxedType()); 48 return "as" + Utils.getTypeId(type.getBoxedType());
49 } 49 }
50 50
51 public static String expectTypeMethodName(TypeData type) { 51 public static String expectTypeMethodName(TypeData type) {
52 return "expect" + Utils.getSimpleName(type.getBoxedType()); 52 return "expect" + Utils.getTypeId(type.getBoxedType());
53 } 53 }
54 54
55 /** 55 /**
56 * Finds the generated singleton field for a TypeSytemData instance. TypeSystemCodeGenerator 56 * Finds the generated singleton field for a TypeSytemData instance. TypeSystemCodeGenerator
57 * must be applied to the TypeSystemData model before use. 57 * must be applied to the TypeSystemData model before use.