diff options
| author | 2012-03-05 15:35:46 -0800 | |
|---|---|---|
| committer | 2012-03-05 15:35:46 -0800 | |
| commit | a7678db092ac6bb79f7cad490099a1015fbbc714 (patch) | |
| tree | 95181107e5ef16068298cbec717b605f54748ca4 /src/compiler/codegen/MethodCodegenDriver.cc | |
| parent | e88dfbf138bc204b1ce21911f1c34098ea74af7c (diff) | |
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
Diffstat (limited to 'src/compiler/codegen/MethodCodegenDriver.cc')
| -rw-r--r-- | src/compiler/codegen/MethodCodegenDriver.cc | 8 |
1 files changed, 8 insertions, 0 deletions
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: |