ART: Faster type check bitstring initialization.

Reuse depth from recursive call instead of calculating it
repeatedly at every level of recursion. Pass pointers by
value instead of reference.

Test: m test-art-host-gtest
Test: testrunner.py --host --jit
Bug: 70734806
Change-Id: Idd405a2c3b04adbfd544639358dc562b32e4c34f
diff --git a/oatdump/oatdump.cc b/oatdump/oatdump.cc
index b2e19a8..a97dd2a 100644
--- a/oatdump/oatdump.cc
+++ b/oatdump/oatdump.cc
@@ -2375,10 +2375,10 @@
         PrettyObjectValue(os, value_class, value);
       }
     } else if (obj->IsClass()) {
-      mirror::Class* klass = obj->AsClass();
+      ObjPtr<mirror::Class> klass = obj->AsClass();
 
       os << "SUBTYPE_CHECK_BITS: ";
-      SubtypeCheck<mirror::Class*>::Dump(klass, os);
+      SubtypeCheck<ObjPtr<mirror::Class>>::Dump(klass, os);
       os << "\n";
 
       if (klass->NumStaticFields() != 0) {