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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionargs()Returns the value of theargsrecord component.static AllocationSetAnalyzes 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 AllocationSetAnalyzes 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 thecontrolrecord component.final booleanIndicates whether some other object is "equal to" this one.field()Returns the value of thefieldrecord component.Gets the allocation of the lvar.final inthashCode()Returns a hash code value for this object.recv()Returns the value of therecvrecord component.stack()Returns the value of thestackrecord component.final StringtoString()Returns a string representation of this record class.static AllocationSetAnalyzes 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 AllocationSetAnalyzes 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 therecvrecord component.- Returns:
- the value of the
recvrecord component
-
args
Returns the value of theargsrecord component.- Returns:
- the value of the
argsrecord component
-
control
Returns the value of thecontrolrecord component.- Returns:
- the value of the
controlrecord component
-
field
Returns the value of thefieldrecord component.- Returns:
- the value of the
fieldrecord component
-
stack
Returns the value of thestackrecord component.- Returns:
- the value of the
stackrecord component
-