summaryrefslogtreecommitdiff
path: root/runtime/class_linker.h
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2016-03-30 14:01:24 +0000
committer android-build-merger <android-build-merger@google.com> 2016-03-30 14:01:24 +0000
commit0b92b73c62ab4cc13ca040d4233fa69d182971cc (patch)
treedf7d6180b13430de8f255884b12f29f191d1468e /runtime/class_linker.h
parent01098af7a530ca65dcf5a40b3799c5147e49bd64 (diff)
parent085055f933d76579c32586488951a4497ffcf10e (diff)
Merge "Optimizing: Improve const-string code generation."
am: 085055f * commit '085055f933d76579c32586488951a4497ffcf10e': Optimizing: Improve const-string code generation. Change-Id: Idd5a215e18abba1e2161f1848cb08aefb4719cf0
Diffstat (limited to 'runtime/class_linker.h')
-rw-r--r--runtime/class_linker.h6
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.