Module org.kink_lang.kink
Class ValCaptureFastFunCompiler
java.lang.Object
org.kink_lang.kink.internal.compile.javaclassir.ValCaptureFastFunCompiler
Compiles val-capture fast funs.
-
Constructor Summary
ConstructorDescriptionValCaptureFastFunCompiler
(Vm vm, String programName, String programText) Constructs a compiler. -
Method Summary
Modifier and TypeMethodDescriptionCopmiles an val-capture fast fun for the case that a local var of a control fun is overridden on the top level.Copmiles an val-capture fast fun for the case that local vars of control funs are unchanged on the top level.
-
Constructor Details
-
ValCaptureFastFunCompiler
Constructs a compiler.- Parameters:
vm
- the vm.programName
- the name of the program.programText
- the text of the program.
-
-
Method Details
-
compileControlUnchanged
Copmiles an val-capture fast fun for the case that local vars of control funs are unchanged on the top level.- Parameters:
fun
- the fun to compile.- Returns:
- the compiled IR.
-
compileControlOverridden
Copmiles an val-capture fast fun for the case that a local var of a control fun is overridden on the top level.- Parameters:
fun
- the fun to compile.- Returns:
- the compiled IR.
-