Class NormalInstanceVariableCompiler

java.lang.Object
org.jruby.ir.targets.simple.NormalInstanceVariableCompiler
All Implemented Interfaces:
InstanceVariableCompiler

public class NormalInstanceVariableCompiler extends Object implements InstanceVariableCompiler
  • Constructor Details

    • NormalInstanceVariableCompiler

      public NormalInstanceVariableCompiler(IRBytecodeAdapter compiler)
  • Method Details

    • putField

      public void putField(Runnable target, Runnable value, String name)
      Description copied from interface: InstanceVariableCompiler
      Store instance variable into self.

      Stack required: none Stack result: empty

      Specified by:
      putField in interface InstanceVariableCompiler
      Parameters:
      target - runnable to push target object, may be called twice
      value - runnable to push value to assign, will only be called once
      name - name of variable to store
    • getField

      public void getField(Runnable source, String name, boolean rawValue)
      Description copied from interface: InstanceVariableCompiler
      Load instance variable from self.

      Stack required: none Stack result: value from self

      Specified by:
      getField in interface InstanceVariableCompiler
      Parameters:
      source - runnable to push source object, may be called twice
      name - name of variable to load
      rawValue - should the result be null instead of nil on non-existent field