Mercurial > hg > graal-compiler
diff graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/java/model/CodeExecutableElement.java @ 18761:a665483c3881
Truffle-DSL: new node layout implementation.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Mon, 29 Dec 2014 23:38:54 +0100 |
parents | 62cfffca9be2 |
children | 18c0f02fa4d2 |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/java/model/CodeExecutableElement.java Mon Dec 29 23:38:50 2014 +0100 +++ b/graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/java/model/CodeExecutableElement.java Mon Dec 29 23:38:54 2014 +0100 @@ -123,6 +123,17 @@ return builder; } + public CodeTreeBuilder appendBuilder() { + CodeTreeBuilder builder = new CodeTreeBuilder(null); + builder.setEnclosingElement(this); + if (bodyTree != null) { + builder.tree(bodyTree); + } + this.bodyTree = builder.getTree(); + this.body = null; + return builder; + } + public void setBodyTree(CodeTree body) { this.bodyTree = body; }