Package org.jruby.ir.targets
Interface BranchCompiler
- All Known Implementing Classes:
IndyBranchCompiler,NormalBranchCompiler
public interface BranchCompiler
-
Method Summary
Modifier and TypeMethodDescriptionvoidbfalse(org.objectweb.asm.Label label) voidbranchIfNil(org.objectweb.asm.Label label) Branch to label if value at top of stack is nilvoidbranchIfTruthy(org.objectweb.asm.Label target) voidbtrue(org.objectweb.asm.Label label) voidcheckArgsArity(Runnable args, int required, int opt, boolean rest) voidcheckArity(int required, int opt, boolean rest, int restKey) voidcheckAritySpecificArgs(int required, int opt, boolean rest, int restKey)
-
Method Details
-
branchIfTruthy
void branchIfTruthy(org.objectweb.asm.Label target) -
branchIfNil
void branchIfNil(org.objectweb.asm.Label label) Branch to label if value at top of stack is nilstack: obj to check for nilness
-
bfalse
void bfalse(org.objectweb.asm.Label label) -
btrue
void btrue(org.objectweb.asm.Label label) -
checkArgsArity
-
checkArity
void checkArity(int required, int opt, boolean rest, int restKey) -
checkAritySpecificArgs
void checkAritySpecificArgs(int required, int opt, boolean rest, int restKey)
-