From 4dd96f56909ec35c83a3d468b0e47769988c1a1d Mon Sep 17 00:00:00 2001 From: Logan Chien Date: Wed, 29 Feb 2012 01:26:58 +0800 Subject: 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 --- src/compiler_llvm/method_compiler.h | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/compiler_llvm/method_compiler.h') 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(); -- cgit v1.2.3-59-g8ed1b