public class InvokeDynamicCacheCompiler extends InheritedCacheCompiler
scriptCompiler| Constructor and Description |
|---|
InvokeDynamicCacheCompiler(StandardASMCompiler scriptCompiler) |
| Modifier and Type | Method and Description |
|---|---|
void |
cacheBigInteger(BaseBodyCompiler method,
BigInteger bigint)
Cache a BigInteger using invokedynamic.
|
void |
cacheBoolean(BaseBodyCompiler method,
boolean tru) |
void |
cacheByteList(BaseBodyCompiler method,
org.jruby.util.ByteList contents)
This doesn't get used, since it's only used from cacheRegexp in superclass,
and that is completely bound via invokedynamic now.
|
void |
cacheCallSite(BaseBodyCompiler method,
String name,
CallType callType)
Cache a CallSite object using invokedynamic.
|
int |
cacheClosure(BaseBodyCompiler method,
String closureMethod,
int arity,
StaticScope scope,
String file,
int line,
boolean hasMultipleArgsHead,
NodeType argsNodeId,
ASTInspector inspector)
Cache a closure body (BlockBody) using invokedynamic.
|
int |
cacheClosure19(BaseBodyCompiler method,
String closureMethod,
int arity,
StaticScope scope,
String file,
int line,
boolean hasMultipleArgsHead,
NodeType argsNodeId,
String parameterList,
ASTInspector inspector)
Cache a closure body (BlockBody) for 1.9 mode using invokedynamic.
|
void |
cacheConstant(BaseBodyCompiler method,
String constantName)
Cache a constant reference using invokedynamic.
|
void |
cacheConstantBoolean(BaseBodyCompiler method,
String constantName)
Cache a constant boolean using invokedynamic.
|
void |
cachedGetVariable(BaseBodyCompiler method,
String name) |
void |
cachedSetVariable(BaseBodyCompiler method,
String name,
CompilerCallback valueCallback) |
void |
cacheFixnum(BaseBodyCompiler method,
long value)
Cache a Fixnum literal using invokedynamic.
|
void |
cacheFloat(BaseBodyCompiler method,
double value)
Cache a Float literal using invokedynamic.
|
void |
cacheGlobal(BaseBodyCompiler method,
String globalName) |
void |
cacheGlobalBoolean(BaseBodyCompiler method,
String globalName) |
void |
cacheRegexp(BaseBodyCompiler method,
org.jruby.util.ByteList pattern,
int options)
Cache a Regexp literal using invokedynamic.
|
void |
cacheRubyEncoding(BaseBodyCompiler method,
org.jcodings.Encoding encoding)
Cache the __ENCODING__ keyword using invokedynamic.
|
int |
cacheStaticScope(BaseBodyCompiler method,
StaticScope scope)
Cache a StaticScope using invokedynamic.
|
void |
cacheString(BaseBodyCompiler method,
org.jruby.util.ByteList contents,
int codeRange)
Cache a String literal using invokedynamic.
|
void |
cacheSymbol(BaseBodyCompiler method,
String symbol)
Cache the symbol for the given string using invokedynamic.
|
void |
loadStaticScope(BaseBodyCompiler method,
int index) |
cacheConstantDefined, cacheConstantFrom, cachedGetVariableDefined, cacheDRegexp, cacheDRegexp19, cacheEncoding, cacheMethod, cacheMethod, cacheSpecialClosure, finish, reserveStaticScopepublic InvokeDynamicCacheCompiler(StandardASMCompiler scriptCompiler)
public void cacheConstant(BaseBodyCompiler method, String constantName)
cacheConstant in interface CacheCompilercacheConstant in class InheritedCacheCompilermethod - the method compiler with which bytecode is emittedconstantName - the name of the constant to look uppublic void cacheConstantBoolean(BaseBodyCompiler method, String constantName)
cacheConstantBoolean in interface CacheCompilercacheConstantBoolean in class InheritedCacheCompilermethod - the method compiler with which bytecode is emittedconstantName - the name of the constant to look uppublic void cacheByteList(BaseBodyCompiler method, org.jruby.util.ByteList contents)
cacheByteList in interface CacheCompilercacheByteList in class InheritedCacheCompilermethod - the method compiler with which bytecode is emittedcontents - the contents of the bytelist to cachepublic void cacheRubyEncoding(BaseBodyCompiler method, org.jcodings.Encoding encoding)
cacheRubyEncoding in interface CacheCompilercacheRubyEncoding in class InheritedCacheCompilermethod - the method compiler with which bytecode is emittedencoding - the encoding for this scriptpublic int cacheClosure(BaseBodyCompiler method, String closureMethod, int arity, StaticScope scope, String file, int line, boolean hasMultipleArgsHead, NodeType argsNodeId, ASTInspector inspector)
cacheClosure in interface CacheCompilercacheClosure in class InheritedCacheCompilerpublic int cacheClosure19(BaseBodyCompiler method, String closureMethod, int arity, StaticScope scope, String file, int line, boolean hasMultipleArgsHead, NodeType argsNodeId, String parameterList, ASTInspector inspector)
cacheClosure19 in interface CacheCompilercacheClosure19 in class InheritedCacheCompilerpublic void cacheRegexp(BaseBodyCompiler method, org.jruby.util.ByteList pattern, int options)
cacheRegexp in interface CacheCompilercacheRegexp in class InheritedCacheCompilermethod - the method compiler with which bytecode is emittedpattern - the contents of the bytelist for the regexp patternoptions - the regexp optionspublic void cacheFixnum(BaseBodyCompiler method, long value)
cacheFixnum in interface CacheCompilercacheFixnum in class InheritedCacheCompilermethod - the method compiler with which bytecode is emittedvalue - the value of the Fixnumpublic void cacheFloat(BaseBodyCompiler method, double value)
cacheFloat in interface CacheCompilercacheFloat in class InheritedCacheCompilermethod - the method compiler with which bytecode is emittedvalue - the value of the Floatpublic int cacheStaticScope(BaseBodyCompiler method, StaticScope scope)
cacheStaticScope in interface CacheCompilercacheStaticScope in class InheritedCacheCompilermethod - the method compiler with which bytecode is emittedscope - the original scope to base the new one onpublic void loadStaticScope(BaseBodyCompiler method, int index)
loadStaticScope in interface CacheCompilerloadStaticScope in class InheritedCacheCompilerpublic void cacheCallSite(BaseBodyCompiler method, String name, CallType callType)
cacheCallSite in interface CacheCompilercacheCallSite in class InheritedCacheCompilermethod - the method compiler with which bytecode is emittedname - the method name the call site invokes, or null for "super"callType - the type of callpublic void cacheString(BaseBodyCompiler method, org.jruby.util.ByteList contents, int codeRange)
cacheString in interface CacheCompilercacheString in class InheritedCacheCompilermethod - the method compiler with which bytecode is emittedcontents - the contents of the bytelist for the StringcodeRange - the code range for the Stringpublic void cacheBigInteger(BaseBodyCompiler method, BigInteger bigint)
cacheBigInteger in interface CacheCompilercacheBigInteger in class InheritedCacheCompilermethod - the method compiler with which bytecode is emittedbigint - the BigInteger to cachepublic void cacheSymbol(BaseBodyCompiler method, String symbol)
cacheSymbol in interface CacheCompilercacheSymbol in class InheritedCacheCompilermethod - the method compiler with which bytecode is emittedsymbol - the string of the Symbol to cachepublic void cachedGetVariable(BaseBodyCompiler method, String name)
cachedGetVariable in interface CacheCompilercachedGetVariable in class InheritedCacheCompilerpublic void cachedSetVariable(BaseBodyCompiler method, String name, CompilerCallback valueCallback)
cachedSetVariable in interface CacheCompilercachedSetVariable in class InheritedCacheCompilerpublic void cacheGlobal(BaseBodyCompiler method, String globalName)
cacheGlobal in interface CacheCompilercacheGlobal in class InheritedCacheCompilerpublic void cacheGlobalBoolean(BaseBodyCompiler method, String globalName)
cacheGlobalBoolean in interface CacheCompilercacheGlobalBoolean in class InheritedCacheCompilerpublic void cacheBoolean(BaseBodyCompiler method, boolean tru)
cacheBoolean in interface CacheCompilercacheBoolean in class InheritedCacheCompilerCopyright © 2001-2013 JRuby. All Rights Reserved.