Add stress-test mode for ResolveMethodFromCode
To force call to artResolveMethodFromCode prior to each virtual or
super invoke, add (1 << kDebugExerciseResolveMethod) bit to the
compiler's debug flags.
Change-Id: If14e4bcc8073c8ac7a7a8d0d92bc49444528f77e
diff --git a/src/compiler/codegen/arm/Thumb2/Gen.cc b/src/compiler/codegen/arm/Thumb2/Gen.cc
index 6796f6c..0afbe41 100644
--- a/src/compiler/codegen/arm/Thumb2/Gen.cc
+++ b/src/compiler/codegen/arm/Thumb2/Gen.cc
@@ -30,6 +30,8 @@
(1 << kDebugSlowestFieldPath))
#define EXERCISE_SLOWEST_STRING_PATH (cUnit->enableDebug & \
(1 << kDebugSlowestStringPath))
+#define EXERCISE_RESOLVE_METHOD (cUnit->enableDebug & \
+ (1 << kDebugExerciseResolveMethod))
STATIC RegLocation getRetLoc(CompilationUnit* cUnit);