Module org.kink_lang.kink
Class MakeValCaptureFastFunGenerator
java.lang.Object
org.kink_lang.kink.internal.compile.javaclassir.MakeValCaptureFastFunGenerator
- All Implemented Interfaces:
MakeFastFunGenerator
Generates insns of making val-capturing fast fun.
-
Field Summary
Fields inherited from interface org.kink_lang.kink.internal.compile.javaclassir.MakeFastFunGenerator
BOOTSTRAP_COMBINATOR_HANDLE, BOOTSTRAP_MAKE_FUN_HANDLE, FUN_BOOTSTRAPPER_NAME -
Constructor Summary
ConstructorsConstructorDescriptionMakeValCaptureFastFunGenerator(LvarAccessGenerator lvarAccGen, Function<FastFunItree, JavaClassIr> compile, Function<FastFunItree, AllocationSet> analyzeAllocation, ChildJcirAccumulator jcirAccum) Constructs a generator. -
Method Summary
-
Constructor Details
-
MakeValCaptureFastFunGenerator
public MakeValCaptureFastFunGenerator(LvarAccessGenerator lvarAccGen, Function<FastFunItree, JavaClassIr> compile, Function<FastFunItree, AllocationSet> analyzeAllocation, ChildJcirAccumulator jcirAccum) Constructs a generator.- Parameters:
lvarAccGen- generator of lvars access insns of the enclosing context.compile- compiles funs.analyzeAllocation- analyzes the storage of funs.jcirAccum- the accumulator of child JavaClassIr instances.
-
-
Method Details
-
makeFun
Description copied from interface:MakeFastFunGeneratorMakes insns to make an SSA fun.The insns must push the fun to the Java stack.
- Specified by:
makeFunin interfaceMakeFastFunGenerator- Parameters:
fun- the fun.- Returns:
- insns.
-