Package org.jruby.ir.persistence
Class IRDumper
java.lang.Object
org.jruby.ir.IRVisitor
org.jruby.ir.persistence.IRDumper
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate StringvoidvoidvoidvoidClosureLocalVariable(ClosureLocalVariable closurelocalvariable) voidvoidCurrentScope(CurrentScope currentscope) voidDynamicSymbol(DynamicSymbol dynamicsymbol) voidvoidvoidvoidformatInstr(Instr instr1, String varFormat, String varSpaces, String ipcFormat, Instr instr2, int i) voidFrozenString(FrozenString frozen) private static ObjectintgetLongestVariable(int longest, ResultInstr i) voidGlobalVariable(GlobalVariable globalvariable) voidvoidIRException(IRException irexception) voidvoidLocalVariable(LocalVariable localvariable) voidMutableString(MutableString mutablestring) voidvoidvoidvoidObjectClass(ObjectClass objectclass) private voidprivate voidprivate voidprintAnsiOp(String c, String pre, Operand op) private voidprintAnsiOp(String c, Operand op) private voidstatic ByteArrayOutputStreamstatic ByteArrayOutputStreamprivate voidvoidvoidvoidScopeModule(ScopeModule scopemodule) voidprivate static final Stringspaces(int size) voidvoidStandardError(StandardError standarderror) voidvoidvoidSymbolProc(SymbolProc symbolproc) voidTemporaryBooleanVariable(TemporaryBooleanVariable temporarybooleanvariable) voidTemporaryFixnumVariable(TemporaryFixnumVariable temporaryfixnumvariable) voidTemporaryFloatVariable(TemporaryFloatVariable temporaryfloatvariable) voidTemporaryLocalVariable(TemporaryLocalVariable temporarylocalvariable) voidTemporaryVariable(TemporaryVariable temporaryvariable) voidUnboxedBoolean(UnboxedBoolean bool) voidUnboxedFixnum(UnboxedFixnum fixnum) voidUnboxedFloat(UnboxedFloat flote) voidUndefinedValue(UndefinedValue undefinedvalue) voidUnexecutableNil(UnexecutableNil unexecutablenil) voidvoidvoidvoidWrappedIRClosure(WrappedIRClosure wrappedirclosure) Methods inherited from class org.jruby.ir.IRVisitor
AliasInstr, AluInstr, ArrayDerefInstr, AsStringInstr, AttrAssignInstr, BFalseInstr, BlockGivenInstr, BNEInstr, BNilInstr, BoxBooleanInstr, BoxFixnumInstr, BoxFloatInstr, BreakInstr, BSwitchInstr, BTrueInstr, BuildBackrefInstr, BuildCompoundArrayInstr, BuildCompoundStringInstr, BuildDynRegExpInstr, BuildLambdaInstr, BuildRangeInstr, BuildSplatInstr, BUndefInstr, CallInstr, CheckArgsArrayArityInstr, CheckArityInstr, CheckForLJEInstr, ClassSuperInstr, CopyInstr, DefineClassInstr, DefineClassMethodInstr, DefineInstanceMethodInstr, DefineMetaClassInstr, DefineModuleInstr, EQQInstr, ExceptionRegionEndMarkerInstr, ExceptionRegionStartMarkerInstr, GetClassVarContainerModuleInstr, GetClassVariableInstr, GetEncodingInstr, GetErrorInfoInstr, GetFieldInstr, GetGlobalVariableInstr, GVarAliasInstr, InheritanceSearchConstInstr, InstanceSuperInstr, Instr, JumpInstr, LabelInstr, LexicalSearchConstInstr, LineNumberInstr, LoadBlockImplicitClosure, LoadFrameClosure, LoadImplicitClosure, LoadLocalVarInstr, MatchInstr, ModuleVersionGuardInstr, NonlocalReturnInstr, NopInstr, NoResultCallInstr, OneFixnumArgNoBlockCallInstr, OneFloatArgNoBlockCallInstr, OneOperandArgNoBlockCallInstr, OptArgMultipleAsgnInstr, PopBackrefFrameInstr, PopBindingInstr, PopBlockFrameInstr, PopMethodFrameInstr, PrepareBlockArgsInstr, PrepareFixedBlockArgsInstr, PrepareNoBlockArgsInstr, PrepareSingleBlockArgInstr, ProcessModuleBodyInstr, PushBackrefFrameInstr, 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, Scope, SearchConstInstr, SearchModuleForConstInstr, SetCapturedVarInstr, StoreLocalVarInstr, ThreadPollInstr, ThrowExceptionInstr, ToAryInstr, ToggleBacktraceInstr, TraceInstr, UnboxBooleanInstr, UnboxFixnumInstr, UnboxFloatInstr, UndefMethodInstr, UnresolvedSuperInstr, UpdateBlockExecutionStateInstr, YieldInstr, ZeroOperandArgNoBlockCallInstr, ZSuperInstr
-
Field Details
-
stream
-
color
private final boolean color -
SPACES
- See Also:
-
INSTR_COLOR
- See Also:
-
OPERAND_COLOR
- See Also:
-
VARIABLE_COLOR
- See Also:
-
FIELD_COLOR
- See Also:
-
BLOCK_COLOR
- See Also:
-
CLEAR_COLOR
- See Also:
-
-
Constructor Details
-
IRDumper
-
-
Method Details
-
printIR
-
printIR
-
visit
-
formatInstr
-
getLongestVariable
-
visit
-
visit
-
Array
-
Bignum
-
Boolean
-
UnboxedBoolean
- Overrides:
UnboxedBooleanin classIRVisitor
-
ClosureLocalVariable
- Overrides:
ClosureLocalVariablein classIRVisitor
-
CurrentScope
- Overrides:
CurrentScopein classIRVisitor
-
Complex
-
DynamicSymbol
- Overrides:
DynamicSymbolin classIRVisitor
-
Filename
-
Fixnum
-
FrozenString
- Overrides:
FrozenStringin classIRVisitor
-
UnboxedFixnum
- Overrides:
UnboxedFixnumin classIRVisitor
-
Float
-
UnboxedFloat
- Overrides:
UnboxedFloatin classIRVisitor
-
GlobalVariable
- Overrides:
GlobalVariablein classIRVisitor
-
Hash
-
IRException
- Overrides:
IRExceptionin classIRVisitor
-
Label
-
LocalVariable
- Overrides:
LocalVariablein classIRVisitor
-
Nil
-
NthRef
-
NullBlock
-
ObjectClass
- Overrides:
ObjectClassin classIRVisitor
-
Rational
-
Regexp
-
ScopeModule
- Overrides:
ScopeModulein classIRVisitor
-
Self
-
Splat
-
StandardError
- Overrides:
StandardErrorin classIRVisitor
-
MutableString
- Overrides:
MutableStringin classIRVisitor
-
SValue
-
Symbol
-
SymbolProc
- Overrides:
SymbolProcin classIRVisitor
-
TemporaryVariable
- Overrides:
TemporaryVariablein classIRVisitor
-
TemporaryLocalVariable
- Overrides:
TemporaryLocalVariablein classIRVisitor
-
TemporaryFloatVariable
- Overrides:
TemporaryFloatVariablein classIRVisitor
-
TemporaryFixnumVariable
- Overrides:
TemporaryFixnumVariablein classIRVisitor
-
TemporaryBooleanVariable
- Overrides:
TemporaryBooleanVariablein classIRVisitor
-
UndefinedValue
- Overrides:
UndefinedValuein classIRVisitor
-
UnexecutableNil
- Overrides:
UnexecutableNilin classIRVisitor
-
WrappedIRClosure
- Overrides:
WrappedIRClosurein classIRVisitor
-
get
-
spaces
-
ansiStr
-
printAnsi
-
printAnsiOp
-
printAnsiOp
-
print
-
println
-
printf
-