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 /compiler/compiled_method.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 'compiler/compiled_method.h')
-rw-r--r-- | compiler/compiled_method.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/compiled_method.h b/compiler/compiled_method.h index 99b0ac10d1..174e85e1bf 100644 --- a/compiler/compiled_method.h +++ b/compiler/compiled_method.h @@ -26,6 +26,7 @@ #include "base/array_ref.h" #include "base/bit_utils.h" #include "base/length_prefixed_array.h" +#include "dex_file_types.h" #include "method_reference.h" namespace art { @@ -302,9 +303,9 @@ class LinkerPatch { return target_dex_file_; } - uint32_t TargetTypeIndex() const { + dex::TypeIndex TargetTypeIndex() const { DCHECK(patch_type_ == Type::kType || patch_type_ == Type::kTypeRelative); - return type_idx_; + return dex::TypeIndex(type_idx_); } const DexFile* TargetStringDexFile() const { |