diff options
| author | 2014-02-21 10:00:59 +0000 | |
|---|---|---|
| committer | 2014-02-21 10:00:59 +0000 | |
| commit | 4dc23380cd99967d65c4f3b3f540cb0c78e9f546 (patch) | |
| tree | fd09c808996284a136c90f9178a1aa032fa17ba2 /compiler/driver/compiler_driver.cc | |
| parent | 58dabb5456eb4550fbd82012d9bc551920f1313c (diff) | |
| parent | 7f6cf56942c8469958b273ea968db253051c5b05 (diff) | |
Merge "Annotate used fields."
Diffstat (limited to 'compiler/driver/compiler_driver.cc')
| -rw-r--r-- | compiler/driver/compiler_driver.cc | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/compiler/driver/compiler_driver.cc b/compiler/driver/compiler_driver.cc index 5adb792497..c7bf952c53 100644 --- a/compiler/driver/compiler_driver.cc +++ b/compiler/driver/compiler_driver.cc @@ -881,6 +881,24 @@ bool CompilerDriver::CanEmbedTypeInCode(const DexFile& dex_file, uint32_t type_i } } +void CompilerDriver::ProcessedInstanceField(bool resolved) { + if (!resolved) { + stats_->UnresolvedInstanceField(); + } else { + stats_->ResolvedInstanceField(); + } +} + +void CompilerDriver::ProcessedStaticField(bool resolved, bool local) { + if (!resolved) { + stats_->UnresolvedStaticField(); + } else if (local) { + stats_->ResolvedLocalStaticField(); + } else { + stats_->ResolvedStaticField(); + } +} + static mirror::Class* ComputeCompilingMethodsClass(ScopedObjectAccess& soa, SirtRef<mirror::DexCache>& dex_cache, const DexCompilationUnit* mUnit) |