public class IRBytecodeAdapter7 extends IRBytecodeAdapter
adapter, MAX_ARGUMENTS
Constructor and Description |
---|
IRBytecodeAdapter7(SkinnyMethodAdapter adapter,
com.headius.invokebinder.Signature signature,
org.jruby.ir.targets.ClassData classData) |
Modifier and Type | Method and Description |
---|---|
void |
array(int length)
Construct an Array from elements on stack.
|
void |
checkpoint()
Perform a thread event checkpoint.
|
void |
getField(String name)
Load instance variable from self.
|
void |
hash(int length)
Construct a Hash from elements on stack.
|
void |
inheritanceSearchConst(String name,
boolean noPrivateConsts)
Lookup a constant from a given class or module.
|
void |
invokeClassSuper(String name,
int arity,
boolean hasClosure,
boolean[] splatmap)
Invoke a superclass method from a class context.
|
void |
invokeInstanceSuper(String name,
int arity,
boolean hasClosure,
boolean[] splatmap)
Invoke a superclass method from an instance context.
|
void |
invokeOther(String name,
int arity,
boolean hasClosure)
Invoke a method on an object other than self.
|
void |
invokeOtherOneFixnum(String name,
long fixnum)
Invoke a fixnum-receiving method on an object other than self.
|
void |
invokeOtherOneFloat(String name,
double flote)
Invoke a float-receiving method on an object other than self.
|
void |
invokeSelf(String name,
int arity,
boolean hasClosure)
Invoke a method on self.
|
void |
invokeUnresolvedSuper(String name,
int arity,
boolean hasClosure,
boolean[] splatmap)
Invoke a superclass method from an unresolved context.
|
void |
invokeZSuper(String name,
int arity,
boolean hasClosure,
boolean[] splatmap)
Invoke a superclass method from a zsuper in a block.
|
void |
kwargsHash(int length)
Construct a Hash based on keyword arguments pasesd to this method, for use in zsuper
Stack required: context, kwargs hash to dup, remaining elements of hash
|
void |
lexicalSearchConst(String name)
Lookup a constant from a lexical scope.
|
void |
loadRuntime()
Push the JRuby runtime on the stack.
|
void |
pushBignum(BigInteger bigint)
Load a Bignum onto the stack.
|
void |
pushBoolean(boolean b)
Load a boolean onto the stack.
|
void |
pushByteList(org.jruby.util.ByteList bl)
Stack required: none
|
void |
pushDRegexp(Runnable callback,
RegexpOptions options,
int arity)
Build a dynamic regexp.
|
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(org.jruby.util.ByteList bl)
Stack required: none
|
void |
pushNil()
Load nil onto the stack.
|
void |
pushRegexp(int options)
Build and save a literal regular expression.
|
void |
pushString(org.jruby.util.ByteList bl)
Stack required: none
|
void |
pushSymbol(String sym,
org.jcodings.Encoding encoding)
Push a symbol on the stack
|
void |
putField(String name)
Store instance variable into self.
|
void |
searchConst(String name,
boolean noPrivateConsts)
Lookup a constant from current context.
|
bfalse, btrue, endMethod, getClassData, goTo, invokeHelper, invokeHelper, invokeIRHelper, invokeStatic, invokeVirtual, isNil, isTrue, loadArgs, loadBlock, loadBlockType, loadContext, loadFrameClass, loadLocal, loadSelf, loadStaticScope, loadSuperName, mark, newLabel, newLocal, poll, pushBlockBody, pushHandle, pushObjectClass, pushUndefined, returnValue, startMethod, storeLocal
public IRBytecodeAdapter7(SkinnyMethodAdapter adapter, com.headius.invokebinder.Signature signature, org.jruby.ir.targets.ClassData classData)
public void pushFixnum(long l)
IRBytecodeAdapter
pushFixnum
in class IRBytecodeAdapter
l
- long value to push as a Fixnumpublic void pushFloat(double d)
IRBytecodeAdapter
pushFloat
in class IRBytecodeAdapter
d
- double value to push as a Floatpublic void pushString(org.jruby.util.ByteList bl)
IRBytecodeAdapter
pushString
in class IRBytecodeAdapter
bl
- ByteList for the String to pushpublic void pushFrozenString(org.jruby.util.ByteList bl)
IRBytecodeAdapter
pushFrozenString
in class IRBytecodeAdapter
bl
- ByteList for the String to pushpublic void pushByteList(org.jruby.util.ByteList bl)
IRBytecodeAdapter
pushByteList
in class IRBytecodeAdapter
bl
- ByteList to pushpublic void pushRegexp(int options)
IRBytecodeAdapter
pushRegexp
in class IRBytecodeAdapter
options
- options for the regexppublic void pushDRegexp(Runnable callback, RegexpOptions options, int arity)
IRBytecodeAdapter
pushDRegexp
in class IRBytecodeAdapter
options
- options for the regexparity
- number of Strings passed inpublic void pushSymbol(String sym, org.jcodings.Encoding encoding)
pushSymbol
in class IRBytecodeAdapter
sym
- the symbol's string identifierpublic void loadRuntime()
IRBytecodeAdapter
loadRuntime
in class IRBytecodeAdapter
public void pushEncoding(org.jcodings.Encoding encoding)
IRBytecodeAdapter
pushEncoding
in class IRBytecodeAdapter
encoding
- the encoding to pushpublic void invokeOther(String name, int arity, boolean hasClosure)
IRBytecodeAdapter
invokeOther
in class IRBytecodeAdapter
name
- name of the method to invokearity
- arity of the callhasClosure
- whether a closure will be on the stack for passingpublic void invokeOtherOneFixnum(String name, long fixnum)
IRBytecodeAdapter
invokeOtherOneFixnum
in class IRBytecodeAdapter
name
- name of the method to invokepublic void invokeOtherOneFloat(String name, double flote)
IRBytecodeAdapter
invokeOtherOneFloat
in class IRBytecodeAdapter
name
- name of the method to invokepublic void invokeSelf(String name, int arity, boolean hasClosure)
IRBytecodeAdapter
invokeSelf
in class IRBytecodeAdapter
name
- name of the method to invokearity
- arity of the callhasClosure
- whether a closure will be on the stack for passingpublic void invokeInstanceSuper(String name, int arity, boolean hasClosure, boolean[] splatmap)
IRBytecodeAdapter
invokeInstanceSuper
in class IRBytecodeAdapter
name
- name of the method to invokearity
- arity of the arguments on the stackhasClosure
- whether a block is passedsplatmap
- a map of arguments to be splatted back into arg listpublic void invokeClassSuper(String name, int arity, boolean hasClosure, boolean[] splatmap)
IRBytecodeAdapter
invokeClassSuper
in class IRBytecodeAdapter
name
- name of the method to invokearity
- arity of the arguments on the stackhasClosure
- whether a block is passedsplatmap
- a map of arguments to be splatted back into arg listpublic void invokeUnresolvedSuper(String name, int arity, boolean hasClosure, boolean[] splatmap)
IRBytecodeAdapter
invokeUnresolvedSuper
in class IRBytecodeAdapter
name
- name of the method to invokearity
- arity of the arguments on the stackhasClosure
- whether a block is passedsplatmap
- a map of arguments to be splatted back into arg listpublic void invokeZSuper(String name, int arity, boolean hasClosure, boolean[] splatmap)
IRBytecodeAdapter
invokeZSuper
in class IRBytecodeAdapter
name
- name of the method to invokearity
- arity of the arguments on the stackhasClosure
- whether a block is passedsplatmap
- a map of arguments to be splatted back into arg listpublic void searchConst(String name, boolean noPrivateConsts)
IRBytecodeAdapter
searchConst
in class IRBytecodeAdapter
name
- name of the constantnoPrivateConsts
- whether to ignore private constantspublic void inheritanceSearchConst(String name, boolean noPrivateConsts)
IRBytecodeAdapter
inheritanceSearchConst
in class IRBytecodeAdapter
name
- name of the constantnoPrivateConsts
- whether to ignore private constantspublic void lexicalSearchConst(String name)
IRBytecodeAdapter
lexicalSearchConst
in class IRBytecodeAdapter
name
- name of the constantpublic void pushNil()
IRBytecodeAdapter
pushNil
in class IRBytecodeAdapter
public void pushBoolean(boolean b)
IRBytecodeAdapter
pushBoolean
in class IRBytecodeAdapter
b
- the boolean to pushpublic void pushBignum(BigInteger bigint)
IRBytecodeAdapter
pushBignum
in class IRBytecodeAdapter
bigint
- the value of the Bignum to pushpublic void putField(String name)
IRBytecodeAdapter
putField
in class IRBytecodeAdapter
name
- name of variable to storepublic void getField(String name)
IRBytecodeAdapter
getField
in class IRBytecodeAdapter
name
- name of variable to loadpublic void array(int length)
IRBytecodeAdapter
array
in class IRBytecodeAdapter
length
- number of elementspublic void hash(int length)
IRBytecodeAdapter
hash
in class IRBytecodeAdapter
length
- number of element pairspublic void kwargsHash(int length)
IRBytecodeAdapter
kwargsHash
in class IRBytecodeAdapter
length
- number of element pairspublic void checkpoint()
IRBytecodeAdapter
checkpoint
in class IRBytecodeAdapter
Copyright © 2001-2015 JRuby. All Rights Reserved.