diff options
author | 2013-03-04 10:48:41 -0800 | |
---|---|---|
committer | 2013-03-04 11:54:04 -0800 | |
commit | 1212a022fa5f8ef9585d765b1809521812af882c (patch) | |
tree | 67ebdc1d3274c78978b3d06630874d7641d858d1 /src/compiler/dex/frontend.cc | |
parent | 8e6960569e9de6350d7da89aa02efe0e4b924d6f (diff) |
Move the Compiler to CompilerDriver.
Change-Id: I0bb4d3c2b79b45fd8ef180688c767712b0c55978
Diffstat (limited to 'src/compiler/dex/frontend.cc')
-rw-r--r-- | src/compiler/dex/frontend.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/compiler/dex/frontend.cc b/src/compiler/dex/frontend.cc index 4619052f4b..510e08ac79 100644 --- a/src/compiler/dex/frontend.cc +++ b/src/compiler/dex/frontend.cc @@ -14,7 +14,7 @@ * limitations under the License. */ -#include "compiler.h" +#include "compiler/driver/compiler_driver.h" #include "compiler_internals.h" #include "dataflow.h" #include "ssa_transformation.h" @@ -57,13 +57,13 @@ LLVMInfo::LLVMInfo() { LLVMInfo::~LLVMInfo() { } -extern "C" void ArtInitQuickCompilerContext(art::Compiler& compiler) { +extern "C" void ArtInitQuickCompilerContext(art::CompilerDriver& compiler) { CHECK(compiler.GetCompilerContext() == NULL); LLVMInfo* llvm_info = new LLVMInfo(); compiler.SetCompilerContext(llvm_info); } -extern "C" void ArtUnInitQuickCompilerContext(art::Compiler& compiler) { +extern "C" void ArtUnInitQuickCompilerContext(art::CompilerDriver& compiler) { delete reinterpret_cast<LLVMInfo*>(compiler.GetCompilerContext()); compiler.SetCompilerContext(NULL); } @@ -755,7 +755,7 @@ static BasicBlock* ProcessCanThrow(CompilationUnit* cu, BasicBlock* cur_block, return new_block; } -void CompilerInit(CompilationUnit* cu, const Compiler& compiler) { +void CompilerInit(CompilationUnit* cu, const CompilerDriver& compiler) { bool success = false; switch (compiler.GetInstructionSet()) { case kThumb2: @@ -777,7 +777,7 @@ void CompilerInit(CompilationUnit* cu, const Compiler& compiler) { } } -static CompiledMethod* CompileMethod(Compiler& compiler, +static CompiledMethod* CompileMethod(CompilerDriver& compiler, const CompilerBackend compiler_backend, const DexFile::CodeItem* code_item, uint32_t access_flags, InvokeType invoke_type, @@ -797,7 +797,7 @@ static CompiledMethod* CompileMethod(Compiler& compiler, CompilerInit(cu.get(), compiler); - cu->compiler = &compiler; + cu->compiler_driver = &compiler; cu->class_linker = class_linker; cu->dex_file = &dex_file; cu->class_def_idx = class_def_idx; @@ -1228,7 +1228,7 @@ static CompiledMethod* CompileMethod(Compiler& compiler, return result; } -CompiledMethod* CompileOneMethod(Compiler& compiler, +CompiledMethod* CompileOneMethod(CompilerDriver& compiler, const CompilerBackend backend, const DexFile::CodeItem* code_item, uint32_t access_flags, InvokeType invoke_type, @@ -1243,7 +1243,7 @@ CompiledMethod* CompileOneMethod(Compiler& compiler, } // namespace art extern "C" art::CompiledMethod* - ArtQuickCompileMethod(art::Compiler& compiler, + ArtQuickCompileMethod(art::CompilerDriver& compiler, const art::DexFile::CodeItem* code_item, uint32_t access_flags, art::InvokeType invoke_type, uint32_t class_def_idx, uint32_t method_idx, jobject class_loader, |