Package org.jruby.ir.targets.simple
Class NormalBranchCompiler
java.lang.Object
org.jruby.ir.targets.simple.NormalBranchCompiler
- 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 target) 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
-
NormalBranchCompiler
-
-
Method Details
-
branchIfTruthy
public void branchIfTruthy(org.objectweb.asm.Label target) - Specified by:
branchIfTruthy
in interfaceBranchCompiler
-
branchIfNil
public void branchIfNil(org.objectweb.asm.Label label) Branch to label if value at top of stack is nilstack: obj to check for nilness
- Specified by:
branchIfNil
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
-