Class IRBytecodeAdapter

java.lang.Object
org.jruby.ir.targets.IRBytecodeAdapter

public class IRBytecodeAdapter extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • getValueCompiler

      public ValueCompiler getValueCompiler()
      Get the compiler for constant Ruby values.
      Returns:
      the value compiler
    • getDynamicValueCompiler

      public DynamicValueCompiler getDynamicValueCompiler()
      Get the compiler for dynamic values.
      Returns:
      the dynamic value compiler
    • getInvocationCompiler

      public InvocationCompiler getInvocationCompiler()
      Get the compiler for invocations.
      Returns:
      the invocation compiler
    • getBranchCompiler

      public BranchCompiler getBranchCompiler()
      Get the compiler for dynamic branches.
      Returns:
      the branch compiler
    • getCheckpointCompiler

      public CheckpointCompiler getCheckpointCompiler()
      Checkpoint compiler.
      Returns:
      the checkpoint compiler
    • getConstantCompiler

      public ConstantCompiler getConstantCompiler()
      Get the compiler for Ruby constant lookups.
      Returns:
      the constant compiler
    • getInstanceVariableCompiler

      public InstanceVariableCompiler getInstanceVariableCompiler()
      Instance variable compiler.
      Returns:
      the instance variable compiler
    • getGlobalVariableCompiler

      public GlobalVariableCompiler getGlobalVariableCompiler()
      Global variable compiler.
      Returns:
      the global variable compiler
    • getLocalVariableCompiler

      public LocalVariableCompiler getLocalVariableCompiler()
      Instance variable compiler.
      Returns:
      the instance variable compiler
    • getYieldCompiler

      public YieldCompiler getYieldCompiler()
      Block yielding compiler.
      Returns:
      the yield compiler
    • getBlockCompiler

      public BlockCompiler getBlockCompiler()
      Block construction compiler.
      Returns:
      the block compiler
    • getArgumentsCompiler

      public ArgumentsCompiler getArgumentsCompiler()
      The compiler for argument processing or preparation.
      Returns:
      the arguments compiler
    • buildArrayFromLocals

      public static void buildArrayFromLocals(SkinnyMethodAdapter adapter2, int base, int arity)
    • getUniqueSiteName

      public String getUniqueSiteName(String name)
    • getClassData

      public ClassData getClassData()
    • startMethod

      public void startMethod()
    • endMethod

      public void endMethod()
    • loadLocal

      public void loadLocal(int i)
    • loadContext

      public void loadContext()
    • loadSelfBlock

      public void loadSelfBlock()
    • loadStaticScope

      public void loadStaticScope()
    • loadSelf

      public void loadSelf()
    • loadArgs

      public void loadArgs()
    • loadBlock

      public void loadBlock()
    • loadFrameClass

      public void loadFrameClass()
    • loadFrameName

      public void loadFrameName()
    • loadFrameBlock

      public void loadFrameBlock()
    • storeSelf

      public void storeSelf()
    • storeArgs

      public void storeArgs()
    • storeLocal

      public void storeLocal(int i)
    • invokeVirtual

      public void invokeVirtual(org.objectweb.asm.Type type, org.objectweb.asm.commons.Method method)
    • invokeStatic

      public void invokeStatic(org.objectweb.asm.Type type, org.objectweb.asm.commons.Method method)
    • invokeHelper

      public void invokeHelper(String name, String sig)
    • invokeHelper

      public void invokeHelper(String name, Class... x)
    • invokeIRHelper

      public void invokeIRHelper(String name, String sig)
    • goTo

      public void goTo(org.objectweb.asm.Label label)
    • pushHandle

      public void pushHandle(org.objectweb.asm.Handle handle)
    • mark

      public void mark(org.objectweb.asm.Label label)
    • returnValue

      public void returnValue()
    • newLocal

      public int newLocal(String name, org.objectweb.asm.Type type)
    • newLabel

      public org.objectweb.asm.Label newLabel()
    • getStaticScope

      public void getStaticScope(String field)
    • outline

      public void outline(String name, MethodType type, Runnable body)
    • updateLineNumber

      public void updateLineNumber(int lineNumber)
    • getLastLine

      public int getLastLine()