Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/generator/NodeCodeGenerator.java @ 20952:833e088ee7d3
Truffle-DSL: fixed invalid execute delegation
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Tue, 14 Apr 2015 19:41:36 +0200 |
parents | ae81dd154fb6 |
children | 37f65dc8c713 |
comparison
equal
deleted
inserted
replaced
20951:a77b760a0307 | 20952:833e088ee7d3 |
---|---|
150 if (prev != null && !ElementUtils.typeEquals(child.getNodeType(), prev)) { | 150 if (prev != null && !ElementUtils.typeEquals(child.getNodeType(), prev)) { |
151 allSame = false; | 151 allSame = false; |
152 } | 152 } |
153 prev = child.getNodeType(); | 153 prev = child.getNodeType(); |
154 } | 154 } |
155 TypeMirror commonNodeSuperType = ElementUtils.getCommonSuperType(context, nodeTypesList.toArray(new TypeMirror[nodeTypesList.size()])); | 155 TypeMirror commonNodeSuperType = ElementUtils.getCommonSuperType(context, nodeTypesList); |
156 | 156 |
157 Types types = context.getEnvironment().getTypeUtils(); | 157 Types types = context.getEnvironment().getTypeUtils(); |
158 TypeMirror factoryType = context.getType(NodeFactory.class); | 158 TypeMirror factoryType = context.getType(NodeFactory.class); |
159 TypeMirror baseType; | 159 TypeMirror baseType; |
160 if (allSame) { | 160 if (allSame) { |