| 715 | } |
| 716 | |
| 717 | void VM::EvalProgram() { |
| 718 | // Keep exception handling code in seperate function from hot loop in EvalProgramInner() |
| 719 | // just in case it affects the compiler. |
| 720 | #ifdef USE_EXCEPTION_HANDLING |
| 721 | try |
| 722 | #endif |
| 723 | { |
| 724 | EvalProgramInner(); |
| 725 | } |
| 726 | #ifdef USE_EXCEPTION_HANDLING |
| 727 | catch (string &s) { |
| 728 | if (s != "end-eval") THROW_OR_ABORT(s); |
| 729 | } |
| 730 | #endif |
| 731 | } |
| 732 | |
| 733 | ostringstream &VM::TraceStream() { |
| 734 | size_t trace_size = trace == TraceMode::TAIL ? 50 : 1; |
no outgoing calls
no test coverage detected