Mercurial > hg > truffle
comparison 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 |
comparison
equal
deleted
inserted
replaced
18934:f7c940b59147 | 18935:07f2a49f0bfb |
---|---|
232 | 232 |
233 public static final class DataSectionReference extends Reference { | 233 public static final class DataSectionReference extends Reference { |
234 | 234 |
235 private static final long serialVersionUID = 9011681879878139182L; | 235 private static final long serialVersionUID = 9011681879878139182L; |
236 | 236 |
237 private boolean initialized; | |
237 private int offset; | 238 private int offset; |
238 | 239 |
239 public DataSectionReference() { | 240 public DataSectionReference() { |
240 // will be set after the data section layout is fixed | 241 // will be set after the data section layout is fixed |
241 offset = 0xDEADDEAD; | 242 offset = 0xDEADDEAD; |
242 } | 243 } |
243 | 244 |
244 public int getOffset() { | 245 public int getOffset() { |
246 assert initialized; | |
247 | |
245 return offset; | 248 return offset; |
246 } | 249 } |
247 | 250 |
248 public void setOffset(int offset) { | 251 public void setOffset(int offset) { |
252 assert !initialized; | |
253 initialized = true; | |
254 | |
249 this.offset = offset; | 255 this.offset = offset; |
250 } | 256 } |
251 | 257 |
252 @Override | 258 @Override |
253 public int hashCode() { | 259 public int hashCode() { |