public class IRDumper extends IRVisitor
Constructor and Description |
---|
IRDumper(PrintStream ps,
boolean color) |
Modifier and Type | Method and Description |
---|---|
void |
Array(Array array) |
void |
AsString(AsString asstring) |
void |
Bignum(Bignum bignum) |
void |
Boolean(Boolean bool) |
void |
ClosureLocalVariable(ClosureLocalVariable closurelocalvariable) |
void |
Complex(Complex complex) |
void |
CurrentScope(CurrentScope currentscope) |
void |
DynamicSymbol(DynamicSymbol dynamicsymbol) |
void |
Filename(Filename filename) |
void |
Fixnum(Fixnum fixnum) |
void |
Float(Float flote) |
void |
formatInstr(Instr instr1,
String varFormat,
String varSpaces,
String ipcFormat,
Instr instr2,
int i) |
void |
FrozenString(FrozenString frozen) |
int |
getLongestVariable(int longest,
ResultInstr i) |
void |
GlobalVariable(GlobalVariable globalvariable) |
void |
Hash(Hash hash) |
void |
IRException(IRException irexception) |
void |
Label(Label label) |
void |
LocalVariable(LocalVariable localvariable) |
void |
Nil(Nil nil) |
void |
NthRef(NthRef nthref) |
void |
NullBlock(NullBlock nullblock) |
void |
ObjectClass(ObjectClass objectclass) |
static ByteArrayOutputStream |
printIR(IRScope scope,
boolean full) |
static ByteArrayOutputStream |
printIR(IRScope scope,
boolean full,
boolean recurse) |
void |
Rational(Rational rational) |
void |
Regexp(Regexp regexp) |
void |
ScopeModule(ScopeModule scopemodule) |
void |
Self(Self self) |
void |
Splat(Splat splat) |
void |
StandardError(StandardError standarderror) |
void |
StringLiteral(StringLiteral stringliteral) |
void |
SValue(SValue svalue) |
void |
Symbol(Symbol symbol) |
void |
SymbolProc(SymbolProc symbolproc) |
void |
TemporaryBooleanVariable(TemporaryBooleanVariable temporarybooleanvariable) |
void |
TemporaryFixnumVariable(TemporaryFixnumVariable temporaryfixnumvariable) |
void |
TemporaryFloatVariable(TemporaryFloatVariable temporaryfloatvariable) |
void |
TemporaryLocalVariable(TemporaryLocalVariable temporarylocalvariable) |
void |
TemporaryVariable(TemporaryVariable temporaryvariable) |
void |
UnboxedBoolean(UnboxedBoolean bool) |
void |
UnboxedFixnum(UnboxedFixnum fixnum) |
void |
UnboxedFloat(UnboxedFloat flote) |
void |
UndefinedValue(UndefinedValue undefinedvalue) |
void |
UnexecutableNil(UnexecutableNil unexecutablenil) |
void |
visit(Instr instr) |
void |
visit(IRScope scope,
boolean full,
boolean recurse) |
void |
visit(Operand operand) |
void |
WrappedIRClosure(WrappedIRClosure wrappedirclosure) |
AliasInstr, AluInstr, ArgScopeDepthInstr, ArrayDerefInstr, AttrAssignInstr, BacktickInstr, BEQInstr, BFalseInstr, BlockGivenInstr, BNEInstr, BNilInstr, BoxBooleanInstr, BoxFixnumInstr, BoxFloatInstr, BreakInstr, BTrueInstr, BuildBackrefInstr, BuildCompoundArrayInstr, BuildCompoundStringInstr, BuildDynRegExpInstr, BuildLambdaInstr, BuildRangeInstr, BuildSplatInstr, BUndefInstr, CallInstr, CheckArgsArrayArityInstr, CheckArityInstr, CheckForLJEInstr, ClassSuperInstr, ConstMissingInstr, CopyInstr, DefineClassInstr, DefineClassMethodInstr, DefineInstanceMethodInstr, DefineMetaClassInstr, DefineModuleInstr, EQQInstr, ExceptionRegionEndMarkerInstr, ExceptionRegionStartMarkerInstr, GetClassVarContainerModuleInstr, GetClassVariableInstr, GetEncodingInstr, GetErrorInfoInstr, GetFieldInstr, GetGlobalVariableInstr, GVarAliasInstr, InheritanceSearchConstInstr, InstanceSuperInstr, Instr, JumpInstr, LabelInstr, LexicalSearchConstInstr, LineNumberInstr, LoadFrameClosure, LoadImplicitClosure, LoadLocalVarInstr, MatchInstr, ModuleVersionGuardInstr, NonlocalReturnInstr, NopInstr, NoResultCallInstr, OneFixnumArgNoBlockCallInstr, OneFloatArgNoBlockCallInstr, OneOperandArgNoBlockCallInstr, OptArgMultipleAsgnInstr, PopBindingInstr, PopBlockFrameInstr, PopMethodFrameInstr, PrepareBlockArgsInstr, PrepareFixedBlockArgsInstr, PrepareNoBlockArgsInstr, PrepareSingleBlockArgInstr, ProcessModuleBodyInstr, PushBlockBindingInstr, PushBlockFrameInstr, PushMethodBindingInstr, PushMethodFrameInstr, PutClassVariableInstr, PutConstInstr, PutFieldInstr, PutGlobalVarInstr, RaiseArgumentErrorInstr, RaiseRequiredKeywordArgumentErrorInstr, ReceiveJRubyExceptionInstr, ReceiveKeywordArgInstr, ReceiveKeywordRestArgInstr, ReceiveOptArgInstr, ReceivePostReqdArgInstr, ReceivePreReqdArgInstr, ReceiveRestArgInstr, ReceiveRubyExceptionInstr, ReceiveSelfInstr, RecordEndBlockInstr, ReifyClosureInstr, ReqdArgMultipleAsgnInstr, RescueEQQInstr, RestArgMultipleAsgnInstr, RestoreBindingVisibilityInstr, RestoreErrorInfoInstr, ReturnInstr, ReturnOrRethrowSavedExcInstr, RuntimeHelperCall, SaveBindingVisibilityInstr, SearchConstInstr, SearchModuleForConstInstr, SetCapturedVarInstr, StoreLocalVarInstr, ThreadPollInstr, ThrowExceptionInstr, ToAryInstr, ToggleBacktraceInstr, UnboxBooleanInstr, UnboxFixnumInstr, UnboxFloatInstr, UndefMethodInstr, UnresolvedSuperInstr, UpdateBlockExecutionStateInstr, YieldInstr, ZeroOperandArgNoBlockCallInstr, ZSuperInstr
public IRDumper(PrintStream ps, boolean color)
public static ByteArrayOutputStream printIR(IRScope scope, boolean full)
public static ByteArrayOutputStream printIR(IRScope scope, boolean full, boolean recurse)
public void visit(IRScope scope, boolean full, boolean recurse)
public void formatInstr(Instr instr1, String varFormat, String varSpaces, String ipcFormat, Instr instr2, int i)
public int getLongestVariable(int longest, ResultInstr i)
public void UnboxedBoolean(UnboxedBoolean bool)
UnboxedBoolean
in class IRVisitor
public void ClosureLocalVariable(ClosureLocalVariable closurelocalvariable)
ClosureLocalVariable
in class IRVisitor
public void CurrentScope(CurrentScope currentscope)
CurrentScope
in class IRVisitor
public void DynamicSymbol(DynamicSymbol dynamicsymbol)
DynamicSymbol
in class IRVisitor
public void FrozenString(FrozenString frozen)
FrozenString
in class IRVisitor
public void UnboxedFixnum(UnboxedFixnum fixnum)
UnboxedFixnum
in class IRVisitor
public void UnboxedFloat(UnboxedFloat flote)
UnboxedFloat
in class IRVisitor
public void GlobalVariable(GlobalVariable globalvariable)
GlobalVariable
in class IRVisitor
public void IRException(IRException irexception)
IRException
in class IRVisitor
public void LocalVariable(LocalVariable localvariable)
LocalVariable
in class IRVisitor
public void ObjectClass(ObjectClass objectclass)
ObjectClass
in class IRVisitor
public void ScopeModule(ScopeModule scopemodule)
ScopeModule
in class IRVisitor
public void StandardError(StandardError standarderror)
StandardError
in class IRVisitor
public void StringLiteral(StringLiteral stringliteral)
StringLiteral
in class IRVisitor
public void SymbolProc(SymbolProc symbolproc)
SymbolProc
in class IRVisitor
public void TemporaryVariable(TemporaryVariable temporaryvariable)
TemporaryVariable
in class IRVisitor
public void TemporaryLocalVariable(TemporaryLocalVariable temporarylocalvariable)
TemporaryLocalVariable
in class IRVisitor
public void TemporaryFloatVariable(TemporaryFloatVariable temporaryfloatvariable)
TemporaryFloatVariable
in class IRVisitor
public void TemporaryFixnumVariable(TemporaryFixnumVariable temporaryfixnumvariable)
TemporaryFixnumVariable
in class IRVisitor
public void TemporaryBooleanVariable(TemporaryBooleanVariable temporarybooleanvariable)
TemporaryBooleanVariable
in class IRVisitor
public void UndefinedValue(UndefinedValue undefinedvalue)
UndefinedValue
in class IRVisitor
public void UnexecutableNil(UnexecutableNil unexecutablenil)
UnexecutableNil
in class IRVisitor
public void WrappedIRClosure(WrappedIRClosure wrappedirclosure)
WrappedIRClosure
in class IRVisitor
Copyright © 2001-2016 JRuby. All Rights Reserved.