• Home
  • Raw
  • Download

Lines Matching refs:cu

122   CompilationUnit cu(&compiler.GetArenaPool());  in CompileMethod()  local
124 cu.compiler_driver = &compiler; in CompileMethod()
125 cu.class_linker = class_linker; in CompileMethod()
126 cu.instruction_set = compiler.GetInstructionSet(); in CompileMethod()
127 cu.compiler_backend = compiler_backend; in CompileMethod()
128 DCHECK((cu.instruction_set == kThumb2) || in CompileMethod()
129 (cu.instruction_set == kX86) || in CompileMethod()
130 (cu.instruction_set == kMips)); in CompileMethod()
134 cu.num_dalvik_registers = code_item->registers_size_; in CompileMethod()
136 cu.compiler_flip_match = false; in CompileMethod()
137 bool use_match = !cu.compiler_method_match.empty(); in CompileMethod()
138 bool match = use_match && (cu.compiler_flip_match ^ in CompileMethod()
139 (PrettyMethod(method_idx, dex_file).find(cu.compiler_method_match) != in CompileMethod()
142 cu.disable_opt = kCompilerOptimizerDisableFlags; in CompileMethod()
143 cu.enable_debug = kCompilerDebugFlags; in CompileMethod()
144 cu.verbose = VLOG_IS_ON(compiler) || in CompileMethod()
145 (cu.enable_debug & (1 << kDebugVerbose)); in CompileMethod()
155 cu.disable_opt |= (1 << kBranchFusing); in CompileMethod()
158 if (cu.instruction_set == kMips) { in CompileMethod()
160 cu.disable_opt |= ( in CompileMethod()
173 cu.mir_graph.reset(new MIRGraph(&cu, &cu.arena)); in CompileMethod()
177 cu.mir_graph->EnableOpcodeCounting(); in CompileMethod()
181 cu.mir_graph->InlineMethod(code_item, access_flags, invoke_type, class_def_idx, method_idx, in CompileMethod()
185 if (cu.mir_graph->SkipCompilation(Runtime::Current()->GetCompilerFilter())) { in CompileMethod()
191 cu.mir_graph->CodeLayout(); in CompileMethod()
194 cu.mir_graph->SSATransformation(); in CompileMethod()
197 cu.mir_graph->PropagateConstants(); in CompileMethod()
200 cu.mir_graph->MethodUseCount(); in CompileMethod()
203 cu.mir_graph->NullCheckElimination(); in CompileMethod()
206 cu.mir_graph->BasicBlockCombine(); in CompileMethod()
209 cu.mir_graph->BasicBlockOptimization(); in CompileMethod()
211 if (cu.enable_debug & (1 << kDebugDumpCheckStats)) { in CompileMethod()
212 cu.mir_graph->DumpCheckStats(); in CompileMethod()
216 cu.mir_graph->ShowOpcodeStats(); in CompileMethod()
220 cu.mir_graph->BuildRegLocations(); in CompileMethod()
226 cu.cg.reset(PortableCodeGenerator(&cu, cu.mir_graph.get(), &cu.arena, llvm_compilation_unit)); in CompileMethod()
231 cu.cg.reset(ArmCodeGenerator(&cu, cu.mir_graph.get(), &cu.arena)); in CompileMethod()
234 cu.cg.reset(MipsCodeGenerator(&cu, cu.mir_graph.get(), &cu.arena)); in CompileMethod()
237 cu.cg.reset(X86CodeGenerator(&cu, cu.mir_graph.get(), &cu.arena)); in CompileMethod()
246 cu.cg->Materialize(); in CompileMethod()
248 result = cu.cg->GetCompiledMethod(); in CompileMethod()
256 if (cu.enable_debug & (1 << kDebugShowMemoryUsage)) { in CompileMethod()
257 if (cu.arena.BytesAllocated() > (5 * 1024 *1024)) { in CompileMethod()
258 MemStats mem_stats(cu.arena); in CompileMethod()
263 if (cu.enable_debug & (1 << kDebugShowSummaryMemoryUsage)) { in CompileMethod()
264 LOG(INFO) << "MEMINFO " << cu.arena.BytesAllocated() << " " << cu.mir_graph->GetNumBlocks() in CompileMethod()