public class IndyValueCompiler extends java.lang.Object implements ValueCompiler
| Constructor and Description |
|---|
IndyValueCompiler(IRBytecodeAdapter compiler) |
| Modifier and Type | Method and Description |
|---|---|
void |
pushArrayClass()
Push the Array class on the stack.
|
void |
pushBignum(java.math.BigInteger bigint)
Load a Bignum onto the stack.
|
void |
pushBoolean(boolean b)
Load a boolean onto the stack.
|
void |
pushBufferString(org.jcodings.Encoding encoding,
int size)
Push a new empty string on the stack preallocated to the given size
Stack required: none
|
void |
pushByteList(ByteList bl)
Stack required: none
|
void |
pushCallSite(java.lang.String className,
java.lang.String siteName,
java.lang.String scopeFieldName,
CallBase call)
Load a CallSite onto the stack
|
void |
pushConstantLookupSite(java.lang.String className,
java.lang.String siteName,
ByteList name)
Load a ConstantLookupSite onto the stack
|
void |
pushEmptyString(org.jcodings.Encoding encoding)
Push a new empty string on the stack
Stack required: none
|
void |
pushEncoding(org.jcodings.Encoding encoding)
Push an encoding on the stack.
|
void |
pushFixnum(long l)
Stack required: none
|
void |
pushFloat(double d)
Stack required: none
|
void |
pushFrozenString(ByteList bl,
int cr,
java.lang.String file,
int line)
Stack required: none
|
void |
pushHashClass()
Push the Hash class on the stack.
|
void |
pushNil()
Load nil onto the stack.
|
void |
pushObjectClass()
Push the Object class on the stack.
|
void |
pushRange(java.lang.Runnable begin,
java.lang.Runnable end,
boolean exclusive)
Build and save a literal range.
|
void |
pushRegexp(ByteList source,
int options)
Build and save a literal regular expression.
|
void |
pushRubyEncoding(org.jcodings.Encoding encoding)
Push a RubyEncoding on the stack.
|
void |
pushRuntime()
Push the JRuby runtime on the stack.
|
void |
pushString(ByteList bl,
int cr)
Stack required: none
|
void |
pushSymbol(ByteList bytes)
Push a symbol on the stack.
|
void |
pushSymbolProc(ByteList bytes)
Push a Symbol.to_proc on the stack.
|
void |
pushUndefined()
Push the UNDEFINED constant on the stack.
|
public IndyValueCompiler(IRBytecodeAdapter compiler)
public void pushRuntime()
ValueCompilerpushRuntime in interface ValueCompilerpublic void pushArrayClass()
ValueCompilerpushArrayClass in interface ValueCompilerpublic void pushHashClass()
ValueCompilerpushHashClass in interface ValueCompilerpublic void pushObjectClass()
ValueCompilerpushObjectClass in interface ValueCompilerpublic void pushUndefined()
ValueCompilerpushUndefined in interface ValueCompilerpublic void pushFixnum(long l)
ValueCompilerpushFixnum in interface ValueCompilerl - long value to push as a Fixnumpublic void pushFloat(double d)
ValueCompilerpushFloat in interface ValueCompilerd - double value to push as a Floatpublic void pushString(ByteList bl, int cr)
ValueCompilerpushString in interface ValueCompilerbl - ByteList for the String to pushpublic void pushFrozenString(ByteList bl, int cr, java.lang.String file, int line)
ValueCompilerpushFrozenString in interface ValueCompilerbl - ByteList for the String to pushpublic void pushEmptyString(org.jcodings.Encoding encoding)
ValueCompilerpushEmptyString in interface ValueCompilerpublic void pushBufferString(org.jcodings.Encoding encoding,
int size)
ValueCompilerpushBufferString in interface ValueCompilerpublic void pushByteList(ByteList bl)
ValueCompilerpushByteList in interface ValueCompilerbl - ByteList to pushpublic void pushRange(java.lang.Runnable begin,
java.lang.Runnable end,
boolean exclusive)
ValueCompilerStack required: context
pushRange in interface ValueCompilerbegin - a runnable that will emit code for the begin valueend - a runnable that will emit code for the end valueexclusive - whether this is an exclusive rangepublic void pushRegexp(ByteList source, int options)
ValueCompilerStack required: none
pushRegexp in interface ValueCompileroptions - options for the regexppublic void pushSymbol(ByteList bytes)
ValueCompilerpushSymbol in interface ValueCompilerbytes - the ByteList for the symbolpublic void pushSymbolProc(ByteList bytes)
ValueCompilerpushSymbolProc in interface ValueCompilerbytes - the ByteList for the symbolpublic void pushRubyEncoding(org.jcodings.Encoding encoding)
ValueCompilerpushRubyEncoding in interface ValueCompilerencoding - the encoding to pushpublic void pushEncoding(org.jcodings.Encoding encoding)
ValueCompilerpushEncoding in interface ValueCompilerencoding - the encoding to pushpublic void pushNil()
ValueCompilerpushNil in interface ValueCompilerpublic void pushBoolean(boolean b)
ValueCompilerpushBoolean in interface ValueCompilerb - the boolean to pushpublic void pushBignum(java.math.BigInteger bigint)
ValueCompilerpushBignum in interface ValueCompilerbigint - the value of the Bignum to pushpublic void pushCallSite(java.lang.String className,
java.lang.String siteName,
java.lang.String scopeFieldName,
CallBase call)
ValueCompilerpushCallSite in interface ValueCompilerpublic void pushConstantLookupSite(java.lang.String className,
java.lang.String siteName,
ByteList name)
ValueCompilerpushConstantLookupSite in interface ValueCompilerCopyright © 2001-2023 JRuby. All Rights Reserved.