diff options
author | David Brazdil <dbrazdil@google.com> | 2018-01-15 18:10:50 +0000 |
---|---|---|
committer | David Brazdil <dbrazdil@google.com> | 2018-01-18 14:47:33 +0000 |
commit | f6a8a557e0e3099a2c458a81a4b48623989330a5 (patch) | |
tree | e82439e60546643d34b888fd79c04ae7b4d899c0 /compiler/optimizing/graph_visualizer.cc | |
parent | 1372c9772d37f43147d3791c998173811f04594c (diff) |
Set runtime hidden API access flags
The hiddenapi tool encodes new access flags into boot class path
dex files, but we do not want to use those at runtime. They are
cumbersome to decode and interfere with other flags.
This patch introduces new runtime access flags kAccHiddenApiBits,
two consecutive bits in the space occupied by intrinsic ordinals
which are used to encode the four categories of APIs in
HiddenApiAccessFlags::ApiList. ClassLinker converts one encoding
to the other when a new method/field is loaded from DexFile.
DexHiddenAccessFlags have been made an internal class of new
HiddenApiAccessFlags class which contains all the code related
to encoding/decoding these flags for both DexFile and runtime.
Test: m test-art-host
Bug: 64382372
Change-Id: Ie055dc3440c44e8815030e652f08d9ee3dba69e5
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions