Class NormalDynamicValueCompiler

java.lang.Object
org.jruby.ir.targets.simple.NormalDynamicValueCompiler
All Implemented Interfaces:
DynamicValueCompiler

public class NormalDynamicValueCompiler extends Object implements DynamicValueCompiler
  • Constructor Details

    • NormalDynamicValueCompiler

      public NormalDynamicValueCompiler(IRBytecodeAdapter compiler)
  • Method Details

    • pushDRegexp

      public void pushDRegexp(Runnable callback, RegexpOptions options, int arity)
      Description copied from interface: DynamicValueCompiler
      Build a dynamic regexp.

      No stack requirement. The callback must push onto this method's stack the ThreadContext and all arguments for building the dregexp, matching the given arity.

      Specified by:
      pushDRegexp in interface DynamicValueCompiler
      Parameters:
      options - options for the regexp
      arity - number of Strings passed in
    • array

      public void array(int length)
      Description copied from interface: DynamicValueCompiler
      Construct an Array from elements on stack. Stack required: all elements of array
      Specified by:
      array in interface DynamicValueCompiler
      Parameters:
      length - number of elements
    • hash

      public void hash(int length)
      Description copied from interface: DynamicValueCompiler
      Construct a Hash from elements on stack. Stack required: context, all elements of hash
      Specified by:
      hash in interface DynamicValueCompiler
      Parameters:
      length - number of element pairs