Ejemplo n.º 1
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();
        }
Ejemplo n.º 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();
        }