8157249: [JVMCI] remove ConstantReflectionProvider.isEmbeddable method

Remove unused API

Reviewed-by: kvn
This commit is contained in:
Igor Veresov 2016-06-24 11:22:08 -07:00
parent 1dd1fb6cca
commit 33c94b986e
2 changed files with 0 additions and 15 deletions

View File

@ -96,15 +96,6 @@ public interface ConstantReflectionProvider {
*/
ResolvedJavaType asJavaType(Constant constant);
/**
* Check if the constant is embeddable in the code.
*
* @param constant the constant to test
*/
default boolean isEmbeddable(Constant constant) {
return true;
}
/**
* Gets access to the internals of {@link MethodHandle}.
*/

View File

@ -120,12 +120,6 @@ public class HotSpotConstantReflectionProviderTest {
Assert.assertEquals(actual, expected, "Unexpected result:");
}
@Test(dataProvider = "isEmbeddableDataProvider", dataProviderClass = IsEmbeddableDataProvider.class)
public void testIsEmbeddable(JavaConstant constant, boolean expected) {
boolean actual = CONSTANT_REFLECTION_PROVIDER.isEmbeddable(constant);
Assert.assertEquals(actual, expected, "Unexpected result:");
}
@Test
public void testGetMemoryAccessProvider() {
MemoryAccessProvider actual = CONSTANT_REFLECTION_PROVIDER.getMemoryAccessProvider();