From 5d5b94c8d14b166af580d5dd5906db4f9527d6ca Mon Sep 17 00:00:00 2001 From: Carl Shapiro Date: Tue, 19 Apr 2011 17:34:24 -0700 Subject: Move the compiler into C++. Change-Id: Idffbdb02c29e2be03a75f5a0a664603f2299504a --- vm/compiler/codegen/CompilerCodegen.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'vm/compiler/codegen/CompilerCodegen.h') diff --git a/vm/compiler/codegen/CompilerCodegen.h b/vm/compiler/codegen/CompilerCodegen.h index efa913f90..8223d2a9f 100644 --- a/vm/compiler/codegen/CompilerCodegen.h +++ b/vm/compiler/codegen/CompilerCodegen.h @@ -19,6 +19,10 @@ #include "compiler/CompilerIR.h" +#ifdef __cplusplus +extern "C" { +#endif + /* Maximal number of switch cases to have inline chains */ #define MAX_CHAINED_SWITCH_CASES 64 @@ -34,6 +38,9 @@ void dvmCompilerMethodMIR2LIR(CompilationUnit *cUnit); /* Assemble LIR into machine code */ void dvmCompilerAssembleLIR(CompilationUnit *cUnit, JitTranslationInfo *info); +/* Perform translation chain operation. */ +void* dvmJitChain(void* tgtAddr, u4* branchAddr); + /* Install class objects in the literal pool */ void dvmJitInstallClassObjectPointers(CompilationUnit *cUnit, char *codeAddress); @@ -68,4 +75,8 @@ int dvmCompilerTargetOptHint(int key); /* Implemented in codegen///ArchVariant.c */ void dvmCompilerGenMemBarrier(CompilationUnit *cUnit, int barrierKind); +#ifdef __cplusplus +} +#endif + #endif /* _DALVIK_VM_COMPILERCODEGEN_H_ */ -- cgit v1.2.3