Mercurial > hg > graal-jvmci-8
changeset 10834:45ca31374e9f
Documentation fixes.
author | Roland Schatz <roland.schatz@oracle.com> |
---|---|
date | Mon, 22 Jul 2013 11:58:00 +0200 |
parents | 079513fc609e |
children | 04f817fb0456 |
files | graal/com.oracle.graal.api.code/src/com/oracle/graal/api/code/CompilationResult.java graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/extended/ArrayRangeWriteNode.java graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/extended/WriteNode.java |
diffstat | 3 files changed, 7 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.graal.api.code/src/com/oracle/graal/api/code/CompilationResult.java Mon Jul 22 10:54:43 2013 +0200 +++ b/graal/com.oracle.graal.api.code/src/com/oracle/graal/api/code/CompilationResult.java Mon Jul 22 11:58:00 2013 +0200 @@ -137,7 +137,9 @@ } /** - * Represents a reference to data from the code. The associated data can be any constant. + * Represents a reference to data from the code. The associated data can be either a + * {@link Constant} or a raw byte array. The raw byte array is patched as is, no endian swapping + * is done on it. */ public static final class DataPatch extends Site { @@ -161,6 +163,8 @@ private DataPatch(int pcOffset, Constant data, byte[] rawData, int alignment, boolean inlined) { super(pcOffset); + assert (data == null) != (rawData == null) : "only one of data and rawData is allowed"; + assert !inlined || rawData == null : "rawData can not be inlined"; this.constant = data; this.rawConstant = rawData; this.alignment = alignment;
--- a/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/extended/ArrayRangeWriteNode.java Mon Jul 22 10:54:43 2013 +0200 +++ b/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/extended/ArrayRangeWriteNode.java Mon Jul 22 11:58:00 2013 +0200 @@ -56,7 +56,7 @@ public abstract boolean isObjectArray(); /** - * Returns whether this write is the initialization of the written location. Fit it is true, the + * Returns whether this write is the initialization of the written location. If it is true, the * old value of the memory location is either uninitialized or zero. If it is false, the memory * location is guaranteed to contain a valid value or zero. */
--- a/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/extended/WriteNode.java Mon Jul 22 10:54:43 2013 +0200 +++ b/graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/extended/WriteNode.java Mon Jul 22 11:58:00 2013 +0200 @@ -58,7 +58,7 @@ } /** - * Returns whether this write is the initialization of the written location. Fit it is true, the + * Returns whether this write is the initialization of the written location. If it is true, the * old value of the memory location is either uninitialized or zero. If it is false, the memory * location is guaranteed to contain a valid value or zero. */