Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/ast/CodeVariableElement.java @ 7846:91cc98eae8ee
Refactor guard creation methods are not flexible enough to handle two if guards.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Tue, 19 Feb 2013 14:29:12 +0100 |
parents | 5e3d1a68664e |
children |
comparison
equal
deleted
inserted
replaced
7845:0110e781b6fa | 7846:91cc98eae8ee |
---|---|
56 this.init = new CodeTree(CodeTreeKind.STRING, null, init); | 56 this.init = new CodeTree(CodeTreeKind.STRING, null, init); |
57 } | 57 } |
58 } | 58 } |
59 | 59 |
60 public CodeTreeBuilder createInitBuilder() { | 60 public CodeTreeBuilder createInitBuilder() { |
61 CodeTreeBuilder builder = new CodeTreeBuilder(); | 61 CodeTreeBuilder builder = new CodeTreeBuilder(null); |
62 init = builder.getTree(); | 62 init = builder.getTree(); |
63 init.setEnclosingElement(this); | 63 init.setEnclosingElement(this); |
64 return builder; | 64 return builder; |
65 } | 65 } |
66 | 66 |