From bbcc0c0a17262f3d2a70fc0a82e1783862f708cc Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Mon, 3 Feb 2014 14:08:42 +0000 Subject: Speed up method lookup in a different dex file. Use already known name and proto. Change-Id: I4505b81724bd6a0f3cf21ee6fed44774d38c4e15 --- compiler/driver/compiler_driver.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/driver/compiler_driver.cc') diff --git a/compiler/driver/compiler_driver.cc b/compiler/driver/compiler_driver.cc index 402d4f4b18..61e9fbb151 100644 --- a/compiler/driver/compiler_driver.cc +++ b/compiler/driver/compiler_driver.cc @@ -1200,7 +1200,7 @@ void CompilerDriver::GetCodeAndMethodForDirectCall(InvokeType* type, InvokeType if (no_guarantee_of_dex_cache_entry) { // See if the method is also declared in this dex cache. uint32_t dex_method_idx = MethodHelper(method).FindDexMethodIndexInOtherDexFile( - *target_method->dex_file); + *target_method->dex_file, target_method->dex_method_index); if (dex_method_idx != DexFile::kDexNoIndex) { target_method->dex_method_index = dex_method_idx; } else { -- cgit v1.2.3-59-g8ed1b