Ejemplo n.º 1
0
        internal object CompileAndRun(Scope /*!*/ globalScope, ScriptCode /*!*/ code, bool tryEvaluate)
        {
            long ts1 = Stopwatch.GetTimestamp();

            code.EnsureCompiled();
            long ts2 = Stopwatch.GetTimestamp();

            Interlocked.Add(ref _ILGenerationTimeTicks, ts2 - ts1);

            return(code.Run(globalScope));
        }