Enable bitcode verification for debug builds
Turn bitcode function verification on for debug Quick and
Portable builds. Also in this CL, some sanity checking for
the dex2pc table and a temporary workaround for excessive filename
lengths for bitcode file dumps.
Change-Id: I430ed28824b078c03be7826cb13876cdcb8a0fec
diff --git a/src/compiler/Frontend.cc b/src/compiler/Frontend.cc
index 09bc054..d1259b7 100644
--- a/src/compiler/Frontend.cc
+++ b/src/compiler/Frontend.cc
@@ -700,6 +700,7 @@
false /* creat */,
NULL /* immedPredBlockP */);
catchBlock->catchEntry = true;
+ cUnit->catches.insert(catchBlock->startOffset);
SuccessorBlockInfo *successorBlockInfo = (SuccessorBlockInfo *)
oatNew(cUnit, sizeof(SuccessorBlockInfo), false, kAllocSuccessor);
successorBlockInfo->block = catchBlock;
@@ -840,7 +841,9 @@
}
#if defined(ART_USE_QUICK_COMPILER)
if (cUnit->genBitcode) {
- //cUnit->enableDebug |= (1 << kDebugVerifyBitcode);
+#ifndef NDEBUG
+ cUnit->enableDebug |= (1 << kDebugVerifyBitcode);
+#endif
//cUnit->printMe = true;
//cUnit->enableDebug |= (1 << kDebugDumpBitcodeFile);
}