示例#1
0
        public HTMLRuntime(HTMLRuntimeConfiguration configuration)
            : base(configuration)
        {
            Debug.WriteLine("Creating a new HTMLRuntime Instance in Appdomain {0}", AppDomain.CurrentDomain.FriendlyName);
            //mdr.Diagnose.WriteLineIf(Instance != null, "Instance already has a value");
            //Instance = this;
            //domPrototypes = new mdr.DObject[(int) WrapperType.LastWrapperType];
            TimerQueue = new TimerQueue();
            Debug.WriteLine("method call resolution is {0}", Configuration.EnableMethodCallResolution ? "enabled" : "disabled");
            Debug.WriteLine("light code gen is {0}", Configuration.EnableLightCompiler ? "enabled" : "disabled");

#if ENABLE_RR
            if (configuration.EnableRecord)
            {
              //                RecordReplayManager.Instance = new RecordReplayManager();
              RecordReplayManager.Instance.RecordFilename = configuration.RecordFilename;
              RecordReplayManager.Instance.Parameters = configuration.RecordParams;
              Debug.WriteLine("Start recording the session: filename {0} params {1}", RecordReplayManager.Instance.RecordFilename, RecordReplayManager.Instance.Parameters);
              RecordReplayManager.Instance.StartRecord();
              RecordReplayManager.Instance.Record("HTMLRuntime", null, "ctor", false, configuration.Arguments);
            }
            else
              if (configuration.EnableReplay)
              {
                _page = new DOM.Page(new IntPtr(0));
              }

#endif

        }