hotspot/src/jdk.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/CompilerToVM.java
changeset 35593 c733fd198e6e
parent 35592 5814f874d736
child 36842 8f0d0faa51e2
equal deleted inserted replaced
35592:5814f874d736 35593:c733fd198e6e
    27 import static jdk.vm.ci.inittimer.InitTimer.timer;
    27 import static jdk.vm.ci.inittimer.InitTimer.timer;
    28 
    28 
    29 import java.lang.reflect.Constructor;
    29 import java.lang.reflect.Constructor;
    30 import java.lang.reflect.Method;
    30 import java.lang.reflect.Method;
    31 
    31 
       
    32 import jdk.vm.ci.code.BytecodeFrame;
    32 import jdk.vm.ci.code.InstalledCode;
    33 import jdk.vm.ci.code.InstalledCode;
    33 import jdk.vm.ci.code.InvalidInstalledCodeException;
    34 import jdk.vm.ci.code.InvalidInstalledCodeException;
    34 import jdk.vm.ci.code.TargetDescription;
    35 import jdk.vm.ci.code.TargetDescription;
    35 import jdk.vm.ci.common.JVMCIError;
    36 import jdk.vm.ci.common.JVMCIError;
    36 import jdk.vm.ci.hotspotvmconfig.HotSpotVMField;
    37 import jdk.vm.ci.hotspotvmconfig.HotSpotVMField;
   587      * @param position
   588      * @param position
   588      * @return the size of the ProfileData item pointed at by {@code position}
   589      * @return the size of the ProfileData item pointed at by {@code position}
   589      * @throws IllegalArgumentException if an out of range position is given
   590      * @throws IllegalArgumentException if an out of range position is given
   590      */
   591      */
   591     native int methodDataProfileDataSize(long metaspaceMethodData, int position);
   592     native int methodDataProfileDataSize(long metaspaceMethodData, int position);
       
   593 
       
   594     /**
       
   595      * Return the amount of native stack required for the interpreter frames represented by
       
   596      * {@code frame}. This is used when emitting the stack banging code to ensure that there is
       
   597      * enough space for the frames during deoptimization.
       
   598      *
       
   599      * @param frame
       
   600      * @return the number of bytes required for deoptimization of this frame state
       
   601      */
       
   602     native int interpreterFrameSize(BytecodeFrame frame);
   592 }
   603 }