Class MemoryInstr
java.lang.Object
org.ek9lang.compiler.ir.IRInstr
org.ek9lang.compiler.ir.MemoryInstr
-
Method Summary
Modifier and TypeMethodDescriptionaddOperand
(String operand) Add operand to this instruction.addOperands
(String... operands) Add multiple operands to this instruction.static MemoryInstr
Create IS_NULL instruction: IS_NULL result = operand.static MemoryInstr
Create IS_NULL instruction with debug info: IS_NULL result = operand.static MemoryInstr
Create LOAD instruction: LOAD dest = source_location.static MemoryInstr
Create LOAD instruction with debug info: LOAD dest = source_location.static MemoryInstr
Create REFERENCE instruction: REFERENCE variable_name, type_info.static MemoryInstr
Create REFERENCE instruction with debug info: REFERENCE variable_name, type_info.static MemoryInstr
Create RELEASE instruction: RELEASE object, decrement ARC.static MemoryInstr
Create RELEASE instruction with debug info: RELEASE object, decrement ARC.static MemoryInstr
Create RETAIN instruction: RETAIN object, i.e.static MemoryInstr
Create RETAIN instruction with debug info: RETAIN object, i.e.static MemoryInstr
Create STORE instruction: STORE dest_location = source.static MemoryInstr
Create STORE instruction with debug info: STORE dest_location = source.Methods inherited from class org.ek9lang.compiler.ir.IRInstr
accept, equals, getDebugInfo, getOpcode, getOperands, getResult, hashCode, hasResult, isControlFlow, isMemoryManagement, isMethodCall, toString
-
Method Details
-
load
Create LOAD instruction: LOAD dest = source_location. -
load
Create LOAD instruction with debug info: LOAD dest = source_location. -
store
Create STORE instruction: STORE dest_location = source. -
store
Create STORE instruction with debug info: STORE dest_location = source. -
reference
Create REFERENCE instruction: REFERENCE variable_name, type_info. -
reference
Create REFERENCE instruction with debug info: REFERENCE variable_name, type_info. -
retain
Create RETAIN instruction: RETAIN object, i.e. increment the ARC (automatic reference counting). -
retain
Create RETAIN instruction with debug info: RETAIN object, i.e. increment the ARC (automatic reference counting) -
release
Create RELEASE instruction: RELEASE object, decrement ARC. -
release
Create RELEASE instruction with debug info: RELEASE object, decrement ARC. -
isNull
Create IS_NULL instruction: IS_NULL result = operand. -
isNull
Create IS_NULL instruction with debug info: IS_NULL result = operand. -
addOperand
Description copied from class:IRInstr
Add operand to this instruction.- Overrides:
addOperand
in classIRInstr
-
addOperands
Description copied from class:IRInstr
Add multiple operands to this instruction.- Overrides:
addOperands
in classIRInstr
-