public void Execute() { foreach (var counter in Counters) { counter.Reset(); } try { Run(); } catch (Exception ex) { MethodCompiler.Stop(); PostCompilerTraceEvent(CompilerEvent.Exception, "Method: " + Method + " -> " + ex); MethodCompiler.Compiler.Stop(); } PostTraceLogs(traceLogs); Finish(); foreach (var counter in Counters) { UpdateCounter(counter); } MethodCompiler = null; traceLogs = null; }
public void Execute() { foreach (var counter in Counters) { counter.Reset(); } //Run(); try { Run(); } catch (Exception ex) { MethodCompiler.Stop(); NewCompilerTraceEvent(CompilerEvent.Exception, "Method: " + Method + " -> " + ex); MethodCompiler.Compiler.Stop(); } SubmitTraceLogs(traceLogs); Finish(); foreach (var counter in Counters) { UpdateCounter(counter); } //if (!MethodCompiler.IsStopped) //{ // Debug.Assert(BasicBlocks.RuntimeValidation()); //} MethodCompiler = null; traceLogs = null; }
public void AllStopWithException(string exception) { MethodCompiler.Stop(); MethodCompiler.Compiler.Stop(); throw new CompilerException(exception); }