RegisterKind

One of the kinds of registers that Level Two supports.

Parameters

kindName

A descriptive name for this kind of register.

prefix

The prefix to use when naming registers of this kind.

jvmTypeString

The canonical String used to identify this Type of register to the JVM.

loadInstruction

The JVM instruction for loading.

storeInstruction

The JVM instruction for storing.

restrictionFlag

The corresponding RestrictionFlagEncoding.

Entries

Link copied to clipboard

The kind of register that holds an AvailObject.

Link copied to clipboard

The kind of register that holds an Int.

Link copied to clipboard

The kind of register that holds a double.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

The descriptive name of this register kind.

Link copied to clipboard

The JVM instruction that loads a register of this kind.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The prefix to use for registers of this kind.

Link copied to clipboard

The RestrictionFlagEncoding used to indicate a TypeRestriction has an available register of this kind.

Link copied to clipboard

The JVM instruction for storing.

Functions

Link copied to clipboard

Answer a suitable L2_MOVE operation for transferring values of this kind.

Link copied to clipboard
abstract fun <R : L2Register, RR : L2ReadOperand<R>> readOperand(semanticValue: L2SemanticValue, restriction: TypeRestriction, register: R): RR

Answer a suitable L2ReadOperand for extracting the indicated L2SemanticValue of this kind.

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.