Mercurial > hg > truffle
diff graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/meta/HotSpotNmethod.java @ 10052:5b21ddb3deaa
readd optional graph to HotSpotNmethod
author | Andreas Woess <andreas.woess@jku.at> |
---|---|
date | Fri, 14 Jun 2013 17:28:00 +0200 |
parents | 6e4b72bcc97f |
children | 3489047ffea2 |
line wrap: on
line diff
--- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/meta/HotSpotNmethod.java Fri Jun 14 16:30:02 2013 +0200 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/meta/HotSpotNmethod.java Fri Jun 14 17:28:00 2013 +0200 @@ -28,6 +28,7 @@ import com.oracle.graal.api.code.*; import com.oracle.graal.api.meta.*; +import com.oracle.graal.graph.*; /** * Implementation of {@link InstalledCode} for code installed as an nmethod. The nmethod stores a @@ -44,16 +45,22 @@ private final HotSpotResolvedJavaMethod method; private final boolean isDefault; + private final Graph graph; - public HotSpotNmethod(HotSpotResolvedJavaMethod method, boolean isDefault) { + public HotSpotNmethod(HotSpotResolvedJavaMethod method, boolean isDefault, Graph graph) { this.method = method; this.isDefault = isDefault; + this.graph = graph; } public boolean isDefault() { return isDefault; } + public Graph getGraph() { + return graph; + } + @Override public ResolvedJavaMethod getMethod() { return method;