org.qbicc.runtime.stackwalk.JavaStackFrameCache Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qbicc-runtime-main Show documentation
Show all versions of qbicc-runtime-main Show documentation
Qbicc run time main entry point
package org.qbicc.runtime.stackwalk;
import org.qbicc.runtime.AutoQueued;
import java.util.Arrays;
@SuppressWarnings("unused")
public class JavaStackFrameCache implements JavaStackFrameVisitor {
private final int[] sourceCodeIndexList;
@AutoQueued
JavaStackFrameCache(final int frameCount) {
this.sourceCodeIndexList = new int[frameCount];
}
@AutoQueued
public Object getSourceCodeIndexList() {
return Arrays.copyOf(sourceCodeIndexList, sourceCodeIndexList.length);
}
@Override
@AutoQueued
public void visitFrame(final int frameIndex, final int scIndex) {
sourceCodeIndexList[frameIndex] = scIndex;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy