Companion

object Companion

Functions

Link copied to clipboard
fun createExceptOuters(code: A_RawFunction, outersCount: Int): AvailObject

Construct a function with the given code and room for the given number of outer variables. Do not initialize any outer variable slots.

Link copied to clipboard
fun createFunction(code: A_BasicObject, copiedTuple: A_Tuple): A_Function

Construct a function with the given code and tuple of copied variables.

Link copied to clipboard
fun createFunctionForPhrase(    phrase: A_Phrase,     module: A_Module,     lineNumber: Int): A_Function

Convert a phrase into a zero-argument A_Function.

Link copied to clipboard
fun createStubToCallMethod(functionType: A_Type, atom: A_Atom): A_Function

Create a function that takes arguments of the specified types, then calls the A_Method for the A_Bundle of the given A_Atom with those arguments.

Link copied to clipboard
fun createStubWithSignature(functionType: A_Type, function: A_Function): A_Function

Create a function that takes arguments of the specified types, then turns around and calls the function invocation method with the given function and the passed arguments assembled into a tuple.

Link copied to clipboard
fun createWithOuters1(code: A_RawFunction, outer1: AvailObject): AvailObject

Construct a function with the given code and one outer variable.

Link copied to clipboard
fun createWithOuters2(    code: A_RawFunction,     outer1: AvailObject,     outer2: AvailObject): AvailObject

Construct a function with the given code and two outer variables.

Link copied to clipboard
fun createWithOuters3(    code: A_RawFunction,     outer1: AvailObject,     outer2: AvailObject,     outer3: AvailObject): AvailObject

Construct a function with the given code and three outer variables.

Link copied to clipboard
fun createWithOuters4(    code: A_RawFunction,     outer1: AvailObject,     outer2: AvailObject,     outer3: AvailObject,     outer4: AvailObject): AvailObject

Construct a function with the given code and four outer variables.

Link copied to clipboard
fun createWithOuters5(    code: A_RawFunction,     outer1: AvailObject,     outer2: AvailObject,     outer3: AvailObject,     outer4: AvailObject,     outer5: AvailObject): AvailObject

Construct a function with the given code and five outer variables.

Link copied to clipboard
fun newCrashFunction(messageString: String, paramTypes: A_Tuple): A_Function

Construct a bootstrap A_Function that crashes when invoked.

Properties

Link copied to clipboard
val createExceptOutersMethod: CheckedMethod

Access the createExceptOuters method.

Link copied to clipboard
val createWithOuters1Method: CheckedMethod

Access the createWithOuters1 method.

Link copied to clipboard
val createWithOuters2Method: CheckedMethod

Access the createWithOuters2 method.

Link copied to clipboard
val createWithOuters3Method: CheckedMethod

Access the createWithOuters3 method.

Link copied to clipboard
val createWithOuters4Method: CheckedMethod

Access the createWithOuters4 method.

Link copied to clipboard
val createWithOuters5Method: CheckedMethod

Access the createWithOuters5 method.

Link copied to clipboard
val functionCodeMethod: CheckedMethod
Link copied to clipboard
val mutable: FunctionDescriptor

The mutable FunctionDescriptor.

Link copied to clipboard
val outerVarAtMethod: CheckedMethod

Access the A_Function.outerVarAt method.

Link copied to clipboard
val outerVarAtPutMethod: CheckedMethod

Access the A_Function.outerVarAtPut method.