From 83426160568b62b22a1f1559cace78b5152c7749 Mon Sep 17 00:00:00 2001 From: Logan Chien Date: Fri, 9 Dec 2011 09:29:50 +0800 Subject: Cleanup "Beginning of LLVM backend for ART." Change-Id: I290e4d46b880256b6bf2eae7b3c828ee8d7595f2 --- src/compiler_llvm/method_compiler.cc | 38 +++++++++++++++++++++--------------- 1 file changed, 22 insertions(+), 16 deletions(-) (limited to 'src/compiler_llvm/method_compiler.cc') diff --git a/src/compiler_llvm/method_compiler.cc b/src/compiler_llvm/method_compiler.cc index 4aec8b15c7..cf0ea3ec4b 100644 --- a/src/compiler_llvm/method_compiler.cc +++ b/src/compiler_llvm/method_compiler.cc @@ -28,16 +28,17 @@ #include #include -using namespace art::compiler_llvm; +namespace art { +namespace compiler_llvm { -MethodCompiler::MethodCompiler(art::InstructionSet insn_set, - art::Compiler const* compiler, - art::ClassLinker* class_linker, - art::ClassLoader const* class_loader, - art::DexFile const* dex_file, - art::DexCache* dex_cache, - art::DexFile::CodeItem const* code_item, +MethodCompiler::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) : insn_set_(insn_set), @@ -57,21 +58,26 @@ MethodCompiler::~MethodCompiler() { void MethodCompiler::EmitPrologue() { - // TODO: Not implemented! + // UNIMPLEMENTED(WARNING); } -void MethodCompiler::EmitEpilogue() { +void MethodCompiler::EmitInstructions() { + // UNIMPLEMENTED(WARNING); } -void MethodCompiler::EmitInstruction(uint32_t addr, - art::Instruction const* insn) { - // TODO: Not implemented! +void MethodCompiler::EmitInstruction(uint32_t dex_pc, + Instruction const* insn) { + // UNIMPLEMENTED(WARNING); } -art::CompiledMethod *MethodCompiler::Compile() { - // TODO: Not implemented! - return new art::CompiledMethod(insn_set_, NULL); +CompiledMethod *MethodCompiler::Compile() { + // UNIMPLEMENTED(WARNING); + return new CompiledMethod(insn_set_, NULL); } + + +} // namespace compiler_llvm +} // namespace art -- cgit v1.2.3-59-g8ed1b