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 --- runtime/arch/stub_test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/arch/stub_test.cc') diff --git a/runtime/arch/stub_test.cc b/runtime/arch/stub_test.cc index bbf9a8b93c..6665897c9d 100644 --- a/runtime/arch/stub_test.cc +++ b/runtime/arch/stub_test.cc @@ -1063,7 +1063,7 @@ TEST_F(StubTest, AllocObject) { EXPECT_FALSE(self->IsExceptionPending()); { // Use an arbitrary method from c to use as referrer - size_t result = Invoke3(static_cast(c->GetDexTypeIndex()), // type_idx + size_t result = Invoke3(static_cast(c->GetDexTypeIndex().index_), // type_idx // arbitrary reinterpret_cast(c->GetVirtualMethod(0, kRuntimePointerSize)), 0U, @@ -1197,7 +1197,7 @@ TEST_F(StubTest, AllocObjectArray) { if ((false)) { // Use an arbitrary method from c to use as referrer size_t result = Invoke3( - static_cast(c->GetDexTypeIndex()), // type_idx + static_cast(c->GetDexTypeIndex().index_), // type_idx 10U, // arbitrary reinterpret_cast(c_obj->GetVirtualMethod(0, kRuntimePointerSize)), -- cgit v1.2.3-59-g8ed1b