Mercurial > hg > graal-jvmci-8
comparison jvmci/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/CompilerToVM.java @ 23749:d6bd0b9cd0b6
remove uses of setAccessible (JDK-8165434)
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 07 Sep 2016 15:17:13 +0200 |
parents | 6542cd8da2da |
children | 6d2c72b822b0 |
comparison
equal
deleted
inserted
replaced
23748:3e551611f1fc | 23749:d6bd0b9cd0b6 |
---|---|
24 package jdk.vm.ci.hotspot; | 24 package jdk.vm.ci.hotspot; |
25 | 25 |
26 import static jdk.vm.ci.common.InitTimer.timer; | 26 import static jdk.vm.ci.common.InitTimer.timer; |
27 import static jdk.vm.ci.hotspot.HotSpotJVMCIRuntime.runtime; | 27 import static jdk.vm.ci.hotspot.HotSpotJVMCIRuntime.runtime; |
28 | 28 |
29 import java.lang.reflect.Constructor; | 29 import java.lang.reflect.Executable; |
30 import java.lang.reflect.Method; | |
31 | 30 |
32 import jdk.vm.ci.code.BytecodeFrame; | 31 import jdk.vm.ci.code.BytecodeFrame; |
33 import jdk.vm.ci.code.InstalledCode; | 32 import jdk.vm.ci.code.InstalledCode; |
34 import jdk.vm.ci.code.InvalidInstalledCodeException; | 33 import jdk.vm.ci.code.InvalidInstalledCodeException; |
35 import jdk.vm.ci.code.TargetDescription; | 34 import jdk.vm.ci.code.TargetDescription; |
364 * {@code Object.finalize()}. | 363 * {@code Object.finalize()}. |
365 */ | 364 */ |
366 native boolean hasFinalizableSubclass(HotSpotResolvedObjectTypeImpl type); | 365 native boolean hasFinalizableSubclass(HotSpotResolvedObjectTypeImpl type); |
367 | 366 |
368 /** | 367 /** |
369 * Gets the method corresponding to {@code holder} and slot number {@code slot} (i.e. | 368 * Gets the method corresponding to {@code executable}. |
370 * {@link Method#slot} or {@link Constructor#slot}). | 369 */ |
371 */ | 370 native HotSpotResolvedJavaMethodImpl asResolvedJavaMethod(Executable executable); |
372 native HotSpotResolvedJavaMethodImpl getResolvedJavaMethodAtSlot(Class<?> holder, int slot); | |
373 | 371 |
374 /** | 372 /** |
375 * Gets the maximum absolute offset of a PC relative call to {@code address} from any position | 373 * Gets the maximum absolute offset of a PC relative call to {@code address} from any position |
376 * in the code cache. | 374 * in the code cache. |
377 * | 375 * |
599 * @throws IllegalArgumentException if an out of range position is given | 597 * @throws IllegalArgumentException if an out of range position is given |
600 */ | 598 */ |
601 native int methodDataProfileDataSize(long metaspaceMethodData, int position); | 599 native int methodDataProfileDataSize(long metaspaceMethodData, int position); |
602 | 600 |
603 /** | 601 /** |
602 * Invokes non-public method {@code java.lang.invoke.LambdaForm.compileToBytecode()} on | |
603 * {@code lambdaForm} (which must be a {@code java.lang.invoke.LambdaForm} instance). | |
604 */ | |
605 native void compileToBytecode(Object lambdaForm); | |
606 | |
607 /** | |
604 * Return the amount of native stack required for the interpreter frames represented by | 608 * Return the amount of native stack required for the interpreter frames represented by |
605 * {@code frame}. This is used when emitting the stack banging code to ensure that there is | 609 * {@code frame}. This is used when emitting the stack banging code to ensure that there is |
606 * enough space for the frames during deoptimization. | 610 * enough space for the frames during deoptimization. |
607 * | 611 * |
608 * @param frame | 612 * @param frame |