summaryrefslogtreecommitdiffstats
path: root/compiler/debug
diff options
context:
space:
mode:
authorDavid Srbecky <dsrbecky@google.com>2018-07-25 21:45:54 +0100
committerDavid Srbecky <dsrbecky@google.com>2018-07-26 11:45:54 +0100
commit6ee06e97cef5ee92944deaeba0da4d10c4c33a2a (patch)
tree77d69c85d37864b4d3ee970be4b7fd1246adee7b /compiler/debug
parentf5dcd31d89282b6c9324fdc960e6e7e2281c16f1 (diff)
downloadart-6ee06e97cef5ee92944deaeba0da4d10c4c33a2a.tar.gz
art-6ee06e97cef5ee92944deaeba0da4d10c4c33a2a.tar.bz2
art-6ee06e97cef5ee92944deaeba0da4d10c4c33a2a.zip
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
Diffstat (limited to 'compiler/debug')
-rw-r--r--compiler/debug/method_debug_info.h2
1 files changed, 1 insertions, 1 deletions
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<const uint8_t> cfi;
};