public BlockWriter(Prototype pt, ControlFlowGraph cfg, DecompiledLua lua) { this.pt = pt; this.lua = lua; this.cfg = cfg; ctx = new LStateContext(pt, cfg, lua); }
public LStateContext(Prototype pt, ControlFlowGraph cfg, DecompiledLua lua) { this.pt = pt; this.cfg = cfg; this.lua = lua; varNames = new VariableNames(pt.variableNames); upvalues = new BaseConstant[pt.upvalues.Count]; upvalueNames = new string[upvalues.Length]; slots = new BaseConstant[pt.frameSize]; InitUpvalues(); PrepareGlobals(); }