summaryrefslogtreecommitdiff
path: root/src/compiler_llvm/method_compiler.h
diff options
context:
space:
mode:
author Logan Chien <loganchien@google.com> 2012-02-29 01:26:58 +0800
committer Shih-wei Liao <sliao@google.com> 2012-02-29 11:53:18 -0800
commit4dd96f56909ec35c83a3d468b0e47769988c1a1d (patch)
tree99fde7aab07e550864860825b7732a37fce81d81 /src/compiler_llvm/method_compiler.h
parent45619fcc01fb6db1ac9481a91608eb46f90829e4 (diff)
Extract method-related information from CompilationUnit.
Extract method-related information, such as class_loader, class_linker, dex_file, dex_cache, code_item, method_idx, and access_flags from art::CompilationUnit, so that we can use them in 2 different code generators. Change-Id: I20631cc73b6f01e9646a983156f3fcb066d732db
Diffstat (limited to 'src/compiler_llvm/method_compiler.h')
-rw-r--r--src/compiler_llvm/method_compiler.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/compiler_llvm/method_compiler.h b/src/compiler_llvm/method_compiler.h
index dd10bc8d42..de60fa32dd 100644
--- a/src/compiler_llvm/method_compiler.h
+++ b/src/compiler_llvm/method_compiler.h
@@ -38,6 +38,7 @@ namespace art {
class Compiler;
class DexCache;
class Field;
+ class OatCompilationUnit;
}
@@ -71,6 +72,7 @@ class MethodCompiler {
DexCache* dex_cache_;
DexFile::CodeItem const* code_item_;
+ OatCompilationUnit* oat_compilation_unit_;
Method* method_;
MethodHelper method_helper_;
@@ -101,13 +103,7 @@ class MethodCompiler {
public:
MethodCompiler(InstructionSet insn_set,
Compiler* compiler,
- ClassLinker* class_linker,
- ClassLoader const* class_loader,
- DexFile const* dex_file,
- DexCache* dex_cache,
- DexFile::CodeItem const* code_item,
- uint32_t method_idx,
- uint32_t access_flags);
+ OatCompilationUnit* oat_compilation_unit);
~MethodCompiler();