public class InheritedCacheCompiler extends Object implements CacheCompiler
Modifier and Type | Field and Description |
---|---|
protected StandardASMCompiler |
scriptCompiler |
Constructor and Description |
---|
InheritedCacheCompiler(StandardASMCompiler scriptCompiler) |
Modifier and Type | Method and Description |
---|---|
void |
cacheBigInteger(BaseBodyCompiler method,
BigInteger bigint) |
void |
cacheBoolean(BaseBodyCompiler method,
boolean tru) |
void |
cacheByteList(BaseBodyCompiler method,
org.jruby.util.ByteList contents) |
void |
cacheCallSite(BaseBodyCompiler method,
String name,
CallType callType) |
int |
cacheClosure(BaseBodyCompiler method,
String closureMethod,
int arity,
StaticScope scope,
String file,
int line,
boolean hasMultipleArgsHead,
NodeType argsNodeId,
ASTInspector inspector) |
int |
cacheClosure19(BaseBodyCompiler method,
String closureMethod,
int arity,
StaticScope scope,
String file,
int line,
boolean hasMultipleArgsHead,
NodeType argsNodeId,
String parameterList,
ASTInspector inspector) |
void |
cacheConstant(BaseBodyCompiler method,
String constantName) |
void |
cacheConstantBoolean(BaseBodyCompiler method,
String constantName) |
void |
cacheConstantDefined(BaseBodyCompiler method,
String constantName) |
void |
cacheConstantFrom(BaseBodyCompiler method,
String constantName) |
void |
cachedGetVariable(BaseBodyCompiler method,
String name) |
void |
cachedGetVariableDefined(BaseBodyCompiler method,
String name) |
void |
cacheDRegexp(BaseBodyCompiler method,
CompilerCallback createStringCallback,
int options) |
void |
cacheDRegexp19(BaseBodyCompiler method,
ArrayCallback arrayCallback,
Object[] sourceArray,
int options) |
void |
cachedSetVariable(BaseBodyCompiler method,
String name,
CompilerCallback valueCallback) |
int |
cacheEncoding(BaseBodyCompiler method,
org.jcodings.Encoding encoding) |
void |
cacheFixnum(BaseBodyCompiler method,
long value) |
void |
cacheFloat(BaseBodyCompiler method,
double value) |
void |
cacheGlobal(BaseBodyCompiler method,
String globalName) |
void |
cacheGlobalBoolean(BaseBodyCompiler method,
String globalName) |
void |
cacheMethod(BaseBodyCompiler method,
String methodName) |
void |
cacheMethod(BaseBodyCompiler method,
String methodName,
int receiverLocal) |
void |
cacheRegexp(BaseBodyCompiler method,
org.jruby.util.ByteList pattern,
int options) |
void |
cacheRubyEncoding(BaseBodyCompiler method,
org.jcodings.Encoding encoding) |
void |
cacheSpecialClosure(BaseBodyCompiler method,
String closureMethod) |
int |
cacheStaticScope(BaseBodyCompiler method,
StaticScope scope) |
void |
cacheString(BaseBodyCompiler method,
org.jruby.util.ByteList contents,
int codeRange) |
void |
cacheSymbol(BaseBodyCompiler method,
String symbol,
org.jcodings.Encoding encoding) |
void |
finish() |
void |
loadStaticScope(BaseBodyCompiler method,
int index) |
int |
reserveStaticScope() |
protected StandardASMCompiler scriptCompiler
public InheritedCacheCompiler(StandardASMCompiler scriptCompiler)
public int reserveStaticScope()
reserveStaticScope
in interface CacheCompiler
public int cacheStaticScope(BaseBodyCompiler method, StaticScope scope)
cacheStaticScope
in interface CacheCompiler
public void loadStaticScope(BaseBodyCompiler method, int index)
loadStaticScope
in interface CacheCompiler
public void cacheCallSite(BaseBodyCompiler method, String name, CallType callType)
cacheCallSite
in interface CacheCompiler
public void cacheSymbol(BaseBodyCompiler method, String symbol, org.jcodings.Encoding encoding)
cacheSymbol
in interface CacheCompiler
public void cacheRegexp(BaseBodyCompiler method, org.jruby.util.ByteList pattern, int options)
cacheRegexp
in interface CacheCompiler
public void cacheDRegexp(BaseBodyCompiler method, CompilerCallback createStringCallback, int options)
cacheDRegexp
in interface CacheCompiler
public void cacheDRegexp19(BaseBodyCompiler method, ArrayCallback arrayCallback, Object[] sourceArray, int options)
cacheDRegexp19
in interface CacheCompiler
public void cacheFixnum(BaseBodyCompiler method, long value)
cacheFixnum
in interface CacheCompiler
public void cacheFloat(BaseBodyCompiler method, double value)
cacheFloat
in interface CacheCompiler
public void cacheConstant(BaseBodyCompiler method, String constantName)
cacheConstant
in interface CacheCompiler
public void cacheConstantBoolean(BaseBodyCompiler method, String constantName)
cacheConstantBoolean
in interface CacheCompiler
public void cacheConstantDefined(BaseBodyCompiler method, String constantName)
cacheConstantDefined
in interface CacheCompiler
public void cacheConstantFrom(BaseBodyCompiler method, String constantName)
cacheConstantFrom
in interface CacheCompiler
public void cacheString(BaseBodyCompiler method, org.jruby.util.ByteList contents, int codeRange)
cacheString
in interface CacheCompiler
public void cacheByteList(BaseBodyCompiler method, org.jruby.util.ByteList contents)
cacheByteList
in interface CacheCompiler
public void cacheRubyEncoding(BaseBodyCompiler method, org.jcodings.Encoding encoding)
cacheRubyEncoding
in interface CacheCompiler
public int cacheEncoding(BaseBodyCompiler method, org.jcodings.Encoding encoding)
cacheEncoding
in interface CacheCompiler
public void cacheBigInteger(BaseBodyCompiler method, BigInteger bigint)
cacheBigInteger
in interface CacheCompiler
public void cachedGetVariable(BaseBodyCompiler method, String name)
cachedGetVariable
in interface CacheCompiler
public void cachedGetVariableDefined(BaseBodyCompiler method, String name)
cachedGetVariableDefined
in interface CacheCompiler
public void cachedSetVariable(BaseBodyCompiler method, String name, CompilerCallback valueCallback)
cachedSetVariable
in interface CacheCompiler
public int cacheClosure(BaseBodyCompiler method, String closureMethod, int arity, StaticScope scope, String file, int line, boolean hasMultipleArgsHead, NodeType argsNodeId, ASTInspector inspector)
cacheClosure
in interface CacheCompiler
public 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 CacheCompiler
public void cacheSpecialClosure(BaseBodyCompiler method, String closureMethod)
cacheSpecialClosure
in interface CacheCompiler
public void cacheMethod(BaseBodyCompiler method, String methodName)
cacheMethod
in interface CacheCompiler
public void cacheMethod(BaseBodyCompiler method, String methodName, int receiverLocal)
cacheMethod
in interface CacheCompiler
public void cacheGlobal(BaseBodyCompiler method, String globalName)
cacheGlobal
in interface CacheCompiler
public void cacheGlobalBoolean(BaseBodyCompiler method, String globalName)
cacheGlobalBoolean
in interface CacheCompiler
public void cacheBoolean(BaseBodyCompiler method, boolean tru)
cacheBoolean
in interface CacheCompiler
public void finish()
finish
in interface CacheCompiler
Copyright © 2001-2015 JRuby. All Rights Reserved.