From a49bdffd3826ea45b5d8f435b2add160871351bb Mon Sep 17 00:00:00 2001 From: Ian Rogers Date: Wed, 31 Jul 2013 14:49:16 -0700 Subject: Don't add barriers to clinit methods. Change-Id: I13e6c008feb8c19e452d6e2f88b2bbbcac997de5 (cherry picked from commit 9fc16eb43fe938f0cddb13638bd7cbc2ea9534a2) --- compiler/driver/dex_compilation_unit.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'compiler/driver') diff --git a/compiler/driver/dex_compilation_unit.h b/compiler/driver/dex_compilation_unit.h index 5bf0086..465139b 100644 --- a/compiler/driver/dex_compilation_unit.h +++ b/compiler/driver/dex_compilation_unit.h @@ -80,6 +80,10 @@ class DexCompilationUnit { return access_flags_; } + bool IsConstructor() const { + return ((access_flags_ & kAccConstructor) != 0); + } + bool IsNative() const { return ((access_flags_ & kAccNative) != 0); } -- cgit v1.1