当前位置: 首页>>代码示例>>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;未经允许,请勿转载。