- handle JIT errors in a more user-friendly fashion than aborting.
* use I_Error instead of I_FatalError to abort. I_FatalError is only for things that are not recoverable and should not be handled outside of error cleanup and rethrowing. * only catch CRecoverableError in JitCompile. Everything else should fall through to the outermost catch block. * Do not I_FatalError out after handling the exception locally. Just print an error and return null, indicating failure.
This commit is contained in:
parent
45d7e5a038
commit
d7da2d838f
5 changed files with 32 additions and 32 deletions
|
|
@ -174,7 +174,7 @@ void JitCompiler::EmitCAST()
|
|||
call->setArg(1, regD[B]);
|
||||
break;
|
||||
default:
|
||||
I_FatalError("Unknown OP_CAST type\n");
|
||||
I_Error("Unknown OP_CAST type\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue