Class IndyValueCompiler

java.lang.Object
org.jruby.ir.targets.indy.IndyValueCompiler
All Implemented Interfaces:
ValueCompiler

public class IndyValueCompiler extends Object implements ValueCompiler
  • Field Details

  • Constructor Details

  • Method Details

    • pushRuntime

      public void pushRuntime()
      Description copied from interface: ValueCompiler
      Push the JRuby runtime on the stack. Stack required: none
      Specified by:
      pushRuntime in interface ValueCompiler
    • pushObjectClass

      public void pushObjectClass()
      Description copied from interface: ValueCompiler
      Push the Object class on the stack. Stack required: none
      Specified by:
      pushObjectClass in interface ValueCompiler
    • pushUndefined

      public void pushUndefined()
      Description copied from interface: ValueCompiler
      Push the UNDEFINED constant on the stack. Stack required: none
      Specified by:
      pushUndefined in interface ValueCompiler
    • pushFixnum

      public void pushFixnum(long l)
      Description copied from interface: ValueCompiler
      Stack required: none
      Specified by:
      pushFixnum in interface ValueCompiler
      Parameters:
      l - long value to push as a Fixnum
    • pushFloat

      public void pushFloat(double d)
      Description copied from interface: ValueCompiler
      Stack required: none
      Specified by:
      pushFloat in interface ValueCompiler
      Parameters:
      d - double value to push as a Float
    • pushString

      public void pushString(ByteList bl, int cr)
      Description copied from interface: ValueCompiler
      Stack required: none
      Specified by:
      pushString in interface ValueCompiler
      Parameters:
      bl - ByteList for the String to push
    • pushFrozenString

      public void pushFrozenString(ByteList bl, int cr, String file, int line)
      Description copied from interface: ValueCompiler
      Stack required: none
      Specified by:
      pushFrozenString in interface ValueCompiler
      Parameters:
      bl - ByteList for the String to push
    • pushEmptyString

      public void pushEmptyString(org.jcodings.Encoding encoding)
      Description copied from interface: ValueCompiler
      Push a new empty string on the stack Stack required: none
      Specified by:
      pushEmptyString in interface ValueCompiler
    • pushByteList

      public void pushByteList(ByteList bl)
      Description copied from interface: ValueCompiler
      Stack required: none
      Specified by:
      pushByteList in interface ValueCompiler
      Parameters:
      bl - ByteList to push
    • pushRegexp

      public void pushRegexp(ByteList source, int options)
      Description copied from interface: ValueCompiler
      Build and save a literal regular expression.

      Stack required: none

      Specified by:
      pushRegexp in interface ValueCompiler
      options - options for the regexp
    • pushSymbol

      public void pushSymbol(ByteList bytes)
      Description copied from interface: ValueCompiler
      Push a symbol on the stack. Stack required: none
      Specified by:
      pushSymbol in interface ValueCompiler
      Parameters:
      bytes - the ByteList for the symbol
    • pushSymbolProc

      public void pushSymbolProc(ByteList bytes)
      Description copied from interface: ValueCompiler
      Push a Symbol.to_proc on the stack. Stack required: none
      Specified by:
      pushSymbolProc in interface ValueCompiler
      Parameters:
      bytes - the ByteList for the symbol
    • pushEncoding

      public void pushEncoding(org.jcodings.Encoding encoding)
      Description copied from interface: ValueCompiler
      Push an encoding on the stack. Stack required: none
      Specified by:
      pushEncoding in interface ValueCompiler
      Parameters:
      encoding - the encoding to push
    • pushNil

      public void pushNil()
      Description copied from interface: ValueCompiler
      Load nil onto the stack. Stack required: none
      Specified by:
      pushNil in interface ValueCompiler
    • pushBoolean

      public void pushBoolean(boolean b)
      Description copied from interface: ValueCompiler
      Load a boolean onto the stack. Stack required: none
      Specified by:
      pushBoolean in interface ValueCompiler
      Parameters:
      b - the boolean to push
    • pushBignum

      public void pushBignum(BigInteger bigint)
      Description copied from interface: ValueCompiler
      Load a Bignum onto the stack. Stack required: none
      Specified by:
      pushBignum in interface ValueCompiler
      Parameters:
      bigint - the value of the Bignum to push
    • pushCallSite

      public void pushCallSite(String className, String siteName, String scopeFieldName, CallBase call)
      Description copied from interface: ValueCompiler
      Load a CallSite onto the stack
      Specified by:
      pushCallSite in interface ValueCompiler
    • pushConstantLookupSite

      public void pushConstantLookupSite(String className, String siteName, ByteList name)
      Description copied from interface: ValueCompiler
      Load a ConstantLookupSite onto the stack
      Specified by:
      pushConstantLookupSite in interface ValueCompiler