From 6d4d9fcb4f01e287ee29e81cd1c941ee5d11d379 Mon Sep 17 00:00:00 2001 From: Ian Rogers Date: Wed, 30 Nov 2011 16:24:48 -0800 Subject: Reduce meta-data object sizes, introduce meta-data helper classes. Change-Id: Id14ad218f1c74c659701352fdf1a45bf6444daa3 --- src/compiler/codegen/arm/MethodCodegenDriver.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/compiler/codegen/arm/MethodCodegenDriver.cc') diff --git a/src/compiler/codegen/arm/MethodCodegenDriver.cc b/src/compiler/codegen/arm/MethodCodegenDriver.cc index 15fd1ba841..2c3ee0d3a2 100644 --- a/src/compiler/codegen/arm/MethodCodegenDriver.cc +++ b/src/compiler/codegen/arm/MethodCodegenDriver.cc @@ -14,6 +14,8 @@ * limitations under the License. */ +#include "object_utils.h" + #define DISPLAY_MISSING_TARGETS (cUnit->enableDebug & \ (1 << kDebugDisplayMissingTargets)) @@ -192,7 +194,7 @@ Field* FindFieldWithResolvedStaticStorage(CompilationUnit* cUnit, // See if we can find a dex reference for the storage class. // we may not if the dex file never references the super class, // but usually it will. - std::string descriptor = field->GetDeclaringClass()->GetDescriptor()->ToModifiedUtf8(); + std::string descriptor(art::FieldHelper(field).GetDeclaringClassDescriptor()); const art::DexFile::StringId* string_id = cUnit->dex_file->FindStringId(descriptor); if (string_id == NULL) { -- cgit v1.2.3-59-g8ed1b