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 |
static boolean |
USE_CACHE |
| Constructor and Description |
|---|
JITCompiler(Ruby runtime) |
public static final boolean USE_CACHE
public static final String RUBY_JIT_PREFIX
public static final String CLASS_METHOD_DELIMITER
public JITCompiler(Ruby runtime)
public long getSuccessCount()
getSuccessCount in interface JITCompilerMBeanpublic long getCompileCount()
getCompileCount in interface JITCompilerMBeanpublic long getFailCount()
getFailCount in interface JITCompilerMBeanpublic long getCompileTime()
getCompileTime in interface JITCompilerMBeanpublic long getAbandonCount()
getAbandonCount in interface JITCompilerMBeanpublic long getCodeSize()
getCodeSize in interface JITCompilerMBeanpublic long getAverageCodeSize()
getAverageCodeSize in interface JITCompilerMBeanpublic long getAverageCompileTime()
getAverageCompileTime in interface JITCompilerMBeanpublic long getLargestCodeSize()
getLargestCodeSize in interface JITCompilerMBeanpublic void tryJIT(DefaultMethod method, ThreadContext context, String className, String methodName)
public void tearDown()
public static String getHashForBytes(byte[] bytes)
public static void saveToCodeCache(Ruby ruby, byte[] bytecode, String packageName, File cachedClassFile)
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-2013 JRuby. All Rights Reserved.