public class JITCompiler extends Object implements JITCompilerMBean
Modifier and Type | Class and Description |
---|---|
static class |
JITCompiler.JITClassGenerator |
static class |
JITCompiler.JITCounts |
Modifier and Type | Field and Description |
---|---|
static String |
CLASS_METHOD_DELIMITER |
static String |
RUBY_JIT_PREFIX |
Constructor and Description |
---|
JITCompiler(Ruby runtime) |
Modifier and Type | Method and Description |
---|---|
CompiledBlockCallback |
compileBlock(ThreadContext context,
StandardASMCompiler asmCompiler,
IterNode iterNode) |
CompiledBlockCallback19 |
compileBlock19(ThreadContext context,
StandardASMCompiler asmCompiler,
IterNode iterNode) |
long |
getAbandonCount() |
long |
getAverageCodeSize() |
long |
getAverageCompileTime() |
long |
getCodeSize() |
long |
getCompileCount() |
long |
getCompileTime() |
long |
getFailCount() |
static String |
getHashForBytes(byte[] bytes) |
static String |
getHashForString(String str) |
long |
getLargestCodeSize() |
long |
getSuccessCount() |
BlockBody |
newCompiledBlockBody(ThreadContext context,
IterNode iterNode,
Arity arity,
int argumentType) |
BlockBody |
newCompiledBlockBody19(ThreadContext context,
IterNode iterNode) |
Block |
newCompiledClosure(ThreadContext context,
IterNode iterNode,
IRubyObject self) |
void |
tearDown() |
void |
tryJIT(DefaultMethod method,
ThreadContext context,
String className,
String methodName) |
public static final String RUBY_JIT_PREFIX
public static final String CLASS_METHOD_DELIMITER
public JITCompiler(Ruby runtime)
public long getSuccessCount()
getSuccessCount
in interface JITCompilerMBean
public long getCompileCount()
getCompileCount
in interface JITCompilerMBean
public long getFailCount()
getFailCount
in interface JITCompilerMBean
public long getCompileTime()
getCompileTime
in interface JITCompilerMBean
public long getAbandonCount()
getAbandonCount
in interface JITCompilerMBean
public long getCodeSize()
getCodeSize
in interface JITCompilerMBean
public long getAverageCodeSize()
getAverageCodeSize
in interface JITCompilerMBean
public long getAverageCompileTime()
getAverageCompileTime
in interface JITCompilerMBean
public long getLargestCodeSize()
getLargestCodeSize
in interface JITCompilerMBean
public void tryJIT(DefaultMethod method, ThreadContext context, String className, String methodName)
public void tearDown()
public static String getHashForBytes(byte[] bytes)
public Block newCompiledClosure(ThreadContext context, IterNode iterNode, IRubyObject self)
public BlockBody newCompiledBlockBody(ThreadContext context, IterNode iterNode, Arity arity, int argumentType)
public BlockBody newCompiledBlockBody19(ThreadContext context, IterNode iterNode)
public CompiledBlockCallback compileBlock(ThreadContext context, StandardASMCompiler asmCompiler, IterNode iterNode)
public CompiledBlockCallback19 compileBlock19(ThreadContext context, StandardASMCompiler asmCompiler, IterNode iterNode)
Copyright © 2001-2016 JRuby. All Rights Reserved.