diff options
author | Andreas Gampe <agampe@google.com> | 2016-11-17 15:21:22 -0800 |
---|---|---|
committer | Andreas Gampe <agampe@google.com> | 2016-11-21 10:57:00 -0800 |
commit | a5b09a67034e57a6e10231dd4bd92f4cb50b824c (patch) | |
tree | 304be738f4fa528b7ad2676103eecc84c79eaeeb /runtime/utils/dex_cache_arrays_layout.h | |
parent | dac7ad17c78387d15d7aefae0f852dddf5f37e34 (diff) |
ART: Add dex::TypeIndex
Add abstraction for uint16_t type index.
Test: m test-art-host
Change-Id: I47708741c7c579cbbe59ab723c1e31c5fe71f83a
Diffstat (limited to 'runtime/utils/dex_cache_arrays_layout.h')
-rw-r--r-- | runtime/utils/dex_cache_arrays_layout.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/utils/dex_cache_arrays_layout.h b/runtime/utils/dex_cache_arrays_layout.h index ae3bfab38c..7d4b23a8dd 100644 --- a/runtime/utils/dex_cache_arrays_layout.h +++ b/runtime/utils/dex_cache_arrays_layout.h @@ -18,6 +18,7 @@ #define ART_RUNTIME_UTILS_DEX_CACHE_ARRAYS_LAYOUT_H_ #include "dex_file.h" +#include "dex_file_types.h" namespace art { @@ -59,7 +60,7 @@ class DexCacheArraysLayout { return types_offset_; } - size_t TypeOffset(uint32_t type_idx) const; + size_t TypeOffset(dex::TypeIndex type_idx) const; size_t TypesSize(size_t num_elements) const; |