Mercurial > hg > truffle
changeset 17123:deab46118819
Add methods to InstalledCode
author | Christian Wimmer <christian.wimmer@oracle.com> |
---|---|
date | Tue, 16 Sep 2014 18:35:46 -0700 |
parents | 5a260e749bca |
children | 7b3ece800806 |
files | graal/com.oracle.graal.api.code/src/com/oracle/graal/api/code/InstalledCode.java graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/meta/HotSpotInstalledCode.java |
diffstat | 2 files changed, 13 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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() {
--- 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; }