OSDN Git Service

Pass the verified method to the inlinee DexCompilationUnit.
authorNicolas Geoffray <ngeoffray@google.com>
Fri, 7 Aug 2015 04:10:30 +0000 (21:10 -0700)
committerNicolas Geoffray <ngeoffray@google.com>
Fri, 7 Aug 2015 04:13:54 +0000 (21:13 -0700)
Sharpening and other optimizations in compiler driver rely
on having it there.

Also fixes a warning for the intrinsics code.

bug:22866717
Change-Id: I6ac4f55e9e77452a4ea9e0d0dd0ad70124a95a55

compiler/optimizing/inliner.cc

index 0106595..4c74679 100644 (file)
@@ -276,12 +276,12 @@ bool HInliner::TryBuildAndInline(ArtMethod* resolved_method,
     nullptr,
     caller_compilation_unit_.GetClassLoader(),
     class_linker,
-    *resolved_method->GetDexFile(),
+    callee_dex_file,
     code_item,
     resolved_method->GetDeclaringClass()->GetDexClassDefIndex(),
-    resolved_method->GetDexMethodIndex(),
+    method_index,
     resolved_method->GetAccessFlags(),
-    nullptr);
+    compiler_driver_->GetVerifiedMethod(&callee_dex_file, method_index));
 
   bool requires_ctor_barrier = false;