Module org.kink_lang.kink
Class MakeBindingCaptureFastFunGenerator
java.lang.Object
org.kink_lang.kink.internal.compile.javaclassir.MakeBindingCaptureFastFunGenerator
- All Implemented Interfaces:
MakeFastFunGenerator
Generator of insns of making binding-capture 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
ConstructorDescriptionMakeBindingCaptureFastFunGenerator
(Function<FastFunItree, JavaClassIr> compileNonCombinator, Function<FastFunItree, JavaClassIr> compileCombinator, BindingGenerator bindingGen, ChildJcirAccumulator jcirAccum) Constructs a generator. -
Method Summary
-
Constructor Details
-
MakeBindingCaptureFastFunGenerator
public MakeBindingCaptureFastFunGenerator(Function<FastFunItree, JavaClassIr> compileNonCombinator, Function<FastFunItree, JavaClassIr> compileCombinator, BindingGenerator bindingGen, ChildJcirAccumulator jcirAccum) Constructs a generator.- Parameters:
compileNonCombinator
- compiles fun to non-combinator.compileCombinator
- compiles fun to combinator.bindingGen
- generates binding.jcirAccum
- accumulator of JavaClassIr.
-
-
Method Details
-
makeFun
Description copied from interface:MakeFastFunGenerator
Makes insns to make an SSA fun.The insns must push the fun to the Java stack.
- Specified by:
makeFun
in interfaceMakeFastFunGenerator
- Parameters:
fun
- the fun.- Returns:
- insns.
-