當前位置: 首頁>>代碼示例>>Java>>正文


Java StackSlot.get方法代碼示例

本文整理匯總了Java中jdk.vm.ci.code.StackSlot.get方法的典型用法代碼示例。如果您正苦於以下問題:Java StackSlot.get方法的具體用法?Java StackSlot.get怎麽用?Java StackSlot.get使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在jdk.vm.ci.code.StackSlot的用法示例。


在下文中一共展示了StackSlot.get方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: newStackSlot

import jdk.vm.ci.code.StackSlot; //導入方法依賴的package包/類
protected StackSlot newStackSlot(LIRKind kind) {
    curStackSlot += kind.getPlatformKind().getSizeInBytes();
    if (curStackSlot > frameSize) {
        int newFrameSize = curStackSlot;
        if (newFrameSize % stackAlignment != 0) {
            newFrameSize += stackAlignment - (newFrameSize % stackAlignment);
        }
        emitGrowStack(newFrameSize - frameSize);
        frameSize = newFrameSize;
    }
    return StackSlot.get(kind, -curStackSlot, true);
}
 
開發者ID:campolake,項目名稱:openjdk9,代碼行數:13,代碼來源:TestAssembler.java

示例2: s

import jdk.vm.ci.code.StackSlot; //導入方法依賴的package包/類
/** Create StackSlot. */
private static StackSlot s(int offset) {
    return StackSlot.get(kind, -offset, true);
}
 
開發者ID:AdoptOpenJDK,項目名稱:openjdk-jdk10,代碼行數:5,代碼來源:TraceGlobalMoveResolutionMappingTest.java

示例3: testSafepointMissingDebugInfo

import jdk.vm.ci.code.StackSlot; //導入方法依賴的package包/類
@Test(expected = JVMCIError.class)
public void testSafepointMissingDebugInfo() {
    Infopoint info = new Infopoint(0, null, InfopointReason.SAFEPOINT);
    StackSlot deoptRescueSlot = StackSlot.get(null, 0, true);
    installEmptyCode(new Site[]{info}, new Assumption[0], new Comment[0], 16, new DataPatch[0], deoptRescueSlot);
}
 
開發者ID:AdoptOpenJDK,項目名稱:openjdk-jdk10,代碼行數:7,代碼來源:TestInvalidCompilationResult.java

示例4: testInvalidDeoptRescueSlot

import jdk.vm.ci.code.StackSlot; //導入方法依賴的package包/類
@Test(expected = JVMCIError.class)
public void testInvalidDeoptRescueSlot() {
    StackSlot deoptRescueSlot = StackSlot.get(null, -1, false);
    installEmptyCode(new Site[]{}, new Assumption[0], new Comment[0], 16, new DataPatch[0], deoptRescueSlot);
}
 
開發者ID:AdoptOpenJDK,項目名稱:openjdk-jdk10,代碼行數:6,代碼來源:TestInvalidCompilationResult.java

示例5: testUnexpectedTypeOnStack

import jdk.vm.ci.code.StackSlot; //導入方法依賴的package包/類
@Test(expected = JVMCIError.class)
public void testUnexpectedTypeOnStack() {
    ValueKind<?> kind = new TestValueKind(codeCache.getTarget().arch, JavaKind.Int);
    StackSlot value = StackSlot.get(kind, 8, false);
    test(new JavaValue[]{value}, new JavaKind[]{JavaKind.Illegal}, 1, 0, 0);
}
 
開發者ID:AdoptOpenJDK,項目名稱:openjdk-jdk10,代碼行數:7,代碼來源:TestInvalidDebugInfo.java

示例6: newStackSlot

import jdk.vm.ci.code.StackSlot; //導入方法依賴的package包/類
protected StackSlot newStackSlot(PlatformKind kind) {
    growFrame(kind.getSizeInBytes());
    return StackSlot.get(new TestValueKind(kind), -curStackSlot, true);
}
 
開發者ID:AdoptOpenJDK,項目名稱:openjdk-jdk10,代碼行數:5,代碼來源:TestAssembler.java

示例7: testUnexpectedTypeOnStack

import jdk.vm.ci.code.StackSlot; //導入方法依賴的package包/類
@Test(expected = JVMCIError.class)
public void testUnexpectedTypeOnStack() {
    LIRKind kind = codeCache.getTarget().getLIRKind(JavaKind.Int);
    StackSlot value = StackSlot.get(kind, 8, false);
    test(new JavaValue[]{value}, new JavaKind[]{JavaKind.Illegal}, 1, 0, 0);
}
 
開發者ID:campolake,項目名稱:openjdk9,代碼行數:7,代碼來源:TestInvalidDebugInfo.java

示例8: allocateNewSpillSlot

import jdk.vm.ci.code.StackSlot; //導入方法依賴的package包/類
/**
 * Reserves a new spill slot in the frame of the method being compiled. The returned slot is
 * aligned on its natural alignment, i.e., an 8-byte spill slot is aligned at an 8-byte
 * boundary.
 *
 * @param kind The kind of the spill slot to be reserved.
 * @param additionalOffset
 * @return A spill slot denoting the reserved memory area.
 */
protected StackSlot allocateNewSpillSlot(ValueKind<?> kind, int additionalOffset) {
    return StackSlot.get(kind, -spillSize + additionalOffset, true);
}
 
開發者ID:AdoptOpenJDK,項目名稱:openjdk-jdk10,代碼行數:13,代碼來源:FrameMap.java


注:本文中的jdk.vm.ci.code.StackSlot.get方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。