| Ben Cheng | ba4fc8b | 2009-06-01 13:00:29 -0700 | [diff] [blame] | 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 | #ifndef _DALVIK_VM_COMPILER_IR |
| 18 | #define _DALVIK_VM_COMPILER_IR |
| 19 | |
| Ben Cheng | 4238ec2 | 2009-08-24 16:32:22 -0700 | [diff] [blame] | 20 | #include "codegen/Optimizer.h" |
| 21 | |
| Bill Buzbee | 1465db5 | 2009-09-23 17:17:35 -0700 | [diff] [blame] | 22 | typedef enum RegisterClass { |
| 23 | kCoreReg, |
| 24 | kFPReg, |
| 25 | kAnyReg, |
| 26 | } RegisterClass; |
| 27 | |
| 28 | typedef enum RegLocationType { |
| 29 | kLocDalvikFrame = 0, |
| 30 | kLocPhysReg, |
| 31 | kLocRetval, // Return region in interpState |
| 32 | kLocSpill, |
| 33 | } RegLocationType; |
| 34 | |
| 35 | typedef struct RegLocation { |
| 36 | RegLocationType location:2; |
| 37 | unsigned wide:1; |
| 38 | unsigned fp:1; // Hint for float/double |
| 39 | u1 lowReg:6; // First physical register |
| 40 | u1 highReg:6; // 2nd physical register (if wide) |
| 41 | s2 sRegLow; // SSA name for low Dalvik word |
| 42 | } RegLocation; |
| 43 | |
| 44 | #define INVALID_SREG (-1) |
| Carl Shapiro | 5d5b94c | 2011-04-19 17:34:24 -0700 | [diff] [blame] | 45 | #define INVALID_REG (0x3F) |
| Bill Buzbee | 1465db5 | 2009-09-23 17:17:35 -0700 | [diff] [blame] | 46 | |
| Ben Cheng | ba4fc8b | 2009-06-01 13:00:29 -0700 | [diff] [blame] | 47 | typedef enum BBType { |
| 48 | /* For coding convenience reasons chaining cell types should appear first */ |
| Bill Buzbee | 1465db5 | 2009-09-23 17:17:35 -0700 | [diff] [blame] | 49 | kChainingCellNormal = 0, |
| 50 | kChainingCellHot, |
| 51 | kChainingCellInvokeSingleton, |
| 52 | kChainingCellInvokePredicted, |
| 53 | kChainingCellBackwardBranch, |
| Ben Cheng | cec26f6 | 2010-01-15 15:29:33 -0800 | [diff] [blame] | 54 | kChainingCellGap, |
| 55 | /* Don't insert new fields between Gap and Last */ |
| 56 | kChainingCellLast = kChainingCellGap + 1, |
| Ben Cheng | 32115a9 | 2011-03-22 14:09:09 -0700 | [diff] [blame] | 57 | kEntryBlock, |
| Bill Buzbee | 1465db5 | 2009-09-23 17:17:35 -0700 | [diff] [blame] | 58 | kDalvikByteCode, |
| Ben Cheng | 32115a9 | 2011-03-22 14:09:09 -0700 | [diff] [blame] | 59 | kExitBlock, |
| Bill Buzbee | 1465db5 | 2009-09-23 17:17:35 -0700 | [diff] [blame] | 60 | kPCReconstruction, |
| 61 | kExceptionHandling, |
| Ben Cheng | 0060307 | 2010-10-28 11:13:58 -0700 | [diff] [blame] | 62 | kCatchEntry, |
| Ben Cheng | ba4fc8b | 2009-06-01 13:00:29 -0700 | [diff] [blame] | 63 | } BBType; |
| 64 | |
| Ben Cheng | 46cd4fb | 2011-03-16 17:19:06 -0700 | [diff] [blame] | 65 | typedef enum JitMode { |
| 66 | kJitTrace = 0, // Acyclic - all instructions come from the trace descriptor |
| 67 | kJitLoop, // Cycle - trace descriptor is used as a hint |
| 68 | kJitMethod, // Whole method |
| 69 | } JitMode; |
| 70 | |
| Bill Buzbee | 46cd5b6 | 2009-06-05 15:36:06 -0700 | [diff] [blame] | 71 | typedef struct ChainCellCounts { |
| 72 | union { |
| Ben Cheng | cec26f6 | 2010-01-15 15:29:33 -0800 | [diff] [blame] | 73 | u1 count[kChainingCellLast]; /* include one more space for the gap # */ |
| Bill Buzbee | 46cd5b6 | 2009-06-05 15:36:06 -0700 | [diff] [blame] | 74 | u4 dummyForAlignment; |
| 75 | } u; |
| 76 | } ChainCellCounts; |
| 77 | |
| Ben Cheng | ba4fc8b | 2009-06-01 13:00:29 -0700 | [diff] [blame] | 78 | typedef struct LIR { |
| 79 | int offset; |
| 80 | struct LIR *next; |
| 81 | struct LIR *prev; |
| 82 | struct LIR *target; |
| 83 | } LIR; |
| 84 | |
| Ben Cheng | 4238ec2 | 2009-08-24 16:32:22 -0700 | [diff] [blame] | 85 | enum ExtendedMIROpcode { |
| Dan Bornstein | ccaab18 | 2010-12-03 15:32:40 -0800 | [diff] [blame] | 86 | kMirOpFirst = kNumPackedOpcodes, |
| Bill Buzbee | 1465db5 | 2009-09-23 17:17:35 -0700 | [diff] [blame] | 87 | kMirOpPhi = kMirOpFirst, |
| 88 | kMirOpNullNRangeUpCheck, |
| 89 | kMirOpNullNRangeDownCheck, |
| 90 | kMirOpLowerBound, |
| 91 | kMirOpPunt, |
| Ben Cheng | 7a2697d | 2010-06-07 13:44:23 -0700 | [diff] [blame] | 92 | kMirOpCheckInlinePrediction, // Gen checks for predicted inlining |
| Bill Buzbee | 1465db5 | 2009-09-23 17:17:35 -0700 | [diff] [blame] | 93 | kMirOpLast, |
| Ben Cheng | 4238ec2 | 2009-08-24 16:32:22 -0700 | [diff] [blame] | 94 | }; |
| 95 | |
| 96 | struct SSARepresentation; |
| 97 | |
| 98 | typedef enum { |
| 99 | kMIRIgnoreNullCheck = 0, |
| 100 | kMIRNullCheckOnly, |
| 101 | kMIRIgnoreRangeCheck, |
| 102 | kMIRRangeCheckOnly, |
| Ben Cheng | 7a2697d | 2010-06-07 13:44:23 -0700 | [diff] [blame] | 103 | kMIRInlined, // Invoke is inlined (ie dead) |
| 104 | kMIRInlinedPred, // Invoke is inlined via prediction |
| 105 | kMIRCallee, // Instruction is inlined from callee |
| Ben Cheng | cfdeca3 | 2011-01-14 11:36:46 -0800 | [diff] [blame] | 106 | kMIRInvokeMethodJIT, // Callee is JIT'ed as a whole method |
| Ben Cheng | 4238ec2 | 2009-08-24 16:32:22 -0700 | [diff] [blame] | 107 | } MIROptimizationFlagPositons; |
| 108 | |
| 109 | #define MIR_IGNORE_NULL_CHECK (1 << kMIRIgnoreNullCheck) |
| 110 | #define MIR_NULL_CHECK_ONLY (1 << kMIRNullCheckOnly) |
| 111 | #define MIR_IGNORE_RANGE_CHECK (1 << kMIRIgnoreRangeCheck) |
| 112 | #define MIR_RANGE_CHECK_ONLY (1 << kMIRRangeCheckOnly) |
| Ben Cheng | 7a2697d | 2010-06-07 13:44:23 -0700 | [diff] [blame] | 113 | #define MIR_INLINED (1 << kMIRInlined) |
| 114 | #define MIR_INLINED_PRED (1 << kMIRInlinedPred) |
| 115 | #define MIR_CALLEE (1 << kMIRCallee) |
| Ben Cheng | cfdeca3 | 2011-01-14 11:36:46 -0800 | [diff] [blame] | 116 | #define MIR_INVOKE_METHOD_JIT (1 << kMIRInvokeMethodJIT) |
| Ben Cheng | 7a2697d | 2010-06-07 13:44:23 -0700 | [diff] [blame] | 117 | |
| 118 | typedef struct CallsiteInfo { |
| Ben Cheng | 385828e | 2011-03-04 16:48:33 -0800 | [diff] [blame] | 119 | const char *classDescriptor; |
| 120 | Object *classLoader; |
| Ben Cheng | 7a2697d | 2010-06-07 13:44:23 -0700 | [diff] [blame] | 121 | const Method *method; |
| 122 | LIR *misPredBranchOver; |
| 123 | } CallsiteInfo; |
| Ben Cheng | 4238ec2 | 2009-08-24 16:32:22 -0700 | [diff] [blame] | 124 | |
| Ben Cheng | ba4fc8b | 2009-06-01 13:00:29 -0700 | [diff] [blame] | 125 | typedef struct MIR { |
| 126 | DecodedInstruction dalvikInsn; |
| 127 | unsigned int width; |
| 128 | unsigned int offset; |
| 129 | struct MIR *prev; |
| 130 | struct MIR *next; |
| Ben Cheng | 4238ec2 | 2009-08-24 16:32:22 -0700 | [diff] [blame] | 131 | struct SSARepresentation *ssaRep; |
| 132 | int OptimizationFlags; |
| Bill Buzbee | 1465db5 | 2009-09-23 17:17:35 -0700 | [diff] [blame] | 133 | int seqNum; |
| Ben Cheng | 7a2697d | 2010-06-07 13:44:23 -0700 | [diff] [blame] | 134 | union { |
| 135 | // Used by the inlined insn from the callee to find the mother method |
| 136 | const Method *calleeMethod; |
| 137 | // Used by the inlined invoke to find the class and method pointers |
| 138 | CallsiteInfo *callsiteInfo; |
| 139 | } meta; |
| Ben Cheng | ba4fc8b | 2009-06-01 13:00:29 -0700 | [diff] [blame] | 140 | } MIR; |
| 141 | |
| Ben Cheng | 4238ec2 | 2009-08-24 16:32:22 -0700 | [diff] [blame] | 142 | struct BasicBlockDataFlow; |
| 143 | |
| Ben Cheng | 0060307 | 2010-10-28 11:13:58 -0700 | [diff] [blame] | 144 | /* For successorBlockList */ |
| 145 | typedef enum BlockListType { |
| 146 | kNotUsed = 0, |
| 147 | kCatch, |
| 148 | kPackedSwitch, |
| 149 | kSparseSwitch, |
| 150 | } BlockListType; |
| 151 | |
| Ben Cheng | ba4fc8b | 2009-06-01 13:00:29 -0700 | [diff] [blame] | 152 | typedef struct BasicBlock { |
| 153 | int id; |
| Ben Cheng | 0060307 | 2010-10-28 11:13:58 -0700 | [diff] [blame] | 154 | bool visited; |
| Ben Cheng | 46cd4fb | 2011-03-16 17:19:06 -0700 | [diff] [blame] | 155 | bool hidden; |
| Ben Cheng | ba4fc8b | 2009-06-01 13:00:29 -0700 | [diff] [blame] | 156 | unsigned int startOffset; |
| 157 | const Method *containingMethod; // For blocks from the callee |
| 158 | BBType blockType; |
| Ben Cheng | 1efc9c5 | 2009-06-08 18:25:27 -0700 | [diff] [blame] | 159 | bool needFallThroughBranch; // For blocks ended due to length limit |
| Ben Cheng | 7a2697d | 2010-06-07 13:44:23 -0700 | [diff] [blame] | 160 | bool isFallThroughFromInvoke; // True means the block needs alignment |
| Ben Cheng | ba4fc8b | 2009-06-01 13:00:29 -0700 | [diff] [blame] | 161 | MIR *firstMIRInsn; |
| 162 | MIR *lastMIRInsn; |
| 163 | struct BasicBlock *fallThrough; |
| 164 | struct BasicBlock *taken; |
| Ben Cheng | 0060307 | 2010-10-28 11:13:58 -0700 | [diff] [blame] | 165 | struct BasicBlock *iDom; // Immediate dominator |
| Ben Cheng | 4238ec2 | 2009-08-24 16:32:22 -0700 | [diff] [blame] | 166 | struct BasicBlockDataFlow *dataFlowInfo; |
| Ben Cheng | 0060307 | 2010-10-28 11:13:58 -0700 | [diff] [blame] | 167 | BitVector *predecessors; |
| 168 | BitVector *dominators; |
| 169 | BitVector *iDominated; // Set nodes being immediately dominated |
| 170 | BitVector *domFrontier; // Dominance frontier |
| 171 | struct { // For one-to-many successors like |
| 172 | BlockListType blockListType; // switch and exception handling |
| 173 | GrowableList blocks; |
| 174 | } successorBlockList; |
| Ben Cheng | ba4fc8b | 2009-06-01 13:00:29 -0700 | [diff] [blame] | 175 | } BasicBlock; |
| 176 | |
| Ben Cheng | 7a02cb1 | 2010-12-15 14:18:31 -0800 | [diff] [blame] | 177 | /* |
| 178 | * The "blocks" field in "successorBlockList" points to an array of |
| 179 | * elements with the type "SuccessorBlockInfo". |
| 180 | * For catch blocks, key is type index for the exception. |
| 181 | * For swtich blocks, key is the case value. |
| 182 | */ |
| 183 | typedef struct SuccessorBlockInfo { |
| 184 | BasicBlock *block; |
| 185 | int key; |
| 186 | } SuccessorBlockInfo; |
| 187 | |
| Ben Cheng | 4238ec2 | 2009-08-24 16:32:22 -0700 | [diff] [blame] | 188 | struct LoopAnalysis; |
| Bill Buzbee | 1465db5 | 2009-09-23 17:17:35 -0700 | [diff] [blame] | 189 | struct RegisterPool; |
| Ben Cheng | 4238ec2 | 2009-08-24 16:32:22 -0700 | [diff] [blame] | 190 | |
| buzbee | bff121a | 2010-08-04 15:25:06 -0700 | [diff] [blame] | 191 | typedef enum AssemblerStatus { |
| 192 | kSuccess, |
| 193 | kRetryAll, |
| 194 | kRetryHalve |
| 195 | } AssemblerStatus; |
| 196 | |
| Ben Cheng | ba4fc8b | 2009-06-01 13:00:29 -0700 | [diff] [blame] | 197 | typedef struct CompilationUnit { |
| Ben Cheng | 1efc9c5 | 2009-06-08 18:25:27 -0700 | [diff] [blame] | 198 | int numInsts; |
| Ben Cheng | ba4fc8b | 2009-06-01 13:00:29 -0700 | [diff] [blame] | 199 | int numBlocks; |
| Ben Cheng | 0060307 | 2010-10-28 11:13:58 -0700 | [diff] [blame] | 200 | GrowableList blockList; |
| Ben Cheng | ba4fc8b | 2009-06-01 13:00:29 -0700 | [diff] [blame] | 201 | const Method *method; |
| 202 | const JitTraceDescription *traceDesc; |
| 203 | LIR *firstLIRInsn; |
| 204 | LIR *lastLIRInsn; |
| Ben Cheng | 385828e | 2011-03-04 16:48:33 -0800 | [diff] [blame] | 205 | LIR *literalList; // Constants |
| 206 | LIR *classPointerList; // Relocatable |
| 207 | int numClassPointers; |
| Bill Buzbee | 6e963e1 | 2009-06-17 16:56:19 -0700 | [diff] [blame] | 208 | LIR *chainCellOffsetLIR; |
| Ben Cheng | ba4fc8b | 2009-06-01 13:00:29 -0700 | [diff] [blame] | 209 | GrowableList pcReconstructionList; |
| Ben Cheng | 1efc9c5 | 2009-06-08 18:25:27 -0700 | [diff] [blame] | 210 | int headerSize; // bytes before the first code ptr |
| 211 | int dataOffset; // starting offset of literal pool |
| 212 | int totalSize; // header + code size |
| buzbee | bff121a | 2010-08-04 15:25:06 -0700 | [diff] [blame] | 213 | AssemblerStatus assemblerStatus; // Success or fix and retry |
| 214 | int assemblerRetries; // How many times tried to fix assembly |
| Ben Cheng | ba4fc8b | 2009-06-01 13:00:29 -0700 | [diff] [blame] | 215 | unsigned char *codeBuffer; |
| 216 | void *baseAddr; |
| 217 | bool printMe; |
| 218 | bool allSingleStep; |
| Ben Cheng | 385828e | 2011-03-04 16:48:33 -0800 | [diff] [blame] | 219 | bool hasClassLiterals; // Contains class ptrs used as literals |
| Ben Cheng | 7a2697d | 2010-06-07 13:44:23 -0700 | [diff] [blame] | 220 | bool hasLoop; // Contains a loop |
| 221 | bool hasInvoke; // Contains an invoke instruction |
| jeffhao | 9e45c0b | 2010-02-03 10:24:05 -0800 | [diff] [blame] | 222 | bool heapMemOp; // Mark mem ops for self verification |
| Ben Cheng | d72564c | 2011-02-08 17:09:25 -0800 | [diff] [blame] | 223 | bool usesLinkRegister; // For self-verification only |
| buzbee | 2e152ba | 2010-12-15 16:32:35 -0800 | [diff] [blame] | 224 | int profileCodeSize; // Size of the profile prefix in bytes |
| Ben Cheng | cec26f6 | 2010-01-15 15:29:33 -0800 | [diff] [blame] | 225 | int numChainingCells[kChainingCellGap]; |
| 226 | LIR *firstChainingLIR[kChainingCellGap]; |
| 227 | LIR *chainingCellBottom; |
| Bill Buzbee | 1465db5 | 2009-09-23 17:17:35 -0700 | [diff] [blame] | 228 | struct RegisterPool *regPool; |
| Ben Cheng | e9695e5 | 2009-06-16 16:11:47 -0700 | [diff] [blame] | 229 | int optRound; // round number to tell an LIR's age |
| Bill Buzbee | fc519dc | 2010-03-06 23:30:57 -0800 | [diff] [blame] | 230 | jmp_buf *bailPtr; |
| Bill Buzbee | 716f120 | 2009-07-23 13:22:09 -0700 | [diff] [blame] | 231 | JitInstructionSetType instructionSet; |
| Ben Cheng | 4238ec2 | 2009-08-24 16:32:22 -0700 | [diff] [blame] | 232 | /* Number of total regs used in the whole cUnit after SSA transformation */ |
| 233 | int numSSARegs; |
| 234 | /* Map SSA reg i to the Dalvik[15..0]/Sub[31..16] pair. */ |
| 235 | GrowableList *ssaToDalvikMap; |
| 236 | |
| 237 | /* The following are new data structures to support SSA representations */ |
| 238 | /* Map original Dalvik reg i to the SSA[15..0]/Sub[31..16] pair */ |
| 239 | int *dalvikToSSAMap; // length == method->registersSize |
| 240 | BitVector *isConstantV; // length == numSSAReg |
| 241 | int *constantValues; // length == numSSAReg |
| 242 | |
| 243 | /* Data structure for loop analysis and optimizations */ |
| 244 | struct LoopAnalysis *loopAnalysis; |
| Bill Buzbee | 1465db5 | 2009-09-23 17:17:35 -0700 | [diff] [blame] | 245 | |
| 246 | /* Map SSA names to location */ |
| 247 | RegLocation *regLocation; |
| 248 | int sequenceNumber; |
| Ben Cheng | 6c10a97 | 2009-10-29 14:39:18 -0700 | [diff] [blame] | 249 | |
| 250 | /* |
| 251 | * Set to the Dalvik PC of the switch instruction if it has more than |
| 252 | * MAX_CHAINED_SWITCH_CASES cases. |
| 253 | */ |
| 254 | const u2 *switchOverflowPad; |
| Ben Cheng | 0060307 | 2010-10-28 11:13:58 -0700 | [diff] [blame] | 255 | |
| Ben Cheng | 46cd4fb | 2011-03-16 17:19:06 -0700 | [diff] [blame] | 256 | JitMode jitMode; |
| Ben Cheng | 0060307 | 2010-10-28 11:13:58 -0700 | [diff] [blame] | 257 | int numReachableBlocks; |
| 258 | int numDalvikRegisters; // method->registersSize + inlined |
| 259 | BasicBlock *entryBlock; |
| 260 | BasicBlock *exitBlock; |
| Ben Cheng | 32115a9 | 2011-03-22 14:09:09 -0700 | [diff] [blame] | 261 | BasicBlock *puntBlock; // punting to interp for exceptions |
| 262 | BasicBlock *backChainBlock; // for loop-trace |
| Ben Cheng | cfdeca3 | 2011-01-14 11:36:46 -0800 | [diff] [blame] | 263 | BasicBlock *curBlock; |
| Ben Cheng | 7ab74e1 | 2011-02-03 14:02:06 -0800 | [diff] [blame] | 264 | BasicBlock *nextCodegenBlock; // for extended trace codegen |
| Ben Cheng | 0060307 | 2010-10-28 11:13:58 -0700 | [diff] [blame] | 265 | GrowableList dfsOrder; |
| 266 | GrowableList domPostOrderTraversal; |
| 267 | BitVector *tryBlockAddr; |
| 268 | BitVector **defBlockMatrix; // numDalvikRegister x numBlocks |
| 269 | BitVector *tempBlockV; |
| 270 | BitVector *tempDalvikRegisterV; |
| 271 | BitVector *tempSSARegisterV; // numSSARegs |
| 272 | bool printSSANames; |
| Ben Cheng | cfdeca3 | 2011-01-14 11:36:46 -0800 | [diff] [blame] | 273 | void *blockLabelList; |
| Ben Cheng | 32115a9 | 2011-03-22 14:09:09 -0700 | [diff] [blame] | 274 | bool quitLoopMode; // cold path/complex bytecode |
| Ben Cheng | ba4fc8b | 2009-06-01 13:00:29 -0700 | [diff] [blame] | 275 | } CompilationUnit; |
| 276 | |
| Ben Cheng | 11d8f14 | 2010-03-24 15:24:19 -0700 | [diff] [blame] | 277 | #if defined(WITH_SELF_VERIFICATION) |
| 278 | #define HEAP_ACCESS_SHADOW(_state) cUnit->heapMemOp = _state |
| 279 | #else |
| 280 | #define HEAP_ACCESS_SHADOW(_state) |
| 281 | #endif |
| 282 | |
| Ben Cheng | 0060307 | 2010-10-28 11:13:58 -0700 | [diff] [blame] | 283 | BasicBlock *dvmCompilerNewBB(BBType blockType, int blockId); |
| Ben Cheng | ba4fc8b | 2009-06-01 13:00:29 -0700 | [diff] [blame] | 284 | |
| 285 | void dvmCompilerAppendMIR(BasicBlock *bb, MIR *mir); |
| 286 | |
| Ben Cheng | 4238ec2 | 2009-08-24 16:32:22 -0700 | [diff] [blame] | 287 | void dvmCompilerPrependMIR(BasicBlock *bb, MIR *mir); |
| 288 | |
| Ben Cheng | 7a2697d | 2010-06-07 13:44:23 -0700 | [diff] [blame] | 289 | void dvmCompilerInsertMIRAfter(BasicBlock *bb, MIR *currentMIR, MIR *newMIR); |
| 290 | |
| Ben Cheng | ba4fc8b | 2009-06-01 13:00:29 -0700 | [diff] [blame] | 291 | void dvmCompilerAppendLIR(CompilationUnit *cUnit, LIR *lir); |
| 292 | |
| Ben Cheng | e9695e5 | 2009-06-16 16:11:47 -0700 | [diff] [blame] | 293 | void dvmCompilerInsertLIRBefore(LIR *currentLIR, LIR *newLIR); |
| 294 | |
| Ben Cheng | dcf3e5d | 2009-09-11 13:42:05 -0700 | [diff] [blame] | 295 | void dvmCompilerInsertLIRAfter(LIR *currentLIR, LIR *newLIR); |
| 296 | |
| Bill Buzbee | fc519dc | 2010-03-06 23:30:57 -0800 | [diff] [blame] | 297 | void dvmCompilerAbort(CompilationUnit *cUnit); |
| 298 | |
| Ben Cheng | ba4fc8b | 2009-06-01 13:00:29 -0700 | [diff] [blame] | 299 | /* Debug Utilities */ |
| 300 | void dvmCompilerDumpCompilationUnit(CompilationUnit *cUnit); |
| 301 | |
| 302 | #endif /* _DALVIK_VM_COMPILER_IR */ |