Home
last modified time | relevance | path

Searched refs:string_idx (Results 1 – 25 of 25) sorted by relevance

/art/runtime/
Dmethod_helper-inl.h65 inline mirror::String* MethodHelper::ResolveString(uint32_t string_idx) { in ResolveString() argument
68 mirror::String* s = declaringClass->GetDexCacheStrings()->Get(string_idx); in ResolveString()
72 s = Runtime::Current()->GetClassLinker()->ResolveString(*method->GetDexFile(), string_idx, in ResolveString()
Ddex_instruction.cc165 uint32_t string_idx = VRegB_21c(); in DumpString() local
167 … PrintableString(file->StringDataByIdx(string_idx)).c_str(), string_idx); in DumpString()
285 uint32_t string_idx = VRegB_31c(); in DumpString() local
288 PrintableString(file->StringDataByIdx(string_idx)).c_str(), in DumpString()
289 string_idx); in DumpString()
291 os << StringPrintf("%s v%d, string@%d", opcode, VRegA_31c(), string_idx); in DumpString()
Dclass_linker-inl.h59 inline mirror::String* ClassLinker::ResolveString(uint32_t string_idx, in ResolveString() argument
62 mirror::String* resolved_string = declaring_class->GetDexCacheStrings()->Get(string_idx); in ResolveString()
67 resolved_string = ResolveString(dex_file, string_idx, dex_cache); in ResolveString()
69 DCHECK_EQ(dex_cache->GetResolvedString(string_idx), resolved_string); in ResolveString()
Dmethod_helper.h117 mirror::String* ResolveString(uint32_t string_idx) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
Dintern_table.cc194 uint32_t string_idx = dex_file->GetIndexForStringId(*string_id); in LookupStringFromImage() local
195 mirror::String* image = dex_cache->GetResolvedString(string_idx); in LookupStringFromImage()
Ddex_file.cc590 const DexFile::TypeId* DexFile::FindTypeId(uint32_t string_idx) const { in FindTypeId()
596 if (string_idx > type_id.descriptor_idx_) { in FindTypeId()
598 } else if (string_idx < type_id.descriptor_idx_) { in FindTypeId()
Dclass_linker.h139 mirror::String* ResolveString(uint32_t string_idx, mirror::ArtMethod* referrer)
144 mirror::String* ResolveString(const DexFile& dex_file, uint32_t string_idx,
Ddex_file.h539 const TypeId* FindTypeId(uint32_t string_idx) const;
Dclass_linker.cc5617 mirror::String* ClassLinker::ResolveString(const DexFile& dex_file, uint32_t string_idx, in ResolveString() argument
5620 mirror::String* resolved = dex_cache->GetResolvedString(string_idx); in ResolveString()
5625 const char* utf8_data = dex_file.StringDataAndUtf16LengthByIdx(string_idx, &utf16_length); in ResolveString()
5627 dex_cache->SetResolvedString(string_idx, string); in ResolveString()
/art/runtime/entrypoints/portable/
Dportable_dexcache_entrypoints.cc48 uint32_t string_idx) in art_portable_resolve_string_from_code() argument
50 return ResolveStringFromCode(referrer, string_idx); in art_portable_resolve_string_from_code()
/art/runtime/mirror/
Ddex_cache.h90 String* GetResolvedString(uint32_t string_idx) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) { in GetResolvedString() argument
91 return GetStrings()->Get(string_idx); in GetResolvedString()
94 void SetResolvedString(uint32_t string_idx, String* resolved) ALWAYS_INLINE in SetResolvedString() argument
97 GetStrings()->Set(string_idx, resolved); in SetResolvedString()
/art/runtime/entrypoints/quick/
Dquick_dexcache_entrypoints.cc61 int32_t string_idx, in artResolveStringFromCode() argument
66 return ResolveStringFromCode(referrer, string_idx); in artResolveStringFromCode()
/art/runtime/native/
Ddalvik_system_VMRuntime.cc227 static void PreloadDexCachesResolveString(Handle<mirror::DexCache> dex_cache, uint32_t string_idx, in PreloadDexCachesResolveString() argument
230 mirror::String* string = dex_cache->GetResolvedString(string_idx); in PreloadDexCachesResolveString()
235 const char* utf8 = dex_file->StringDataByIdx(string_idx); in PreloadDexCachesResolveString()
241 dex_cache->SetResolvedString(string_idx, string); in PreloadDexCachesResolveString()
/art/compiler/driver/
Dcompiler_driver.h201 bool CanAssumeStringIsPresentInDexCache(const DexFile& dex_file, uint32_t string_idx)
220 bool CanEmbedStringInCode(const DexFile& dex_file, uint32_t string_idx,
371 uint32_t string_idx,
616 uint32_t string_idx, in StringPatchInformation() argument
619 string_idx_(string_idx) { in StringPatchInformation()
Dcompiler_driver.cc849 uint32_t string_idx) { in CanAssumeStringIsPresentInDexCache() argument
859 Runtime::Current()->GetClassLinker()->ResolveString(dex_file, string_idx, dex_cache); in CanAssumeStringIsPresentInDexCache()
996 bool CompilerDriver::CanEmbedStringInCode(const DexFile& dex_file, uint32_t string_idx, in CanEmbedStringInCode() argument
1004 mirror::String* resolved_string = dex_cache->GetResolvedString(string_idx); in CanEmbedStringInCode()
1436 uint32_t string_idx, in AddStringPatch() argument
1442 string_idx, in AddStringPatch()
/art/compiler/dex/quick/
Dcodegen_util.cc515 uint32_t string_idx = data_lir->operands[0]; in InstallLiteralPools() local
519 string_idx, in InstallLiteralPools()
521 const auto& target_string_id = cu_->dex_file->GetStringId(string_idx); in InstallLiteralPools()
1270 void Mir2Lir::LoadString(uint32_t string_idx, RegStorage target_reg) { in LoadString() argument
1272 LIR* data_target = ScanLiteralPool(string_literal_list_, string_idx, 0); in LoadString()
1274 data_target = AddWordData(&string_literal_list_, string_idx); in LoadString()
Dgen_common.cc882 void Mir2Lir::GenConstString(uint32_t string_idx, RegLocation rl_dest) { in GenConstString() argument
885 mirror::ObjectArray<mirror::String>::OffsetOfElement(string_idx).Int32Value(); in GenConstString()
887 *cu_->dex_file, string_idx) || SLOW_STRING_PATH) { in GenConstString()
919 SlowPath(Mir2Lir* m2l, LIR* fromfast, LIR* cont, RegStorage r_method, int32_t string_idx) : in GenConstString() argument
921 r_method_(r_method), string_idx_(string_idx) { in GenConstString()
935 AddSlowPath(new (arena_) SlowPath(this, fromfast, cont, r_method, string_idx)); in GenConstString()
947 embed_string = cu_->compiler_driver->CanEmbedStringInCode(*cu_->dex_file, string_idx, in GenConstString()
953 LoadString(string_idx, rl_result.reg); in GenConstString()
Dmir_to_lir.h863 void GenConstString(uint32_t string_idx, RegLocation rl_dest);
1123 virtual void LoadString(uint32_t string_idx, RegStorage target_reg);
/art/runtime/interpreter/
Dinterpreter_common.h187 static inline String* ResolveString(Thread* self, MethodHelper& mh, uint32_t string_idx) in ResolveString() argument
200 return mh.ResolveString(string_idx); in ResolveString()
/art/runtime/entrypoints/
Dentrypoint_utils.h167 uint32_t string_idx)
Dentrypoint_utils-inl.h612 uint32_t string_idx) { in ResolveStringFromCode() argument
614 return class_linker->ResolveString(string_idx, referrer); in ResolveStringFromCode()
/art/compiler/llvm/
Dgbc_expander.cc207 llvm::Value* EmitLoadDexCacheStringFieldAddr(uint32_t string_idx);
740 EmitLoadDexCacheStringFieldAddr(uint32_t string_idx) { in EmitLoadDexCacheStringFieldAddr() argument
744 llvm::Value* string_idx_value = irb_.getPtrEquivInt(string_idx); in EmitLoadDexCacheStringFieldAddr()
1006 uint32_t string_idx = in Expand_LoadStringFromDexCache() local
1009 llvm::Value* string_field_addr = EmitLoadDexCacheStringFieldAddr(string_idx); in Expand_LoadStringFromDexCache()
2054 uint32_t string_idx = LV2UInt(call_inst.getArgOperand(0)); in Expand_ConstString() local
2056 llvm::Value* string_field_addr = EmitLoadDexCacheStringFieldAddr(string_idx); in Expand_ConstString()
2061 string_idx)) { in Expand_ConstString()
2087 llvm::Value* string_idx_value = irb_.getInt32(string_idx); in Expand_ConstString()
Dintrinsic_func_list.def162 // JavaObject* art_portable_const_string(uint32_t string_idx)
169 // JavaObject* art_portable_load_string_from_dex_cache(Method* method, uint32_t string_idx)
176 // JavaObject* art_portable_resolve_string(Method* method, uint32_t string_idx)
/art/compiler/
Dimage_writer.cc622 uint32_t string_idx = dex_file.GetIndexForStringId(*string_id); in ComputeEagerResolvedStringsCallback() local
623 if (dex_cache->GetResolvedString(string_idx) == NULL) { in ComputeEagerResolvedStringsCallback()
624 dex_cache->SetResolvedString(string_idx, string); in ComputeEagerResolvedStringsCallback()
/art/runtime/arch/arm/
Dquick_entrypoints_arm.S869 @ artResolveStringFromCode(Method* referrer, uint32_t string_idx, Thread*, SP)