Package org.jruby.ir.targets.indy
Class IndyBranchCompiler
java.lang.Object
org.jruby.ir.targets.indy.IndyBranchCompiler
- All Implemented Interfaces:
BranchCompiler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
bfalse
(org.objectweb.asm.Label label) void
branchIfNil
(org.objectweb.asm.Label label) Branch to label if value at top of stack is nilvoid
branchIfTruthy
(org.objectweb.asm.Label label) void
btrue
(org.objectweb.asm.Label label) void
checkArgsArity
(Runnable args, int required, int opt, boolean rest) void
checkArity
(int required, int opt, boolean rest, int restKey) void
checkAritySpecificArgs
(int required, int opt, boolean rest, int restKey)
-
Constructor Details
-
IndyBranchCompiler
-
-
Method Details
-
branchIfNil
public void branchIfNil(org.objectweb.asm.Label label) Description copied from interface:BranchCompiler
Branch to label if value at top of stack is nilstack: obj to check for nilness
- Specified by:
branchIfNil
in interfaceBranchCompiler
-
branchIfTruthy
public void branchIfTruthy(org.objectweb.asm.Label label) - Specified by:
branchIfTruthy
in interfaceBranchCompiler
-
bfalse
public void bfalse(org.objectweb.asm.Label label) - Specified by:
bfalse
in interfaceBranchCompiler
-
btrue
public void btrue(org.objectweb.asm.Label label) - Specified by:
btrue
in interfaceBranchCompiler
-
checkArgsArity
- Specified by:
checkArgsArity
in interfaceBranchCompiler
-
checkArity
public void checkArity(int required, int opt, boolean rest, int restKey) - Specified by:
checkArity
in interfaceBranchCompiler
-
checkAritySpecificArgs
public void checkAritySpecificArgs(int required, int opt, boolean rest, int restKey) - Specified by:
checkAritySpecificArgs
in interfaceBranchCompiler
-