From 6ee06e97cef5ee92944deaeba0da4d10c4c33a2a Mon Sep 17 00:00:00 2001 From: David Srbecky Date: Wed, 25 Jul 2018 21:45:54 +0100 Subject: Decode only the needed tables from CodeInfo. Most use cases need only the first two bit tables from CodeInfo. Add flag to the decode method so that only those two are loaded. We only touched the table header but that still made difference. This speeds up pmd by over 10%. Test: test-art-host-gtest Change-Id: I7740081bf18205dd69864503b5bcec7de5e1a901 --- compiler/debug/method_debug_info.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/debug/method_debug_info.h') diff --git a/compiler/debug/method_debug_info.h b/compiler/debug/method_debug_info.h index d0b03ec441..729c403f00 100644 --- a/compiler/debug/method_debug_info.h +++ b/compiler/debug/method_debug_info.h @@ -41,7 +41,7 @@ struct MethodDebugInfo { uint64_t code_address; uint32_t code_size; uint32_t frame_size_in_bytes; - const void* code_info; + const uint8_t* code_info; ArrayRef cfi; }; -- cgit v1.2.3-59-g8ed1b