Mercurial > hg > graal-jvmci-8
diff graal/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/NodeUtil.java @ 9258:07f8d136a05e
Truffle API changes for the Frame API. Introduction of Assumptions class.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Tue, 23 Apr 2013 15:34:06 +0200 |
parents | 5e3d1a68664e |
children | 8cf939b349dd |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/NodeUtil.java Tue Apr 23 15:08:11 2013 +0200 +++ b/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/NodeUtil.java Tue Apr 23 15:34:06 2013 +0200 @@ -99,6 +99,21 @@ this.parentOffset = parentOffsetTemp; } + + /** + * (db) getters added to support AST cloning for parallel execution. + */ + public long getParentOffset() { + return parentOffset; + } + + public long[] getNodeFieldOffsets() { + return nodeFieldOffsets; + } + + public long[] getNodeArrayFieldOffsets() { + return nodeArrayFieldOffsets; + } } public static class NodeIterator implements Iterator<Node> { @@ -180,7 +195,7 @@ return array; } - private static final Unsafe unsafe = getUnsafe(); + protected static final Unsafe unsafe = getUnsafe(); private static Unsafe getUnsafe() { try {