diff options
| author | 2016-11-17 21:31:00 +0000 | |
|---|---|---|
| committer | 2016-11-17 21:31:01 +0000 | |
| commit | 137b07593aedfad193a77f3787ecf5197008c5da (patch) | |
| tree | 51e872c3c3d3072ba0032e35fe155c01baba10db /compiler/driver/compiler_driver.cc | |
| parent | de19542bdd8fb252d316c5064c8fc224c2fe52aa (diff) | |
| parent | 54b5855192abee8cb612fce3c34b7562ddf42522 (diff) | |
Merge "Change offline profile to store type_idx of classes."
Diffstat (limited to 'compiler/driver/compiler_driver.cc')
| -rw-r--r-- | compiler/driver/compiler_driver.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/compiler/driver/compiler_driver.cc b/compiler/driver/compiler_driver.cc index 8005cdf870..aa0d10b8d4 100644 --- a/compiler/driver/compiler_driver.cc +++ b/compiler/driver/compiler_driver.cc @@ -968,11 +968,12 @@ bool CompilerDriver::ShouldVerifyClassBasedOnProfile(const DexFile& dex_file, return true; } DCHECK(profile_compilation_info_ != nullptr); - bool result = profile_compilation_info_->ContainsClass(dex_file, class_idx); + const DexFile::ClassDef& class_def = dex_file.GetClassDef(class_idx); + uint16_t type_idx = class_def.class_idx_; + bool result = profile_compilation_info_->ContainsClass(dex_file, type_idx); if (kDebugProfileGuidedCompilation) { - LOG(INFO) << "[ProfileGuidedCompilation] " - << (result ? "Verified" : "Skipped") << " method:" - << dex_file.GetClassDescriptor(dex_file.GetClassDef(class_idx)); + LOG(INFO) << "[ProfileGuidedCompilation] " << (result ? "Verified" : "Skipped") << " method:" + << dex_file.GetClassDescriptor(class_def); } return result; } |