Package org.jruby.ir.targets.indy
Class IndyValueCompiler
java.lang.Object
org.jruby.ir.targets.indy.IndyValueCompiler
- All Implemented Interfaces:
ValueCompiler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IRBytecodeAdapterprivate final NormalValueCompiler -
Constructor Summary
Constructors -
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 file, 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.
-
Field Details
-
compiler
-
normalValueCompiler
-
-
Constructor Details
-
IndyValueCompiler
-
-
Method Details
-
pushRuntime
public void pushRuntime()Description copied from interface:ValueCompilerPush the JRuby runtime on the stack. Stack required: none- Specified by:
pushRuntimein interfaceValueCompiler
-
pushObjectClass
public void pushObjectClass()Description copied from interface:ValueCompilerPush the Object class on the stack. Stack required: none- Specified by:
pushObjectClassin interfaceValueCompiler
-
pushUndefined
public void pushUndefined()Description copied from interface:ValueCompilerPush the UNDEFINED constant on the stack. Stack required: none- Specified by:
pushUndefinedin interfaceValueCompiler
-
pushFixnum
public void pushFixnum(long l) Description copied from interface:ValueCompilerStack required: none- Specified by:
pushFixnumin interfaceValueCompiler- Parameters:
l- long value to push as a Fixnum
-
pushFloat
public void pushFloat(double d) Description copied from interface:ValueCompilerStack required: none- Specified by:
pushFloatin interfaceValueCompiler- Parameters:
d- double value to push as a Float
-
pushString
Description copied from interface:ValueCompilerStack required: none- Specified by:
pushStringin interfaceValueCompiler- Parameters:
bl- ByteList for the String to push
-
pushFrozenString
Description copied from interface:ValueCompilerStack required: none- Specified by:
pushFrozenStringin interfaceValueCompiler- Parameters:
bl- ByteList for the String to push
-
pushEmptyString
public void pushEmptyString(org.jcodings.Encoding encoding) Description copied from interface:ValueCompilerPush a new empty string on the stack Stack required: none- Specified by:
pushEmptyStringin interfaceValueCompiler
-
pushByteList
Description copied from interface:ValueCompilerStack required: none- Specified by:
pushByteListin interfaceValueCompiler- Parameters:
bl- ByteList to push
-
pushRegexp
Description copied from interface:ValueCompilerBuild and save a literal regular expression.Stack required: none
- Specified by:
pushRegexpin interfaceValueCompileroptions- options for the regexp
-
pushSymbol
Description copied from interface:ValueCompilerPush a symbol on the stack. Stack required: none- Specified by:
pushSymbolin interfaceValueCompiler- Parameters:
bytes- the ByteList for the symbol
-
pushSymbolProc
Description copied from interface:ValueCompilerPush a Symbol.to_proc on the stack. Stack required: none- Specified by:
pushSymbolProcin interfaceValueCompiler- Parameters:
bytes- the ByteList for the symbol
-
pushEncoding
public void pushEncoding(org.jcodings.Encoding encoding) Description copied from interface:ValueCompilerPush an encoding on the stack. Stack required: none- Specified by:
pushEncodingin interfaceValueCompiler- Parameters:
encoding- the encoding to push
-
pushNil
public void pushNil()Description copied from interface:ValueCompilerLoad nil onto the stack. Stack required: none- Specified by:
pushNilin interfaceValueCompiler
-
pushBoolean
public void pushBoolean(boolean b) Description copied from interface:ValueCompilerLoad a boolean onto the stack. Stack required: none- Specified by:
pushBooleanin interfaceValueCompiler- Parameters:
b- the boolean to push
-
pushBignum
Description copied from interface:ValueCompilerLoad a Bignum onto the stack. Stack required: none- Specified by:
pushBignumin interfaceValueCompiler- Parameters:
bigint- the value of the Bignum to push
-
pushCallSite
Description copied from interface:ValueCompilerLoad a CallSite onto the stack- Specified by:
pushCallSitein interfaceValueCompiler
-
pushConstantLookupSite
Description copied from interface:ValueCompilerLoad a ConstantLookupSite onto the stack- Specified by:
pushConstantLookupSitein interfaceValueCompiler
-