Uses of Class
org.ek9lang.compiler.ir.instructions.OwnershipInstr
Packages that use OwnershipInstr
Package
Description
IR Instruction Classes - The instruction set for EK9 intermediate representation.
-
Uses of OwnershipInstr in org.ek9lang.compiler.ir.instructions
Methods in org.ek9lang.compiler.ir.instructions that return OwnershipInstrModifier and TypeMethodDescriptionstatic OwnershipInstrDROP value: the end of an OWNED value on this path (lowered:RELEASE).static OwnershipInstrOwnershipInstr.dropAtExit(String value, String scopeId, DebugInfo debugInfo) DROP_AT_EXIT value, scope: the end of an OWNED value at every exit of the scope's current activation (lowered:SCOPE_REGISTER).static OwnershipInstrOwnershipInstr.fieldAssign(String objectVar, String fieldName, String ownerType, String fieldType, String value, int fieldIndex, OwnershipInstr.AssignMode mode, boolean init, DebugInfo debugInfo) FIELD_ASSIGN object, field, ownerType, fieldType, value, index [consume|copy] [init]: drop the field's value and store the new one.static OwnershipInstrOWN value: a new OWNED reference to the value's object (lowered:RETAIN).static OwnershipInstrOwnershipInstr.slotAssign(String slot, String value, OwnershipInstr.AssignMode mode, boolean init, DebugInfo debugInfo) SLOT_ASSIGN slot, value [consume|copy] [init]: drop the slot's value (unlessinit- a fact that it is empty) and store the new one.static OwnershipInstrOwnershipInstr.slotDeclare(String slot, String type, String owner, boolean typed, DebugInfo debugInfo) SLOT_DECLARE slot, type, owner [typed]: an empty slot owned by a scope, or byOwnershipInstr.CALLER.static OwnershipInstrOwnershipInstr.staticFieldAssign(String fieldName, String ownerType, String fieldType, String value, OwnershipInstr.AssignMode mode, boolean init, DebugInfo debugInfo) STATIC_FIELD_ASSIGN field, ownerType, fieldType, value [consume|copy] [init]: store into a static field, described exactly asSTORE_STATIC_FIELDdescribes it.static OwnershipInstrOwnershipInstr.staticFieldTake(String result, String fieldName, String ownerType, String fieldType, DebugInfo debugInfo) result = STATIC_FIELD_TAKE field, ownerType, fieldType: the static's value, OWNED - its count moves to the result.