diff options
| author | 2014-12-02 15:04:37 -0800 | |
|---|---|---|
| committer | 2014-12-02 15:12:27 -0800 | |
| commit | 08f1f50d6c2e8f247b8f5f19711d75a792851c7a (patch) | |
| tree | dca490545d56168f7f9ae4a4616199b1b1c8ba0c /compiler/driver/compiler_driver-inl.h | |
| parent | 8443637f71a777a13317fe7635028d758a0adf97 (diff) | |
Remove FieldHelper.
Change-Id: I2d74e2d5b3c35a691c95339de0db9361847fca11
Diffstat (limited to 'compiler/driver/compiler_driver-inl.h')
| -rw-r--r-- | compiler/driver/compiler_driver-inl.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/compiler/driver/compiler_driver-inl.h b/compiler/driver/compiler_driver-inl.h index ebf7874dcf..3a91b08d5e 100644 --- a/compiler/driver/compiler_driver-inl.h +++ b/compiler/driver/compiler_driver-inl.h @@ -21,7 +21,6 @@ #include "dex/compiler_ir.h" #include "dex_compilation_unit.h" -#include "field_helper.h" #include "mirror/art_field-inl.h" #include "mirror/art_method-inl.h" #include "mirror/class_loader.h" @@ -134,10 +133,9 @@ inline std::pair<bool, bool> CompilerDriver::IsFastStaticField( } else { // Search dex file for localized ssb index, may fail if field's class is a parent // of the class mentioned in the dex file and there is no dex cache entry. - StackHandleScope<1> hs(Thread::Current()); + std::string temp; const DexFile::StringId* string_id = - dex_file->FindStringId( - FieldHelper(hs.NewHandle(resolved_field)).GetDeclaringClassDescriptor()); + dex_file->FindStringId(resolved_field->GetDeclaringClass()->GetDescriptor(&temp)); if (string_id != nullptr) { const DexFile::TypeId* type_id = dex_file->FindTypeId(dex_file->GetIndexForStringId(*string_id)); |