Add more logging and sanity checks for JIT mini-debug-info.
Used when diagnosing b/151137723. Keep it around.
Bug: 151137723
Test: test.py -r --jit
Change-Id: I10cc613c7396607e221fdc1f5972d26c1ac03fa8
diff --git a/runtime/jit/jit_code_cache.h b/runtime/jit/jit_code_cache.h
index 9ef1e4f..50e1e2b 100644
--- a/runtime/jit/jit_code_cache.h
+++ b/runtime/jit/jit_code_cache.h
@@ -266,6 +266,8 @@
ArrayRef<const uint8_t> reserved_data, // Uninitialized destination.
const std::vector<Handle<mirror::Object>>& roots,
ArrayRef<const uint8_t> stack_map, // Compiler output (source).
+ const std::vector<uint8_t>& debug_info,
+ bool is_full_debug_info,
bool osr,
bool has_should_deoptimize_flag,
const ArenaSet<ArtMethod*>& cha_single_implementation_list)
@@ -440,6 +442,10 @@
REQUIRES(Locks::jit_lock_)
REQUIRES(Locks::mutator_lock_);
+ // Call given callback for every compiled method in the code cache.
+ void VisitAllMethods(const std::function<void(const void*, ArtMethod*)>& cb)
+ REQUIRES(Locks::jit_lock_);
+
// Free code and data allocations for `code_ptr`.
void FreeCodeAndData(const void* code_ptr)
REQUIRES(Locks::jit_lock_)