From 9e06c8cd4a2e1471754470e09aaab63c0795b4af Mon Sep 17 00:00:00 2001 From: Zheng Xu Date: Tue, 6 May 2014 18:06:07 +0100 Subject: AArch64: Add fake arm64 backend, and disable it by method filter. Just create an ArmCodeGenerator for arm64, but currently no code will be generated for arm64. The method filter can: 1. Skip methods with unsupported prototype. 2. Skip methods with unsupported dalvik byte code. 3. Skip methods with invocation to unsupported prototype. These are temporary codes and should be removed later. But with this patch, it won't break anything when we merge partly implemented arm64 backend later. Change-Id: Ib9180d7b8a978f0a5ebaf6b4893e7e3724897113 --- compiler/compilers.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'compiler/compilers.cc') diff --git a/compiler/compilers.cc b/compiler/compilers.cc index 188ce6ff62..6bf0058196 100644 --- a/compiler/compilers.cc +++ b/compiler/compilers.cc @@ -101,6 +101,10 @@ Backend* QuickCompiler::GetCodeGenerator(CompilationUnit* cu, void* compilation_ case kThumb2: mir_to_lir = ArmCodeGenerator(cu, cu->mir_graph.get(), &cu->arena); break; + case kArm64: + // TODO(Arm64): replace the generator below with a proper one. + mir_to_lir = ArmCodeGenerator(cu, cu->mir_graph.get(), &cu->arena); + break; case kMips: mir_to_lir = MipsCodeGenerator(cu, cu->mir_graph.get(), &cu->arena); break; -- cgit v1.2.3-59-g8ed1b