|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.aicas.jamaica.lang.JitVmInterface
public abstract class JitVmInterface
JitCompilerVMInterface defines the native VM interface needed for the Jamaica just-in-time compiler.
| Method Summary | |
|---|---|
static long |
adrOfMemberDescriptor(Member m)
Obtain the memory address of the descriptor of a member |
static long |
adrOfObject(Object o)
Obtain the memory address of an object |
static byte[] |
byteCode(Member m)
Obtain the byte code for a given method or constructor. |
static int |
byteCodeSize(Member m)
Obtain the byte code size for a given method or constructor. |
static Class |
cPoolClass(Class cl,
int index)
Obtain the CPool Class entry at the given index. |
static double |
cPoolDouble(Class cl,
int index)
Obtain the CPool Double entry at the given index. |
static Field |
cPoolField(Class cl,
int index)
Obtain the CPool Field entry at the given index. |
static float |
cPoolFloat(Class cl,
int index)
Obtain the CPool Float entry at the given index. |
static int |
cPoolInteger(Class cl,
int index)
Obtain the CPool Integer entry at the given index. |
static long |
cPoolLong(Class cl,
int index)
Obtain the CPool Long entry at the given index. |
static Member |
cPoolMethod(Class cl,
int index)
Obtain the CPool Method/Constructor entry at the given index. |
static String |
cPoolString(Class cl,
int index)
Obtain the CPool String entry at the given index. |
static int |
cPoolTag(Class cl,
int index)
Obtain the CPool tag at the given index. |
static byte[] |
cPoolUtf8(Class cl,
int index)
Obtain the CPool Utf8 entry at the given index. |
static int[] |
exceptionTable(Member m)
Obtain the exception table for a given method or constructor. |
static int |
fieldOffset(Field field)
Obtain the offset of a given instance Field |
static int |
gcenvGreyList2Offset()
Obtain the offset of the greyList2 field in the GCEnv structure. |
static int |
gcenvWhiteOffset()
Obtain the offset of the white field in the GCEnv structure. |
static boolean |
hasReverseStub(Member m)
Check if a reverse stub exists for the given method's signature |
static int |
interfaceId(Class cl)
Obtain the id of a given interface class. |
static int |
methodOffset(Method method)
Obtain the offset of a given virtual or interface Method |
static Member |
nativeGetMember(Object ref)
Create a java.lang.reflect.Member (Method or Constructor) for a given method descriptor. |
static long |
nativeGetMethodAddress(Object ref)
Get the native address of method |
static Object |
nativeGetPreemptedMethod()
Find the preempeted thread by the JitProfiler thread |
static long |
nativeRoutineAllocJavaObject()
Obtain the address of a helper routine jamaicaInterpreter_allocJavaObject |
static long |
nativeRoutineAllocMultiArray()
Obtain the address of a helper routine jamaicaInterpreter_allocMultiArray |
static long |
nativeRoutineAllocSimpleArray()
Obtain the address of a helper routine jamaicaInterpreter_allocSimpleArray |
static long |
nativeRoutineCallFromCompiled()
Obtain the address of a helper routine call_from_compiled. |
static long |
nativeRoutineCheckAssign()
Obtain the address of a helper routine checkAssign. |
static long |
nativeRoutineCheckAssignment()
Obtain the address of a helper routine checkassignment. |
static long |
nativeRoutineCleanSavedRefs()
Obtain the address of a helper routine cleanSavedRefs |
static long |
nativeRoutineClearRefsOnExc()
Obtain the address of a helper routine clearRefsOnExc |
static long |
nativeRoutineCompatibleClass()
Obtain the address of a helper routine compatibleClass. |
static long |
nativeRoutineCreateJBIFrame()
Obtain the address of a helper routine createJBIFrame |
static long |
nativeRoutineDiv64()
Obtain the address of a helper routine div64 |
static long |
nativeRoutineDoubleToInt()
Obtain the address of a helper routine doubleToInt |
static long |
nativeRoutineDoubleToLong()
Obtain the address of a helper routine doubleToLong |
static long |
nativeRoutineInitializeClass()
Obtain the address of a helper routine init_class |
static long |
nativeRoutineLoadBooleanArray()
Obtain the address of a helper routine loadBooleanArray. |
static long |
nativeRoutineMod64()
Obtain the address of a helper routine mod64 |
static long |
nativeRoutineModDouble()
Obtain the address of a helper routine modDouble |
static long |
nativeRoutineMonitorEnter()
Obtain the address of a helper routine jamaicaMonitor_enter |
static long |
nativeRoutineMonitorExit()
Obtain the address of a helper routine jamaicaMonitor_exit |
static long |
nativeRoutinePrint()
Obtain the address of a helper routine that prints a C string. |
static long |
nativeRoutinePrintInt32()
Obtain the address of a helper routine that prints a 32 bit integer value. |
static long |
nativeRoutinePropagateException()
Obtain the address of a helper routine propagateException. |
static long |
nativeRoutineRemoveJBIFrame()
Obtain the address of a helper routine removeJBIFrame |
static long |
nativeRoutineSetJump()
Obtain the address of a helper routine setjmp. |
static long |
nativeRoutineStoreBooleanArray()
Obtain the address of a helper routine storeBooleanArray. |
static long |
nativeRoutineSyncPointFull()
Obtain the address of a helper routine syncPointFull. |
static long |
nativeRoutineTAE()
Obtain the address of a helper routine tAE (throw ArithmeticException) |
static long |
nativeRoutineTAIOOBE()
Obtain the address of a helper routine tAIOOBE (throw ArrayIndexOutOfBoundsException) |
static long |
nativeRoutineTASE()
Obtain the address of a helper routine tASE (throw ArrayStoreException) |
static long |
nativeRoutineTCCE()
Obtain the address of a helper routine tCCE (throw ClassCastException) |
static long |
nativeRoutineThrowFromCompiled()
Obtain the address of a helper routine jamaica_throw_from_compiled |
static long |
nativeRoutineTNASE()
Obtain the address of a helper routine tNASE (throw NegativeArraySizeException) |
static long |
nativeRoutineTNPE()
Obtain the address of a helper routine tNPE (throw NullPointerException) |
static long |
nativeRoutineTSIOOBE()
Obtain the address of a helper routine tSIOOBE (throw StringIndexOutOfBoundsException) |
static long |
nativeRoutineTSOE()
Obtain the address of a helper routine tSOE |
static void |
registerCode(Member m,
byte[] code,
int[] code_relocs,
byte[] stub,
int[] stub_relocs)
Register compiled code for a given method or constructor. |
static void |
registerReverseStub(byte[] revStub,
int id)
Register a new reverse (compiled -> interpreted) stub method for the given signature id. |
static int |
sizeOfJumpBuffer()
Obtain the size of the longjump-buffer |
static int |
threadCalledMethodOffset()
Obtain the offset of the called method field in the thread structure. |
static int |
threadCStackLimitOffset()
Obtain the offset of the C stack limit field in the thread structure. |
static int |
threadFrameOffset()
Obtain the offset of the frame field in the thread structure. |
static int |
threadJavaStackSizeOffset()
Obtain the offset of the javaStackSize field in the thread structure. |
static int |
threadJavaThreadOffset()
Obtain the offset of the javaThread field in the thread structure. |
static int |
threadMutatorContLocalsIndexOffset()
Obtain the offset of the mutator's cont locals index field in the thread structure. |
static int |
threadMutatorContLocalsOffset()
Obtain the offset of the mutator's cont locals field in the thread structure. |
static int |
threadMutatorGCEnvOffset()
Obtain the offset of the mutuator's gcenv field in the thread structure. |
static int |
threadRescheduleOffset()
Obtain the offset of the reschedule field in the thread structure. |
static int |
threadStackOffset()
Obtain the offset of the Java stack in the thread structure. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void registerCode(Member m,
byte[] code,
int[] code_relocs,
byte[] stub,
int[] stub_relocs)
m - the method or constructor that was compiledcode - the compiled code using JBI calling conventionscode_relocs - offsets in code that require relocationstub - the interpreted -> compiled stub method for context
switches from interpreter to this compiled method.stub_relocs - offsets in stub that require relocation
public static void registerReverseStub(byte[] revStub,
int id)
revStub - the code of the reverse stubid - the id of the signature of the methods to use this
reverse stub forpublic static byte[] byteCode(Member m)
m - the method or constructor
public static int byteCodeSize(Member m)
m - the method or constructor
public static int[] exceptionTable(Member m)
m - the method or constructor
public static byte[] cPoolUtf8(Class cl,
int index)
cl - the class whose CPool we want to accessindex - the cpool index
public static int cPoolInteger(Class cl,
int index)
cl - the class whose CPool we want to accessindex - the cpool index
public static float cPoolFloat(Class cl,
int index)
cl - the class whose CPool we want to accessindex - the cpool index
public static long cPoolLong(Class cl,
int index)
cl - the class whose CPool we want to accessindex - the cpool index
public static double cPoolDouble(Class cl,
int index)
cl - the class whose CPool we want to accessindex - the cpool index
public static Class cPoolClass(Class cl,
int index)
cl - the class whose CPool we want to accessindex - the cpool index
public static String cPoolString(Class cl,
int index)
cl - the class whose CPool we want to accessindex - the cpool index
public static Field cPoolField(Class cl,
int index)
cl - the class whose CPool we want to accessindex - the cpool index
public static Member cPoolMethod(Class cl,
int index)
cl - the class whose CPool we want to accessindex - the cpool index
public static int cPoolTag(Class cl,
int index)
cl - the class whose CPool we want to accessindex - the cpool index
public static int fieldOffset(Field field)
field - the instance field whose offset we want to access
public static int methodOffset(Method method)
method - the virtual or interface method whose offset we
want to access
public static int interfaceId(Class cl)
cl - the interface class whose id we want to determine
public static long adrOfMemberDescriptor(Member m)
m - the method or field
public static long adrOfObject(Object o)
o - the object
public static boolean hasReverseStub(Member m)
m - a method or constructor
public static long nativeRoutinePrintInt32()
public static long nativeRoutinePrint()
public static long nativeRoutineSetJump()
public static long nativeRoutineCleanSavedRefs()
public static long nativeRoutineClearRefsOnExc()
public static long nativeRoutineCreateJBIFrame()
public static long nativeRoutineRemoveJBIFrame()
public static long nativeRoutineCallFromCompiled()
public static long nativeRoutineSyncPointFull()
public static long nativeRoutineTSOE()
public static long nativeRoutineInitializeClass()
public static long nativeRoutineAllocJavaObject()
public static long nativeRoutineAllocSimpleArray()
public static long nativeRoutineAllocMultiArray()
public static long nativeRoutineThrowFromCompiled()
public static long nativeRoutineMonitorEnter()
public static long nativeRoutineMonitorExit()
public static long nativeRoutineTAE()
public static long nativeRoutineTNPE()
public static long nativeRoutineTSIOOBE()
public static long nativeRoutineTAIOOBE()
public static long nativeRoutineTNASE()
public static long nativeRoutineTCCE()
public static long nativeRoutineTASE()
public static long nativeRoutineCheckAssign()
public static long nativeRoutineCheckAssignment()
public static long nativeRoutineLoadBooleanArray()
public static long nativeRoutineStoreBooleanArray()
public static long nativeRoutineCompatibleClass()
public static long nativeRoutinePropagateException()
public static long nativeRoutineDiv64()
public static long nativeRoutineMod64()
public static long nativeRoutineModDouble()
public static long nativeRoutineDoubleToInt()
public static long nativeRoutineDoubleToLong()
public static int sizeOfJumpBuffer()
public static int threadStackOffset()
public static int threadCStackLimitOffset()
public static int threadFrameOffset()
public static int threadJavaStackSizeOffset()
public static int threadMutatorGCEnvOffset()
public static int threadMutatorContLocalsOffset()
public static int threadMutatorContLocalsIndexOffset()
public static int threadCalledMethodOffset()
public static int threadRescheduleOffset()
public static int threadJavaThreadOffset()
public static int gcenvGreyList2Offset()
public static int gcenvWhiteOffset()
public static Object nativeGetPreemptedMethod()
public static long nativeGetMethodAddress(Object ref)
ref - the JamaicaVM internal method descriptor
public static Member nativeGetMember(Object ref)
ref - the JamaicaVM internal method descriptor
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||