diff options
| author | 2016-03-30 13:47:59 +0000 | |
|---|---|---|
| committer | 2016-03-30 13:48:00 +0000 | |
| commit | 085055f933d76579c32586488951a4497ffcf10e (patch) | |
| tree | df7d6180b13430de8f255884b12f29f191d1468e /runtime/class_linker.h | |
| parent | a1eff4f279253bbc90d2697d7c15390bcab65d1e (diff) | |
| parent | cac5a7e871f1f346b317894359ad06fa7bd67fba (diff) | |
Merge "Optimizing: Improve const-string code generation."
Diffstat (limited to 'runtime/class_linker.h')
| -rw-r--r-- | runtime/class_linker.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/class_linker.h b/runtime/class_linker.h index 886f586704..b4b7f34967 100644 --- a/runtime/class_linker.h +++ b/runtime/class_linker.h @@ -247,6 +247,12 @@ class ClassLinker { Handle<mirror::DexCache> dex_cache) SHARED_REQUIRES(Locks::mutator_lock_); + // Find a String with the given index from the DexFile, storing the + // result in the DexCache if found. Return null if not found. + mirror::String* LookupString(const DexFile& dex_file, uint32_t string_idx, + Handle<mirror::DexCache> dex_cache) + SHARED_REQUIRES(Locks::mutator_lock_); + // Resolve a Type with the given index from the DexFile, storing the // result in the DexCache. The referrer is used to identity the // target DexCache and ClassLoader to use for resolution. |