Mercurial > hg > truffle
diff graal/com.oracle.graal.api.code/src/com/oracle/graal/api/code/CompilationResult.java @ 18935:07f2a49f0bfb
Various adjustments to simplify future merges
author | Paul Woegerer <paul.woegerer@oracle.com> |
---|---|
date | Fri, 23 Jan 2015 15:51:35 +0100 |
parents | bd74da0a76f3 |
children | 7ebed83df427 |
line wrap: on
line diff
--- a/graal/com.oracle.graal.api.code/src/com/oracle/graal/api/code/CompilationResult.java Fri Jan 23 14:32:11 2015 +0100 +++ b/graal/com.oracle.graal.api.code/src/com/oracle/graal/api/code/CompilationResult.java Fri Jan 23 15:51:35 2015 +0100 @@ -234,6 +234,7 @@ private static final long serialVersionUID = 9011681879878139182L; + private boolean initialized; private int offset; public DataSectionReference() { @@ -242,10 +243,15 @@ } public int getOffset() { + assert initialized; + return offset; } public void setOffset(int offset) { + assert !initialized; + initialized = true; + this.offset = offset; }