• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2009 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #include "../CompilerIR.h"
18 
19 #ifndef _DALVIK_VM_COMPILERCODEGEN_H_
20 #define _DALVIK_VM_COMPILERCODEGEN_H_
21 
22 /* Work unit is architecture dependent */
23 bool dvmCompilerDoWork(CompilerWorkOrder *work);
24 
25 /* Lower middle-level IR to low-level IR */
26 void dvmCompilerMIR2LIR(CompilationUnit *cUnit);
27 
28 /* Assemble LIR into machine code */
29 void dvmCompilerAssembleLIR(CompilationUnit *cUnit, JitTranslationInfo *info);
30 
31 /* Implemented in the codegen/<target>/ArchUtility.c */
32 void dvmCompilerCodegenDump(CompilationUnit *cUnit);
33 
34 /* Implemented in the codegen/<target>/Assembler.c */
35 void* dvmJitChain(void *tgtAddr, u4* branchAddr);
36 u4* dvmJitUnchain(void *codeAddr);
37 void dvmJitUnchainAll(void);
38 
39 /* Implemented in codegen/<target>/<target_variant>/ArchVariant.c */
40 JitInstructionSetType dvmCompilerInstructionSet(CompilationUnit *cUnit);
41 
42 #endif /* _DALVIK_VM_COMPILERCODEGEN_H_ */
43