8147564: [JVMCI] remove unused method CodeCacheProvider.needsDataPatch

Reviewed-by: twisti
This commit is contained in:
Roland Schatz 2016-01-18 17:31:14 +01:00
parent 6b826df140
commit fdb6716fd4
2 changed files with 0 additions and 11 deletions

View File

@ -27,7 +27,6 @@ import jdk.vm.ci.code.CompilationResult.DataPatch;
import jdk.vm.ci.code.CompilationResult.Mark;
import jdk.vm.ci.code.DataSection.Data;
import jdk.vm.ci.meta.Constant;
import jdk.vm.ci.meta.JavaConstant;
import jdk.vm.ci.meta.ResolvedJavaMethod;
import jdk.vm.ci.meta.SpeculationLog;
@ -121,12 +120,6 @@ public interface CodeCacheProvider {
*/
int getMinimumOutgoingSize();
/**
* Determines if a {@link DataPatch} should be created for a given primitive constant that is
* part of a {@link CompilationResult}. A data patch is always created for an object constant.
*/
boolean needsDataPatch(JavaConstant constant);
/**
* Create a {@link Data} item for one or more {@link Constant Constants}, that can be used in a
* {@link DataPatch}. If more than one {@link Constant} is given, then they are tightly packed

View File

@ -173,10 +173,6 @@ public class HotSpotCodeCacheProvider implements CodeCacheProvider {
runtime.getCompilerToVM().invalidateInstalledCode(installedCode);
}
public boolean needsDataPatch(JavaConstant constant) {
return constant instanceof HotSpotMetaspaceConstant;
}
private Data createSingleDataItem(Constant constant) {
int size;
DataBuilder builder;