Package org.qbicc.interpreter.impl
Class VmImpl
java.lang.Object
org.qbicc.interpreter.impl.VmImpl
- All Implemented Interfaces:
Vm
-
Method Summary
Modifier and TypeMethodDescriptionorg.qbicc.interpreter.impl.MemoryImplallocate(int size) allocateDirectBuffer(ByteBuffer backingBuffer) box(ClassContext classContext, Literal literal) boxThin(ClassContext classContext, Literal literal) static VmImplcreate(CompilationContext ctxt, Consumer<VmObject> manualInitializer) createMethodHandle(ClassContext classContext, MethodHandleConstant constant) createMethodType(ClassContext classContext, MethodDescriptor methodDescriptor) voiddeliverSignal(Signal signal) getClassForDescriptor(VmClassLoader cl, TypeDescriptor descriptor) org.qbicc.interpreter.impl.VmClassLoaderImplgetClassLoaderForContext(ClassContext classContext) getGlobal(GlobalVariableElement variableElement) org.qbicc.interpreter.impl.VmPrimitiveClassImplgetPrimitiveClass(Primitive primitive) VmThread[]voidvoidinitialize(VmClass vmClass) org.qbicc.interpreter.impl.VmStringImplvoidinvokeExact(ConstructorElement method, VmObject instance, List<Object> args) invokeExact(MethodElement method, VmObject instance, List<Object> args) invokeVirtual(MethodElement method, VmObject instance, List<Object> args) loadClass(ClassContext classContext, String name) byte[]loadResource(ClassContext classContext, String name) List<byte[]>loadResources(ClassContext classContext, String name) newArrayOf(VmClass elementType, int size) newBooleanArray(boolean[] array) org.qbicc.interpreter.impl.VmByteArrayImplnewByteArray(byte[] array) newCharArray(char[] array) newDoubleArray(double[] array) newFloatArray(float[] array) newInstance(VmClass vmClass, ConstructorElement constructor, List<Object> arguments) newIntArray(int[] array) newLongArray(long[] array) newShortArray(short[] array) newTypeDefinitionBuilder(VmClassLoader classLoader) voidregisterInvokable(ExecutableElement element, VmInvokable invokable) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.qbicc.interpreter.Vm
doAttached
-
Method Details
-
getCompilationContext
- Specified by:
getCompilationContextin interfaceVm
-
initialize
public void initialize()- Specified by:
initializein interfaceVm
-
newThread
-
loadClass
-
loadResource
- Specified by:
loadResourcein interfaceVm- Throws:
Thrown
-
loadResources
- Specified by:
loadResourcesin interfaceVm- Throws:
Thrown
-
allocateObject
- Specified by:
allocateObjectin interfaceVm
-
invokeExact
- Specified by:
invokeExactin interfaceVm
-
invokeExact
- Specified by:
invokeExactin interfaceVm
-
invokeVirtual
- Specified by:
invokeVirtualin interfaceVm
-
newInstance
public VmObject newInstance(VmClass vmClass, ConstructorElement constructor, List<Object> arguments) throws Thrown - Specified by:
newInstancein interfaceVm- Throws:
Thrown
-
initialize
- Specified by:
initializein interfaceVm
-
deliverSignal
- Specified by:
deliverSignalin interfaceVm
-
allocateDirectBuffer
- Specified by:
allocateDirectBufferin interfaceVm
-
newTypeDefinitionBuilder
- Specified by:
newTypeDefinitionBuilderin interfaceVm
-
getMainThreadGroup
- Specified by:
getMainThreadGroupin interfaceVm
-
allocate
public org.qbicc.interpreter.impl.MemoryImpl allocate(int size) -
allocate
-
getClassLoaderForContext
public org.qbicc.interpreter.impl.VmClassLoaderImpl getClassLoaderForContext(ClassContext classContext) - Specified by:
getClassLoaderForContextin interfaceVm
-
registerInvokable
- Specified by:
registerInvokablein interfaceVm
-
getPrimitiveClass
- Specified by:
getPrimitiveClassin interfaceVm
-
createMethodType
- Specified by:
createMethodTypein interfaceVm
-
createMethodHandle
public VmObject createMethodHandle(ClassContext classContext, MethodHandleConstant constant) throws Thrown - Specified by:
createMethodHandlein interfaceVm- Throws:
Thrown
-
box
-
boxThin
-
newArrayOf
- Specified by:
newArrayOfin interfaceVm
-
newByteArray
public org.qbicc.interpreter.impl.VmByteArrayImpl newByteArray(byte[] array) - Specified by:
newByteArrayin interfaceVm
-
newCharArray
- Specified by:
newCharArrayin interfaceVm
-
newDoubleArray
- Specified by:
newDoubleArrayin interfaceVm
-
newFloatArray
- Specified by:
newFloatArrayin interfaceVm
-
newIntArray
- Specified by:
newIntArrayin interfaceVm
-
newLongArray
- Specified by:
newLongArrayin interfaceVm
-
newShortArray
- Specified by:
newShortArrayin interfaceVm
-
newBooleanArray
- Specified by:
newBooleanArrayin interfaceVm
-
getLookup
-
getStartedThreads
- Specified by:
getStartedThreadsin interfaceVm
-
getClassForDescriptor
- Specified by:
getClassForDescriptorin interfaceVm
-
intern
-
create
-
getGlobal
-