diff options
author | 2017-07-10 14:13:41 -0700 | |
---|---|---|
committer | 2017-07-12 17:54:49 -0700 | |
commit | de4b08ff24c330d5b36b5c4dc8664ed4848eeca6 (patch) | |
tree | 79835478b8b631bbf006b5e023704f3cf53bda7c /runtime/safe_map.h | |
parent | c9267c48979698a9217760c914aba13ea20b5990 (diff) |
Reduce quicken info size
Move the quicken info from using a map of <dex pc, index> to an array
of indices. Removed leb encoding since it is harmful for 16 bit
indices. The map is indexed by the dequickenable instruction index
from the start of the code item.
Numbers for a certain large app compiled with quicken filter:
dex2oat native alloc: 85345936B -> 81527072B
oat file size: 9068968B -> 8659368B
vdex file size: 90479120B -> 86321184B
Bug: 63467744
Bug: 36457259
Test: test-art-host
(cherry picked from commit 959f348acabc48efbb18c547dad6300c0f610c1c)
Change-Id: I85546d8cd409cbf96140cbdddabd7e228797b9e3
Diffstat (limited to 'runtime/safe_map.h')
-rw-r--r-- | runtime/safe_map.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/safe_map.h b/runtime/safe_map.h index b54f587715..f29869172e 100644 --- a/runtime/safe_map.h +++ b/runtime/safe_map.h @@ -79,6 +79,9 @@ class SafeMap { iterator lower_bound(const K& k) { return map_.lower_bound(k); } const_iterator lower_bound(const K& k) const { return map_.lower_bound(k); } + iterator upper_bound(const K& k) { return map_.upper_bound(k); } + const_iterator upper_bound(const K& k) const { return map_.upper_bound(k); } + size_type count(const K& k) const { return map_.count(k); } // Note that unlike std::map's operator[], this doesn't return a reference to the value. |