Module org.kink_lang.kink
Record Class AllocationSet
java.lang.Object
java.lang.Record
org.kink_lang.kink.internal.compile.javaclassir.AllocationSet
- Record Components:
recv
- the set of local vars containing recv.args
- the mapping from local vars to arg indexes.control
- the local vars of preloaded control funs.field
- vars stored in fields of the fun val.stack
- vars stored in stack.
public record AllocationSet(Set<LocalVar> recv, Map<LocalVar,Integer> args, Set<LocalVar> control, List<LocalVar> field, List<LocalVar> stack)
extends Record
Allocation analysis of localvars in a fast fun.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionargs()
Returns the value of theargs
record component.static AllocationSet
Analyzes the vars as of the binding-capture fast fun for the case a local var of a control fun is overridden on the top level.static AllocationSet
Analyzes the vars as of the binding-capture fast fun for the case a local var of a control fun is NOT overridden on the top level.control()
Returns the value of thecontrol
record component.final boolean
Indicates whether some other object is "equal to" this one.field()
Returns the value of thefield
record component.Gets the allocation of the lvar.final int
hashCode()
Returns a hash code value for this object.recv()
Returns the value of therecv
record component.stack()
Returns the value of thestack
record component.final String
toString()
Returns a string representation of this record class.static AllocationSet
Analyzes the vars as of the val-capture fast fun for the case a local var of a control fun is overridden on the top level.static AllocationSet
Analyzes the vars as of the val-capture fast fun for the case that no local var of a control fun is NOT overridden on the top level.
-
Constructor Details
-
Method Details
-
get
Gets the allocation of the lvar.- Parameters:
lvar
- the local var.- Returns:
- the allocation of the lvar.
-
valCaptureControlOverridden
Analyzes the vars as of the val-capture fast fun for the case a local var of a control fun is overridden on the top level.- Parameters:
vars
- of the val-capture fast fun.- Returns:
- the analysis.
-
valCaptureControlUnchanged
Analyzes the vars as of the val-capture fast fun for the case that no local var of a control fun is NOT overridden on the top level.- Parameters:
vars
- of the val-capture fast fun.- Returns:
- the analysis.
-
bindingCaptureControlOverridden
Analyzes the vars as of the binding-capture fast fun for the case a local var of a control fun is overridden on the top level.- Parameters:
vars
- of the binding-capture fast fun.- Returns:
- the analysis.
-
bindingCaptureControlUnchanged
Analyzes the vars as of the binding-capture fast fun for the case a local var of a control fun is NOT overridden on the top level.- Parameters:
vars
- of the binding-capture fast fun.- Returns:
- the analysis.
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
recv
Returns the value of therecv
record component.- Returns:
- the value of the
recv
record component
-
args
Returns the value of theargs
record component.- Returns:
- the value of the
args
record component
-
control
Returns the value of thecontrol
record component.- Returns:
- the value of the
control
record component
-
field
Returns the value of thefield
record component.- Returns:
- the value of the
field
record component
-
stack
Returns the value of thestack
record component.- Returns:
- the value of the
stack
record component
-