Class OneArgOperandAttrAssignInstr

All Implemented Interfaces:
ClosureAcceptingInstr, Site

public class OneArgOperandAttrAssignInstr extends AttrAssignInstr
  • Constructor Details

    • OneArgOperandAttrAssignInstr

      protected OneArgOperandAttrAssignInstr(IRScope scope, CallType callType, RubySymbol name, Operand receiver, Operand[] args, int flags, boolean potentiallyRefined, CallSite callSite, long callSiteId)
    • OneArgOperandAttrAssignInstr

      public OneArgOperandAttrAssignInstr(IRScope scope, Operand obj, RubySymbol attr, Operand[] args, int flags, boolean isPotentiallyRefined)
  • Method Details

    • clone

      public Instr clone(CloneInfo ii)
      Description copied from class: Instr
      Clone the instruction for use in an inlining context (either when a scope is inlined into another scope, or when a block has to be cloned because its associated call belongs to an inlined scope). This might renaming variables and labels to eliminate naming conflicts. The implementation might vary on the cloning mode.
      Overrides:
      clone in class AttrAssignInstr
      Parameters:
      ii - This object manages renaming of variables and labels, handles args and return values.
      Returns:
      a new instruction that can be used in the target scope.
    • interpret

      public Object interpret(ThreadContext context, StaticScope currScope, DynamicScope dynamicScope, IRubyObject self, Object[] temp)
      Overrides:
      interpret in class AttrAssignInstr