From a7678db092ac6bb79f7cad490099a1015fbbc714 Mon Sep 17 00:00:00 2001 From: buzbee Date: Mon, 5 Mar 2012 15:35:46 -0800 Subject: x86 source code hack and slash Made a pass over the compiler source to get it into a compileable state for the x86 target. Lots of temporary #ifdefs, but it compiles and makes it to oatArchInit(). Change-Id: Ib8bcd2a032e47dcb83430dbc479a29758e084359 --- src/compiler/codegen/MethodCodegenDriver.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/compiler/codegen/MethodCodegenDriver.cc') diff --git a/src/compiler/codegen/MethodCodegenDriver.cc b/src/compiler/codegen/MethodCodegenDriver.cc index 42dae0f113..f25c7e5a22 100644 --- a/src/compiler/codegen/MethodCodegenDriver.cc +++ b/src/compiler/codegen/MethodCodegenDriver.cc @@ -43,6 +43,9 @@ RegLocation getRetLoc(CompilationUnit* cUnit) void genInvoke(CompilationUnit* cUnit, MIR* mir, InvokeType type, bool isRange) { +#if defined(TARGET_X86) + UNIMPLEMENTED(WARNING) << "genInvoke"; +#else DecodedInstruction* dInsn = &mir->dalvikInsn; int callState = 0; LIR* nullCk; @@ -104,6 +107,7 @@ void genInvoke(CompilationUnit* cUnit, MIR* mir, InvokeType type, bool isRange) } opReg(cUnit, kOpBlx, rINVOKE_TGT); oatClobberCalleeSave(cUnit); +#endif } /* @@ -158,6 +162,9 @@ bool compileDalvikInstruction(CompilationUnit* cUnit, MIR* mir, break; case OP_MOVE_EXCEPTION: +#if defined(TARGET_X86) + UNIMPLEMENTED(WARNING) << "OP_MOVE_EXCEPTION"; +#else int exOffset; int resetReg; exOffset = Thread::ExceptionOffset().Int32Value(); @@ -167,6 +174,7 @@ bool compileDalvikInstruction(CompilationUnit* cUnit, MIR* mir, loadConstant(cUnit, resetReg, 0); storeWordDisp(cUnit, rSELF, exOffset, resetReg); storeValue(cUnit, rlDest, rlResult); +#endif break; case OP_RETURN_VOID: -- cgit v1.2.3-59-g8ed1b