diff options
author | Vladimir Marko <vmarko@google.com> | 2014-03-13 10:33:35 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2014-03-13 10:33:36 +0000 |
commit | b9d50a9829b795932eac4cc50a99b4ce80b0ecb4 (patch) | |
tree | dc8d2af41f15d7701a19ae1b950a6c35fd0ad70f /compiler/driver/compiler_driver.cc | |
parent | c1db36ce74d74deb068bf0a9bb683af17baa8b9d (diff) | |
parent | e3e0260c23d8999b9433715ac7ee5296ee2fd633 (diff) | |
download | art-b9d50a9829b795932eac4cc50a99b4ce80b0ecb4.zip art-b9d50a9829b795932eac4cc50a99b4ce80b0ecb4.tar.gz art-b9d50a9829b795932eac4cc50a99b4ce80b0ecb4.tar.bz2 |
Merge "Move inline method detection to runtime."
Diffstat (limited to 'compiler/driver/compiler_driver.cc')
-rw-r--r-- | compiler/driver/compiler_driver.cc | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/compiler/driver/compiler_driver.cc b/compiler/driver/compiler_driver.cc index c9846cb..5ee31f7 100644 --- a/compiler/driver/compiler_driver.cc +++ b/compiler/driver/compiler_driver.cc @@ -961,29 +961,6 @@ void CompilerDriver::ProcessedInvoke(InvokeType invoke_type, int flags) { stats_->ProcessedInvoke(invoke_type, flags); } -bool CompilerDriver::ComputeSpecialAccessorInfo(uint32_t field_idx, bool is_put, - verifier::MethodVerifier* verifier, - InlineIGetIPutData* result) { - mirror::DexCache* dex_cache = verifier->GetDexCache(); - uint32_t method_idx = verifier->GetMethodReference().dex_method_index; - mirror::ArtMethod* method = dex_cache->GetResolvedMethod(method_idx); - mirror::ArtField* field = dex_cache->GetResolvedField(field_idx); - if (method == nullptr || field == nullptr || field->IsStatic()) { - return false; - } - mirror::Class* method_class = method->GetDeclaringClass(); - mirror::Class* field_class = field->GetDeclaringClass(); - if (!method_class->CanAccessResolvedField(field_class, field, dex_cache, field_idx) || - (is_put && field->IsFinal() && method_class != field_class)) { - return false; - } - DCHECK_GE(field->GetOffset().Int32Value(), 0); - result->field_idx = field_idx; - result->field_offset = field->GetOffset().Int32Value(); - result->is_volatile = field->IsVolatile(); - return true; -} - bool CompilerDriver::ComputeInstanceFieldInfo(uint32_t field_idx, const DexCompilationUnit* mUnit, bool is_put, MemberOffset* field_offset, bool* is_volatile) { |