JIT mini-debug-info: Remove global maps.
Keep the extra bookkeeping information in JITCodeEntry.
Also do the compression eagerly during GC rather then lazily.
Test: test.py -b --host --jit
Bug: 119800099
Change-Id: Ie6cc682033a32c01d4c2cac242d8a4201116f940
diff --git a/compiler/debug/elf_debug_writer.h b/compiler/debug/elf_debug_writer.h
index 32b2f67..ed43a0b 100644
--- a/compiler/debug/elf_debug_writer.h
+++ b/compiler/debug/elf_debug_writer.h
@@ -29,6 +29,7 @@
namespace art {
class OatHeader;
+struct JITCodeEntry;
namespace mirror {
class Class;
} // namespace mirror
@@ -56,10 +57,8 @@
const MethodDebugInfo& method_info);
std::vector<uint8_t> PackElfFileForJIT(
- InstructionSet isa,
- const InstructionSetFeatures* features,
- std::vector<ArrayRef<const uint8_t>>& added_elf_files,
- std::vector<const void*>& removed_symbols,
+ ArrayRef<JITCodeEntry*> jit_entries,
+ ArrayRef<const void*> removed_symbols,
bool compress,
/*out*/ size_t* num_symbols);