Jit: Make most Jit compile failures non-fatal; just abort offending translation
Issue 2175597 Jit compile failures should abort translation, but not the VM
Added new dvmCompileAbort() to replace uses of dvmAbort() when something goes
wrong during the compliation of a trace. In that case, we'll abort the translation
and set it's head to the interpret-only "translation".
diff --git a/vm/compiler/IntermediateRep.c b/vm/compiler/IntermediateRep.c
index 018d890..b3e6490 100644
--- a/vm/compiler/IntermediateRep.c
+++ b/vm/compiler/IntermediateRep.c
@@ -81,8 +81,7 @@
*/
void dvmCompilerInsertLIRBefore(LIR *currentLIR, LIR *newLIR)
{
- if (currentLIR->prev == NULL)
- dvmAbort();
+ assert(currentLIR->prev != NULL);
LIR *prevLIR = currentLIR->prev;
prevLIR->next = newLIR;