本文整理汇总了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);
}
示例2: s
import jdk.vm.ci.code.StackSlot; //导入方法依赖的package包/类
/** Create StackSlot. */
private static StackSlot s(int offset) {
return StackSlot.get(kind, -offset, true);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}