From 30451743493bc2f589e96d68ab98f557461f97f9 Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Fri, 19 Jun 2015 13:32:41 +0100 Subject: Use compiling class instead of referrer for access checks. bug:21869670 Change-Id: Ief329247e90202835e27fa38803e02dd2e2ae8ca --- compiler/optimizing/builder.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'compiler/optimizing/builder.h') 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; -- cgit v1.2.3-59-g8ed1b