Mercurial > hg > graal-jvmci-8
diff graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/node/NodeData.java @ 11180:a9cb98ff8fd9
Truffle-DSL: Fixed compile error for nodes with no children and empty constructor.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Mon, 29 Jul 2013 16:50:10 +0200 |
parents | 8c8e47cc101d |
children | 2fb276f5e3e9 |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/node/NodeData.java Mon Jul 29 12:11:59 2013 +0200 +++ b/graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/node/NodeData.java Mon Jul 29 16:50:10 2013 +0200 @@ -94,6 +94,10 @@ return polymorphicDepth; } + public boolean isPolymorphic() { + return polymorphicDepth > 1; + } + void setPolymorphicDepth(int polymorphicDepth) { this.polymorphicDepth = polymorphicDepth; }