hasmer
Public Member Functions | Properties | List of all members
Hasmer.Decompiler.FunctionState Class Reference

Represents the state of a function as it is decompiled. More...

Public Member Functions

 FunctionState (DecompilerContext context, uint registers)
 Creates a new FunctionState, allocating a set amount of registers (frame size). More...
 
void DebugPrint ()
 

Properties

DecompilerContext Context [get, set]
 The decompiler context that uses this FunctionState. More...
 
RegisterTracker Registers [get, set]
 Represents the contents of each register as a JavaScript syntax object. More...
 
string[] Variables [get, set]
 Represents the current local variables as an array. Index = register, Value = variable name. More...
 
int[] CallExpressions [get, set]
 Represents mappings between registers and the call expression whose result was stored into that register.
The index of the array represents the register that the call expression was written into. The value at a given index of the array represents the index of the call expression token in the current DecompilerContext.Block. More...
 

Detailed Description

Represents the state of a function as it is decompiled.

Constructor & Destructor Documentation

◆ FunctionState()

Hasmer.Decompiler.FunctionState.FunctionState ( DecompilerContext  context,
uint  registers 
)
inline

Creates a new FunctionState, allocating a set amount of registers (frame size).

Property Documentation

◆ CallExpressions

int [] Hasmer.Decompiler.FunctionState.CallExpressions
getset

Represents mappings between registers and the call expression whose result was stored into that register.
The index of the array represents the register that the call expression was written into. The value at a given index of the array represents the index of the call expression token in the current DecompilerContext.Block.

◆ Context

DecompilerContext Hasmer.Decompiler.FunctionState.Context
getset

The decompiler context that uses this FunctionState.

◆ Registers

RegisterTracker Hasmer.Decompiler.FunctionState.Registers
getset

Represents the contents of each register as a JavaScript syntax object.

◆ Variables

string [] Hasmer.Decompiler.FunctionState.Variables
getset

Represents the current local variables as an array. Index = register, Value = variable name.


The documentation for this class was generated from the following file: