本文整理匯總了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);
}