Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/node/NodeParser.java @ 11751:29de278b7c1b
Truffle-DSL: fix type equals test with javac.
author | Andreas Woess <andreas.woess@jku.at> |
---|---|
date | Sun, 22 Sep 2013 02:24:13 +0200 |
parents | 85b846b31690 |
children | 8e8347ecabbc |
comparison
equal
deleted
inserted
replaced
11750:bf7f09417f76 | 11751:29de278b7c1b |
---|---|
1076 // not found | 1076 // not found |
1077 nodeData.addError("Specialization constructor '%s(%s previousNode) { this(...); }' is required.", Utils.getSimpleName(type), Utils.getSimpleName(type)); | 1077 nodeData.addError("Specialization constructor '%s(%s previousNode) { this(...); }' is required.", Utils.getSimpleName(type), Utils.getSimpleName(type)); |
1078 } | 1078 } |
1079 | 1079 |
1080 static boolean isSourceSectionConstructor(ProcessorContext context, ExecutableElement constructor) { | 1080 static boolean isSourceSectionConstructor(ProcessorContext context, ExecutableElement constructor) { |
1081 return constructor.getParameters().size() == 1 && constructor.getParameters().get(0).asType().equals(context.getTruffleTypes().getSourceSection()); | 1081 return constructor.getParameters().size() == 1 && Utils.typeEquals(constructor.getParameters().get(0).asType(), context.getTruffleTypes().getSourceSection()); |
1082 } | 1082 } |
1083 | 1083 |
1084 private static boolean verifySpecializationParameters(NodeData nodeData) { | 1084 private static boolean verifySpecializationParameters(NodeData nodeData) { |
1085 boolean valid = true; | 1085 boolean valid = true; |
1086 int args = -1; | 1086 int args = -1; |