/// <summary>
        /// Standard ctor for new runtime state
        /// </summary>
        /// <param name="numGlobals">Number of global variables in the associated script</param>
        public RuntimeState(int numGlobals)
        {
            MemInfo = new MemoryInfo();
            Globals = new object[numGlobals];


            Operands       = new Stack <object>(64);
            Calls          = new Stack <StackFrame>(64);
            EventQueue     = new C5.LinkedList <PostedEvent>();
            ActiveListens  = new Dictionary <int, ActiveListen>();
            MiscAttributes = new Dictionary <int, object[]>();
            LocalDisable   = LocalDisableFlag.None;
            this.Reset();
        }
示例#2
0
        /// <summary>
        /// Standard ctor for new runtime state
        /// </summary>
        /// <param name="numGlobals">Number of global variables in the associated script</param>
        public RuntimeState(int numGlobals)
        {
            MemInfo = new MemoryInfo();
            Globals = new object[numGlobals];


            Operands = new Stack<object>(64);
            Calls = new Stack<StackFrame>(64);
            EventQueue = new C5.LinkedList<PostedEvent>();
            ActiveListens = new Dictionary<int, ActiveListen>();
            MiscAttributes = new Dictionary<int, object[]>();
            LocalDisable = LocalDisableFlag.None;
            this.Reset();
        }
 /// <summary>
 /// For serialization
 /// </summary>
 public RuntimeState()
 {
     LocalDisable = LocalDisableFlag.None;
 }
示例#4
0
 /// <summary>
 /// For serialization
 /// </summary>
 public RuntimeState()
 {
     LocalDisable = LocalDisableFlag.None;
 }