本文整理匯總了Java中jdk.vm.ci.code.StackSlot.getOffset方法的典型用法代碼示例。如果您正苦於以下問題:Java StackSlot.getOffset方法的具體用法?Java StackSlot.getOffset怎麽用?Java StackSlot.getOffset使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類jdk.vm.ci.code.StackSlot
的用法示例。
在下文中一共展示了StackSlot.getOffset方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: offsetForStackSlot
import jdk.vm.ci.code.StackSlot; //導入方法依賴的package包/類
/**
* Computes the offset of a stack slot relative to the frame register.
*
* @param slot a stack slot
* @return the offset of the stack slot
*/
public int offsetForStackSlot(StackSlot slot) {
if (slot.isInCallerFrame()) {
accessesCallerFrame = true;
}
return slot.getOffset(totalFrameSize());
}
示例2: toLocation
import jdk.vm.ci.code.StackSlot; //導入方法依賴的package包/類
private Location toLocation(Value v, int offset) {
if (isRegister(v)) {
return Location.subregister(asRegister(v), offset);
} else {
StackSlot s = asStackSlot(v);
int totalOffset = s.getOffset(totalFrameSize) + offset;
if (totalOffset > maxOopMapStackOffset) {
throw new PermanentBailoutException("stack offset %d for oopmap is greater than encoding limit %d", totalOffset, maxOopMapStackOffset);
}
return Location.stack(totalOffset);
}
}
示例3: getOffset
import jdk.vm.ci.code.StackSlot; //導入方法依賴的package包/類
private int getOffset(StackSlot stackSlot) {
return stackSlot.getOffset(frameMap.totalFrameSize());
}
示例4: getOffset
import jdk.vm.ci.code.StackSlot; //導入方法依賴的package包/類
public int getOffset(StackSlot slot) {
return slot.getOffset(frameSize);
}