Class NormalLocalVariableCompiler

java.lang.Object
org.jruby.ir.targets.simple.NormalLocalVariableCompiler
All Implemented Interfaces:
LocalVariableCompiler

public class NormalLocalVariableCompiler extends Object implements LocalVariableCompiler
  • Constructor Details

    • NormalLocalVariableCompiler

      public NormalLocalVariableCompiler(IRBytecodeAdapter irBytecodeAdapter)
  • Method Details

    • getHeapLocal

      public void getHeapLocal(int depth, int location)
      Description copied from interface: LocalVariableCompiler
      Load local variable from dynamic scope.

      Stack required: scope Stack result: value

      Specified by:
      getHeapLocal in interface LocalVariableCompiler
      Parameters:
      depth - depth into scope stack
      location - index into scope
    • getHeapLocalOrNil

      public void getHeapLocalOrNil(int depth, int location)
      Description copied from interface: LocalVariableCompiler
      Load local variable from dynamic scope, returning nil if the resulting value is null.

      Stack required: scope Stack result: value

      Specified by:
      getHeapLocalOrNil in interface LocalVariableCompiler
      Parameters:
      depth - depth into scope stack
      location - index into scope