Revert^2 "Cleanup the code to determine instrumentation level"

This reverts commit cb8f8c12872d36304dbac80fbd08d8400a757fe5.

Reason for revert: Reland commit 21ef5a80704da06bdb2945be1c735ca86e8f1860 with fixes

Fixes:
In JITed code when we compare a bool variable
(instrumentation_stubs_installed_) we should use cmpb and not cmpw. This
wasn't caught earlier because the next three variables are bool which
are related to instrumentation are false when instrumentation is disabled.

Test: testrunner.py --host --redefine-stress -t 421-large-frame,
testrunner.py --host --redefine-stress -t 545-tracing-and-jit

Change-Id: Iba363fb62d0cb41bcbc86af202eae73a833ba267
diff --git a/runtime/entrypoints/quick/quick_trampoline_entrypoints.cc b/runtime/entrypoints/quick/quick_trampoline_entrypoints.cc
index b29da65..c14dee4 100644
--- a/runtime/entrypoints/quick/quick_trampoline_entrypoints.cc
+++ b/runtime/entrypoints/quick/quick_trampoline_entrypoints.cc
@@ -2614,6 +2614,7 @@
       << "Enter instrumentation exit stub with pending exception " << self->GetException()->Dump();
 
   instrumentation::Instrumentation* instr = Runtime::Current()->GetInstrumentation();
+  DCHECK(instr->AreExitStubsInstalled());
   bool is_ref;
   JValue return_value = instr->GetReturnValue(self, method, &is_ref, gpr_result, fpr_result);
   bool deoptimize = false;