< prev index next >
src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/CompilerToVM.java
Print this page
*** 25,34 ****
--- 25,35 ----
import static jdk.vm.ci.common.InitTimer.timer;
import static jdk.vm.ci.hotspot.HotSpotJVMCIRuntime.runtime;
import java.lang.reflect.Executable;
+ import java.lang.reflect.Field;
import jdk.vm.ci.code.BytecodeFrame;
import jdk.vm.ci.code.InstalledCode;
import jdk.vm.ci.code.InvalidInstalledCodeException;
import jdk.vm.ci.code.TargetDescription;
*** 655,660 ****
--- 656,674 ----
/**
* Gets the host class for {@code type}.
*/
native HotSpotResolvedObjectTypeImpl getHostClass(HotSpotResolvedObjectTypeImpl type);
+
+ /**
+ * Gets a {@link Executable} corresponding to {@code method}.
+ */
+ native Executable asReflectionExecutable(HotSpotResolvedJavaMethodImpl method);
+
+ /**
+ * Gets a {@link Field} denoted by {@code holder} and {@code index}.
+ *
+ * @param holder the class in which the requested field is declared
+ * @param fieldIndex the {@code fieldDescriptor::index()} denoting the field
+ */
+ native Field asReflectionField(HotSpotResolvedObjectTypeImpl holder, int fieldIndex);
}
< prev index next >