--- old/src/jdk.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotNmethod.java 2015-11-02 17:06:08.000000000 -1000 +++ new/src/jdk.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotNmethod.java 2015-11-02 17:06:08.000000000 -1000 @@ -22,10 +22,12 @@ */ package jdk.vm.ci.hotspot; -import static jdk.vm.ci.hotspot.HotSpotJVMCIRuntime.*; - -import jdk.vm.ci.code.*; -import jdk.vm.ci.meta.*; +import static jdk.vm.ci.hotspot.CompilerToVM.compilerToVM; +import jdk.vm.ci.code.InstalledCode; +import jdk.vm.ci.code.InvalidInstalledCodeException; +import jdk.vm.ci.meta.JavaKind; +import jdk.vm.ci.meta.JavaType; +import jdk.vm.ci.meta.ResolvedJavaMethod; /** * Implementation of {@link InstalledCode} for code installed as an nmethod. The nmethod stores a @@ -45,34 +47,24 @@ private final HotSpotResolvedJavaMethod method; private final boolean isDefault; - private final boolean isExternal; public HotSpotNmethod(HotSpotResolvedJavaMethod method, String name, boolean isDefault) { - this(method, name, isDefault, false); - } - - public HotSpotNmethod(HotSpotResolvedJavaMethod method, String name, boolean isDefault, boolean isExternal) { super(name); this.method = method; this.isDefault = isDefault; - this.isExternal = isExternal; } public boolean isDefault() { return isDefault; } - public boolean isExternal() { - return isExternal; - } - public ResolvedJavaMethod getMethod() { return method; } @Override public void invalidate() { - runtime().getCompilerToVM().invalidateInstalledCode(this); + compilerToVM().invalidateInstalledCode(this); } @Override @@ -105,8 +97,7 @@ @Override public Object executeVarargs(Object... args) throws InvalidInstalledCodeException { assert checkArgs(args); - assert !isExternal(); - return runtime().getCompilerToVM().executeInstalledCode(args, this); + return compilerToVM().executeInstalledCode(args, this); } @Override