summaryrefslogtreecommitdiffstats
path: root/compiler/driver/compiler_driver.h
diff options
context:
space:
mode:
authorVladimir Marko <vmarko@google.com>2014-01-27 11:15:17 +0000
committerVladimir Marko <vmarko@google.com>2014-01-28 11:22:42 +0000
commit2730db03beee4d6687ddfb5000c33c0370fbc6eb (patch)
treea85706c800c67deda5c7b612c8010059aa7b365c /compiler/driver/compiler_driver.h
parentc7f832061fea59fd6abd125f26c8ca1faec695a5 (diff)
downloadart-2730db03beee4d6687ddfb5000c33c0370fbc6eb.zip
art-2730db03beee4d6687ddfb5000c33c0370fbc6eb.tar.gz
art-2730db03beee4d6687ddfb5000c33c0370fbc6eb.tar.bz2
Add VerfiedMethod to DexCompilationUnit.
Avoid some mutex locking and map lookups. Change-Id: I8e0486af77e38dcd065569572a6b985eb57f4f63
Diffstat (limited to 'compiler/driver/compiler_driver.h')
-rw-r--r--compiler/driver/compiler_driver.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/driver/compiler_driver.h b/compiler/driver/compiler_driver.h
index f8aa868..a8110e7 100644
--- a/compiler/driver/compiler_driver.h
+++ b/compiler/driver/compiler_driver.h
@@ -45,6 +45,7 @@ class DexFileToMethodInlinerMap;
class OatWriter;
class TimingLogger;
class VerificationResults;
+class VerifiedMethod;
enum CompilerBackend {
kQuick,
@@ -213,7 +214,8 @@ class CompilerDriver {
uintptr_t* direct_code, uintptr_t* direct_method)
LOCKS_EXCLUDED(Locks::mutator_lock_);
- bool IsSafeCast(const MethodReference& mr, uint32_t dex_pc);
+ const VerifiedMethod* GetVerifiedMethod(const DexFile* dex_file, uint32_t method_idx) const;
+ bool IsSafeCast(const DexCompilationUnit* mUnit, uint32_t dex_pc);
// Record patch information for later fix up.
void AddCodePatch(const DexFile* dex_file,