# HG changeset patch # User Christian Wimmer # Date 1410917746 25200 # Node ID deab461188194aac1e44bc7259c7dbe6e84fed55 # Parent 5a260e749bcab06a9e6901d238accf2965ee5954 Add methods to InstalledCode diff -r 5a260e749bca -r deab46118819 graal/com.oracle.graal.api.code/src/com/oracle/graal/api/code/InstalledCode.java --- a/graal/com.oracle.graal.api.code/src/com/oracle/graal/api/code/InstalledCode.java Tue Sep 16 18:35:22 2014 -0700 +++ b/graal/com.oracle.graal.api.code/src/com/oracle/graal/api/code/InstalledCode.java Tue Sep 16 18:35:46 2014 -0700 @@ -44,6 +44,11 @@ this.name = name; } + public final void setAddress(long address) { + this.address = address; + version++; + } + /** * @return the address of this code blob */ @@ -67,6 +72,13 @@ } /** + * Returns the number of instruction bytes for this code. + */ + public long getCodeSize() { + return 0; + } + + /** * Returns a copy of this installed code if it is {@linkplain #isValid() valid}, null otherwise. */ public byte[] getCode() { diff -r 5a260e749bca -r deab46118819 graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/meta/HotSpotInstalledCode.java --- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/meta/HotSpotInstalledCode.java Tue Sep 16 18:35:22 2014 -0700 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/meta/HotSpotInstalledCode.java Tue Sep 16 18:35:46 2014 -0700 @@ -80,6 +80,7 @@ return codeStart; } + @Override public long getCodeSize() { return codeSize; }