From a5b09a67034e57a6e10231dd4bd92f4cb50b824c Mon Sep 17 00:00:00 2001 From: Andreas Gampe Date: Thu, 17 Nov 2016 15:21:22 -0800 Subject: ART: Add dex::TypeIndex Add abstraction for uint16_t type index. Test: m test-art-host Change-Id: I47708741c7c579cbbe59ab723c1e31c5fe71f83a --- compiler/compiled_method.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'compiler/compiled_method.h') 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 { -- cgit v1.2.3-59-g8ed1b