hasmer
|
Represents the context of a function as it is being decompiled. More...
Public Member Functions | |
DecompilerContext | GetDeepParent (int depth) |
Gets the parent context at the given depth. The current context is depth 0, the parent context is depth 1, etc. If the parent at the given depth is beyond that of a root function (i.e. a function whose parent is null), then an exception is thrown. Thus, this method can never return null. More... | |
DecompilerContext | DeepCopy () |
Creates a "semi-deep" copy of the current decompiler context, copying the context so that the original context's state is not affected by changes to the copy. More... | |
Properties | |
HbcDecompiler | Decompiler [get, set] |
The decompiler for the Hermes bytecode file. More... | |
HbcFile | Source [get] |
The bytecode file containing the function being decompiled. More... | |
List< HbcInstruction > | Instructions [get, set] |
The instructions in the current code block being decompiled. More... | |
FunctionState | State [get, set] |
The state of the function's registers and other information in the current code bock. More... | |
int | CurrentInstructionIndex [get, set] |
The index of the instruction currently being analyzed in the Instructions list. More... | |
HbcInstruction | Instruction [get] |
The current instruction being analyzed. More... | |
BlockStatement | Block [get, set] |
The current source tree code block that is being analyzed. More... | |
DecompilerContext | Parent [get, set] |
The decompiler context of the parent function, i.e. if this function is a closure, this will be the decompiler context of the callee. A parent of null means that the function is at the root. More... | |
HbcFuncHeader | Function [get, set] |
The header of the function that is being decompiled. More... | |
ControlFlowGraph | ControlFlowGraph [get, set] |
The control flow graph of the current function that is being decompiled. More... | |
Represents the context of a function as it is being decompiled.
|
inline |
Creates a "semi-deep" copy of the current decompiler context, copying the context so that the original context's state is not affected by changes to the copy.
|
inline |
Gets the parent context at the given depth. The current context is depth 0, the parent context is depth 1, etc. If the parent at the given depth is beyond that of a root function (i.e. a function whose parent is null), then an exception is thrown. Thus, this method can never return null.
|
getset |
The current source tree code block that is being analyzed.
|
getset |
The control flow graph of the current function that is being decompiled.
|
getset |
The index of the instruction currently being analyzed in the Instructions list.
|
getset |
The decompiler for the Hermes bytecode file.
|
getset |
The header of the function that is being decompiled.
|
get |
The current instruction being analyzed.
|
getset |
The instructions in the current code block being decompiled.
|
getset |
The decompiler context of the parent function, i.e. if this function is a closure, this will be the decompiler context of the callee. A parent of null means that the function is at the root.
|
get |
The bytecode file containing the function being decompiled.
|
getset |
The state of the function's registers and other information in the current code bock.