Class NormalBranchCompiler

java.lang.Object
org.jruby.ir.targets.simple.NormalBranchCompiler
All Implemented Interfaces:
BranchCompiler

public class NormalBranchCompiler extends Object implements BranchCompiler
  • Constructor Details

  • Method Details

    • branchIfTruthy

      public void branchIfTruthy(org.objectweb.asm.Label target)
      Specified by:
      branchIfTruthy in interface BranchCompiler
    • branchIfNil

      public void branchIfNil(org.objectweb.asm.Label label)
      Branch to label if value at top of stack is nil

      stack: obj to check for nilness

      Specified by:
      branchIfNil in interface BranchCompiler
    • bfalse

      public void bfalse(org.objectweb.asm.Label label)
      Specified by:
      bfalse in interface BranchCompiler
    • btrue

      public void btrue(org.objectweb.asm.Label label)
      Specified by:
      btrue in interface BranchCompiler
    • checkArgsArity

      public void checkArgsArity(Runnable args, int required, int opt, boolean rest)
      Specified by:
      checkArgsArity in interface BranchCompiler
    • checkArity

      public void checkArity(int required, int opt, boolean rest, int restKey)
      Specified by:
      checkArity in interface BranchCompiler
    • checkAritySpecificArgs

      public void checkAritySpecificArgs(int required, int opt, boolean rest, int restKey)
      Specified by:
      checkAritySpecificArgs in interface BranchCompiler