public class IRManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_BUILD_PASSES |
static java.lang.String |
DEFAULT_INLINING_COMPILER_PASSES |
static java.lang.String |
DEFAULT_JIT_PASSES |
static boolean |
IR_INLINER |
static int |
IR_INLINER_THRESHOLD |
static boolean |
IR_INLINER_VERBOSE |
ToggleBacktraceInstr |
needsBacktrace |
ToggleBacktraceInstr |
needsNoBacktrace |
Ruby |
runtime |
static java.lang.String |
SAFE_COMPILER_PASSES |
Constructor and Description |
---|
IRManager(Ruby runtime,
RubyInstanceConfig config) |
public static final java.lang.String SAFE_COMPILER_PASSES
public static final java.lang.String DEFAULT_BUILD_PASSES
public static final java.lang.String DEFAULT_JIT_PASSES
public static final java.lang.String DEFAULT_INLINING_COMPILER_PASSES
public static boolean IR_INLINER
public static int IR_INLINER_THRESHOLD
public static boolean IR_INLINER_VERBOSE
public final ToggleBacktraceInstr needsBacktrace
public final ToggleBacktraceInstr needsNoBacktrace
public final Ruby runtime
public IRManager(Ruby runtime, RubyInstanceConfig config)
public Ruby getRuntime()
public boolean isDryRun()
public void setDryRun(boolean value)
public Nil getNil()
public StandardError getStandardError()
public Boolean getTrue()
public Boolean getFalse()
public IRModuleBody getObject()
public ToggleBacktraceInstr needsBacktrace(boolean needsIt)
public CompilerPassScheduler schedulePasses()
public static CompilerPassScheduler schedulePasses(java.util.List<CompilerPass> passes)
public java.util.List<CompilerPass> getCompilerPasses(IRScope scope)
public java.util.List<CompilerPass> getInliningCompilerPasses(IRScope scope)
public java.util.List<CompilerPass> getJITPasses(IRScope scope)
public java.util.List<CompilerPass> getSafePasses(IRScope scope)
public java.util.Set<CompilerPassListener> getListeners()
public InstructionsListener getInstructionsListener()
public IRScopeListener getIRScopeListener()
public void addListener(CompilerPassListener listener)
public void removeListener(CompilerPassListener listener)
public void addListener(InstructionsListener listener)
public void removeListener(InstructionsListener listener)
public void addListener(IRScopeListener listener)
public LineNumberInstr newLineNumber(int line)
public ReceiveSelfInstr getReceiveSelfInstr()
protected LineNumberInstr[] growLineNumbersPool(int index)
public void removeListener(IRScopeListener listener)
public RubySymbol getMetaClassName()
protected TemporaryLocalVariable[] growTemporaryVariablePool(int index)
public TemporaryLocalVariable newTemporaryLocalVariable(int index)
protected void optimizeIfSimpleScope(IRScope scope)
public RubyInstanceConfig getInstanceConfig()
public IRMethod loadInternalMethod(ThreadContext context, IRubyObject self, java.lang.String method)
Copyright © 2001-2018 JRuby. All Rights Reserved.