Package org.jruby.ir.targets
Interface ValueCompiler
- All Known Implementing Classes:
IndyValueCompiler,NormalValueCompiler
public interface ValueCompiler
-
Method Summary
Modifier and TypeMethodDescriptionvoidpushBignum(BigInteger bigint) Load a Bignum onto the stack.voidpushBoolean(boolean b) Load a boolean onto the stack.voidpushByteList(ByteList bl) Stack required: nonevoidpushCallSite(String className, String siteName, String scopeFieldName, CallBase call) Load a CallSite onto the stackvoidpushConstantLookupSite(String className, String siteName, ByteList name) Load a ConstantLookupSite onto the stackvoidpushEmptyString(org.jcodings.Encoding encoding) Push a new empty string on the stack Stack required: nonevoidpushEncoding(org.jcodings.Encoding encoding) Push an encoding on the stack.voidpushFixnum(long l) Stack required: nonevoidpushFloat(double d) Stack required: nonevoidpushFrozenString(ByteList bl, int cr, String path, int line) Stack required: nonevoidpushNil()Load nil onto the stack.voidPush the Object class on the stack.voidpushRegexp(ByteList source, int options) Build and save a literal regular expression.voidPush the JRuby runtime on the stack.voidpushString(ByteList bl, int cr) Stack required: nonevoidpushSymbol(ByteList bytes) Push a symbol on the stack.voidpushSymbolProc(ByteList bytes) Push a Symbol.to_proc on the stack.voidPush the UNDEFINED constant on the stack.
-
Method Details
-
pushRuntime
void pushRuntime()Push the JRuby runtime on the stack. Stack required: none -
pushObjectClass
void pushObjectClass()Push the Object class on the stack. Stack required: none -
pushUndefined
void pushUndefined()Push the UNDEFINED constant on the stack. Stack required: none -
pushFixnum
void pushFixnum(long l) Stack required: none- Parameters:
l- long value to push as a Fixnum
-
pushFloat
void pushFloat(double d) Stack required: none- Parameters:
d- double value to push as a Float
-
pushString
Stack required: none- Parameters:
bl- ByteList for the String to push
-
pushFrozenString
Stack required: none- Parameters:
bl- ByteList for the String to push
-
pushByteList
Stack required: none- Parameters:
bl- ByteList to push
-
pushRegexp
Build and save a literal regular expression.Stack required: none
- Parameters:
options- options for the regexp
-
pushSymbol
Push a symbol on the stack. Stack required: none- Parameters:
bytes- the ByteList for the symbol
-
pushSymbolProc
Push a Symbol.to_proc on the stack. Stack required: none- Parameters:
bytes- the ByteList for the symbol
-
pushEncoding
void pushEncoding(org.jcodings.Encoding encoding) Push an encoding on the stack. Stack required: none- Parameters:
encoding- the encoding to push
-
pushNil
void pushNil()Load nil onto the stack. Stack required: none -
pushBoolean
void pushBoolean(boolean b) Load a boolean onto the stack. Stack required: none- Parameters:
b- the boolean to push
-
pushBignum
Load a Bignum onto the stack. Stack required: none- Parameters:
bigint- the value of the Bignum to push
-
pushCallSite
Load a CallSite onto the stack -
pushConstantLookupSite
Load a ConstantLookupSite onto the stack -
pushEmptyString
void pushEmptyString(org.jcodings.Encoding encoding) Push a new empty string on the stack Stack required: none
-