changeset 22772:f16c1266b0de

Remove unused method.
author Roland Schatz <roland.schatz@oracle.com>
date Fri, 15 Jan 2016 15:51:01 +0100
parents 994b87797b9d
children 9273bb6ba33e
files jvmci/jdk.vm.ci.code/src/jdk/vm/ci/code/CodeCacheProvider.java jvmci/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotCodeCacheProvider.java
diffstat 2 files changed, 2 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/jvmci/jdk.vm.ci.code/src/jdk/vm/ci/code/CodeCacheProvider.java	Fri Jan 15 16:17:37 2016 +0100
+++ b/jvmci/jdk.vm.ci.code/src/jdk/vm/ci/code/CodeCacheProvider.java	Fri Jan 15 15:51:01 2016 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009, 2014, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2009, 2016, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -27,7 +27,6 @@
 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;
 
@@ -122,12 +121,6 @@
     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
      * into a single {@link Data} item.
--- a/jvmci/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotCodeCacheProvider.java	Fri Jan 15 16:17:37 2016 +0100
+++ b/jvmci/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotCodeCacheProvider.java	Fri Jan 15 15:51:01 2016 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -173,10 +173,6 @@
         runtime.getCompilerToVM().invalidateInstalledCode(installedCode);
     }
 
-    public boolean needsDataPatch(JavaConstant constant) {
-        return constant instanceof HotSpotMetaspaceConstant;
-    }
-
     private Data createSingleDataItem(Constant constant) {
         int size;
         DataBuilder builder;