summaryrefslogtreecommitdiffstats
path: root/compiler/optimizing/builder.h
diff options
context:
space:
mode:
authorNicolas Geoffray <ngeoffray@google.com>2015-06-19 13:32:41 +0100
committerNicolas Geoffray <ngeoffray@google.com>2015-06-22 14:12:19 +0100
commit7d59309458c69e1b2b2e85be5acc150979198f6f (patch)
tree4d5d30e6ee792ec05d31c60bc26b5f10cc5745b1 /compiler/optimizing/builder.h
parent1e256bf257e8d97df9b2178ae8658b731ca2d662 (diff)
downloadandroid_art-7d59309458c69e1b2b2e85be5acc150979198f6f.tar.gz
android_art-7d59309458c69e1b2b2e85be5acc150979198f6f.tar.bz2
android_art-7d59309458c69e1b2b2e85be5acc150979198f6f.zip
Use compiling class instead of referrer for access checks.
bug:21869670 (cherry picked from commit 30451743493bc2f589e96d68ab98f557461f97f9) Change-Id: Ia18986797d166470801e7a9a690c054d2dc57952
Diffstat (limited to 'compiler/optimizing/builder.h')
-rw-r--r--compiler/optimizing/builder.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/optimizing/builder.h b/compiler/optimizing/builder.h
index 36503ce43a..b1ee824845 100644
--- a/compiler/optimizing/builder.h
+++ b/compiler/optimizing/builder.h
@@ -222,8 +222,12 @@ class HGraphBuilder : public ValueObject {
void MaybeRecordStat(MethodCompilationStat compilation_stat);
+ // Returns the outer-most compiling method's class.
mirror::Class* GetOutermostCompilingClass() const;
+ // Returns the class whose method is being compiled.
+ mirror::Class* GetCompilingClass() const;
+
// Returns whether `type_index` points to the outer-most compiling method's class.
bool IsOutermostCompilingClass(uint16_t type_index) const;