L2Simple_SuperCall

class L2Simple_SuperCall(val stackp: Int, val pc: Int, val nextOffset: Int, val liveIndices: IntArray, val expectedType: A_Type, val mustCheck: Boolean, val bundle: A_Bundle, val superUnionType: A_Type) : L2Simple_AbstractInvokerInstruction

Perform a lookup using arguments taken from the stack as for L2Simple_GeneralCall, but where the lookup is forced to look at or above the constraining tuple type.

Constructors

Link copied to clipboard
constructor(stackp: Int, pc: Int, nextOffset: Int, liveIndices: IntArray, expectedType: A_Type, mustCheck: Boolean, bundle: A_Bundle, superUnionType: A_Type)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val pc: Int
Link copied to clipboard
val stackp: Int
Link copied to clipboard

Functions

Link copied to clipboard

Generate a suitable print representation of the value.

Link copied to clipboard

A VariableGetException has occurred. Invoke the READ_UNASSIGNED_VARIABLE hook function, which, because it is ⊥-valued, can only reify. Eventually answer that StackReifier.

Link copied to clipboard

A VariableSetException has occurred. Run the implicit-observe handler, and answer null if it completes, or a suitable StackReifier if it eventually reifies.

Link copied to clipboard
open override fun reenter(registers: Array<AvailObject>, interpreter: Interpreter): StackReifier?

This is called when the invocation for this step had to reify, and now we've finished the actual Avail call and we're attempting to continue where we left off. We have to check the returned value and either capture it on the stack or invoke the result check failure function.

Link copied to clipboard
open override fun step(registers: Array<AvailObject>, interpreter: Interpreter): StackReifier?

Perform this instruction, a single step of an L2SimpleChunk. The mutable Array of AvailObjects acts as a simple set of registers. Element 0 is the current function, and the remaining elements correspond with the continuation slots, should one need to be constructed.

Link copied to clipboard
open override fun toString(): String