Merge
This commit is contained in:
commit
c3db7375dc
hotspot
src/jdk.vm.ci/share/classes/jdk.vm.ci.meta/src/jdk/vm/ci/meta
test/compiler/jvmci/jdk.vm.ci.hotspot.test/src/jdk/vm/ci/hotspot/test
@ -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}.
|
||||
*/
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user