Ejemplo n.º 1
0
 public BlockWriter(Prototype pt, ControlFlowGraph cfg, DecompiledLua lua)
 {
     this.pt  = pt;
     this.lua = lua;
     this.cfg = cfg;
     ctx      = new LStateContext(pt, cfg, lua);
 }
Ejemplo n.º 2
0
 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();
 }