Top Fields Constructors Methods
org.jruby.ir.targets.simple

public Class NormalBranchCompiler

extends Object
implements BranchCompiler
Class Inheritance
All Implemented Interfaces
org.jruby.ir.targets.BranchCompiler
Imports
org.jruby.RubyArray, org.jruby.ir.targets.BranchCompiler, .IRBytecodeAdapter, org.jruby.ir.targets.indy.Bootstrap, .CheckArityBootstrap, org.jruby.parser.StaticScope, org.jruby.runtime.Block, .ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.objectweb.asm.Label

Field Summary

Modifier and TypeField and Description
private final IRBytecodeAdapter

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public void
branchIfNil(Label label)

Implements org.jruby.ir.targets.BranchCompiler.branchIfNil.

Branch to label if value at top of stack is nil

stack: obj to check for nilness

public void
public void
public void
checkArgsArity(Runnable args, int required, int opt, boolean rest)

Implements org.jruby.ir.targets.BranchCompiler.checkArgsArity.

public void
checkArity(int required, int opt, boolean rest, int restKey)

Implements org.jruby.ir.targets.BranchCompiler.checkArity.

public void
checkAritySpecificArgs(int required, int opt, boolean rest, int restKey)

Implements org.jruby.ir.targets.BranchCompiler.checkAritySpecificArgs.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

compilerback to summary
private final IRBytecodeAdapter compiler

Constructor Detail

NormalBranchCompilerback to summary
public NormalBranchCompiler(IRBytecodeAdapter compiler)

Method Detail

bfalseback to summary
public void bfalse(Label label)

Implements org.jruby.ir.targets.BranchCompiler.bfalse.

branchIfNilback to summary
public void branchIfNil(Label label)

Implements org.jruby.ir.targets.BranchCompiler.branchIfNil.

Branch to label if value at top of stack is nil

stack: obj to check for nilness

branchIfTruthyback to summary
public void branchIfTruthy(Label target)

Implements org.jruby.ir.targets.BranchCompiler.branchIfTruthy.

btrueback to summary
public void btrue(Label label)

Implements org.jruby.ir.targets.BranchCompiler.btrue.

checkArgsArityback to summary
public void checkArgsArity(Runnable args, int required, int opt, boolean rest)

Implements org.jruby.ir.targets.BranchCompiler.checkArgsArity.

checkArityback to summary
public void checkArity(int required, int opt, boolean rest, int restKey)

Implements org.jruby.ir.targets.BranchCompiler.checkArity.

checkAritySpecificArgsback to summary
public void checkAritySpecificArgs(int required, int opt, boolean rest, int restKey)

Implements org.jruby.ir.targets.BranchCompiler.checkAritySpecificArgs.