de.grogra.xl.vmx
public interface Routine
Routine provides a VMXState with the information
that is needed to construct a stack frame in which the
routine can be executed. It is a callback interface and used in the
methods VMXState.invoke(Routine, int, Authorization) and
VMXState.createDescriptor(Routine, int, Authorization).| Modifier and Type | Method and Description |
|---|---|
AbruptCompletion.Return |
execute(VMXState s)
This callback method is invoked by the executing
VMXState. |
int |
getFrameSize()
Computes the number of VMXState stack elements for the frame
of this routine.
|
int |
getJavaFrameSize()
Computes the number of VMXState stack elements for the Java frame
of this routine.
|
int |
getParameterSize()
Computes the number of VMXState stack elements for the parameters
of this routine.
|
boolean |
hasJavaParameters()
Determines whether this routine expects its parameters on
the Java frame or the normal frame.
|
AbruptCompletion.Return execute(VMXState s)
VMXState.
A return value has to be wrapped in an instance of
AbruptCompletion.Return.s - the executing VMXStateint getFrameSize()
int getJavaFrameSize()
int getParameterSize()
boolean hasJavaParameters()
true iff parameters are expected on the Java frame