summaryrefslogtreecommitdiffstats
path: root/compiler/optimizing/builder.h
diff options
context:
space:
mode:
authorNicolas Geoffray <ngeoffray@google.com>2015-03-25 10:08:51 +0000
committerNicolas Geoffray <ngeoffray@google.com>2015-03-25 17:13:54 +0000
commit9437b78780f9e6ffa5797ebe82de8e8d7f3a5ed6 (patch)
treed99027ae9295f162865c01f9a8795ac8cda09b84 /compiler/optimizing/builder.h
parent11e99b19f48576f1bb6d0993635b34b6e09c9832 (diff)
downloadart-9437b78780f9e6ffa5797ebe82de8e8d7f3a5ed6.tar.gz
art-9437b78780f9e6ffa5797ebe82de8e8d7f3a5ed6.tar.bz2
art-9437b78780f9e6ffa5797ebe82de8e8d7f3a5ed6.zip
Revert "Revert "Inline across dex files.""
This reverts commit 6a816cf624ba56bf2872916d7b65b18fd9a411ef. Change-Id: I36cb524108786dd7996f2aea0443675be1f1b859
Diffstat (limited to 'compiler/optimizing/builder.h')
-rw-r--r--compiler/optimizing/builder.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/compiler/optimizing/builder.h b/compiler/optimizing/builder.h
index c70170bb4..b206660fd 100644
--- a/compiler/optimizing/builder.h
+++ b/compiler/optimizing/builder.h
@@ -225,13 +225,10 @@ class HGraphBuilder : public ValueObject {
void MaybeRecordStat(MethodCompilationStat compilation_stat);
+ mirror::Class* GetOutermostCompilingClass() const;
+
// Returns whether `type_index` points to the outer-most compiling method's class.
- bool IsCompilingClass(uint16_t type_index) const {
- uint32_t referrer_index = outer_compilation_unit_->GetDexMethodIndex();
- const DexFile::MethodId& method_id =
- outer_compilation_unit_->GetDexFile()->GetMethodId(referrer_index);
- return method_id.class_idx_ == type_index;
- }
+ bool IsOutermostCompilingClass(uint16_t type_index) const;
ArenaAllocator* const arena_;