aboutsummaryrefslogtreecommitdiff
path: root/vm/compiler/codegen/arm/CodegenCommon.c
diff options
context:
space:
mode:
authorBill Buzbee <buzbee@google.com>2010-03-06 23:30:57 -0800
committerBill Buzbee <buzbee@google.com>2010-03-07 08:24:00 -0800
commitfc519dc8f4444f6d93806ec15ce7445b322070fd (patch)
tree7128bbc741b5125cbe85300e1cd264ab3aca6bde /vm/compiler/codegen/arm/CodegenCommon.c
parent164d1279b67ec13061e473cb453b1ff24189e0e0 (diff)
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".
Diffstat (limited to 'vm/compiler/codegen/arm/CodegenCommon.c')
-rw-r--r--vm/compiler/codegen/arm/CodegenCommon.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/vm/compiler/codegen/arm/CodegenCommon.c b/vm/compiler/codegen/arm/CodegenCommon.c
index 6d2ddcd40..8f5c11da4 100644
--- a/vm/compiler/codegen/arm/CodegenCommon.c
+++ b/vm/compiler/codegen/arm/CodegenCommon.c
@@ -60,7 +60,8 @@ static void setMemRefType(ArmLIR *lir, bool isLoad, int memType)
break;
default:
LOGE("Jit: invalid memref kind - %d", memType);
- dvmAbort();
+ assert(0); // Bail if debug build, set worst-case in the field
+ *maskPtr |= ENCODE_ALL;
}
}