Module com.dylibso.chicory.runtime
Class CompilerInterpreterMachine
java.lang.Object
com.dylibso.chicory.runtime.InterpreterMachine
com.dylibso.chicory.runtime.internal.CompilerInterpreterMachine
- All Implemented Interfaces:
Machine
This class is used by compiler generated classes. It MUST remain backwards compatible
so that older generated code can run on newer versions of the library.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.dylibso.chicory.runtime.InterpreterMachine
InterpreterMachine.Operands -
Field Summary
Fields inherited from class com.dylibso.chicory.runtime.InterpreterMachine
callStack -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected long[]call(MStack stack, Instance instance, Deque<StackFrame> callStack, int funcId, long[] args, com.dylibso.chicory.wasm.types.FunctionType callType, boolean popResults) protected voidCALL(InterpreterMachine.Operands operands) protected booleanuseCurrentInstanceInterpreter(Instance instance, Instance refInstance, int funcId) Methods inherited from class com.dylibso.chicory.runtime.InterpreterMachine
call, eval, evalDefault, extractArgsForParams, instance, readMemPtr, stack, THROW_REF, verifyIndirectCall
-
Constructor Details
-
CompilerInterpreterMachine
-
-
Method Details
-
call
protected long[] call(MStack stack, Instance instance, Deque<StackFrame> callStack, int funcId, long[] args, com.dylibso.chicory.wasm.types.FunctionType callType, boolean popResults) throws com.dylibso.chicory.wasm.ChicoryException - Overrides:
callin classInterpreterMachine- Throws:
com.dylibso.chicory.wasm.ChicoryException
-
CALL
- Overrides:
CALLin classInterpreterMachine
-
useCurrentInstanceInterpreter
protected boolean useCurrentInstanceInterpreter(Instance instance, Instance refInstance, int funcId) - Overrides:
useCurrentInstanceInterpreterin classInterpreterMachine
-