From cfdeca37fcaa27c37bad5077223e4d1e87f1182e Mon Sep 17 00:00:00 2001 From: Ben Cheng Date: Fri, 14 Jan 2011 11:36:46 -0800 Subject: Add runtime support for method based compilation. Enhanced code cache management to accommodate both trace and method compilations. Also implemented a hacky dispatch routine for virtual leaf methods. Microbenchmark showed 3x speedup in leaf method invocation. Change-Id: I79d95b7300ba993667b3aa221c1df9c7b0583521 --- vm/compiler/codegen/CompilerCodegen.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'vm/compiler/codegen/CompilerCodegen.h') diff --git a/vm/compiler/codegen/CompilerCodegen.h b/vm/compiler/codegen/CompilerCodegen.h index 70a2bbd64..9cd4847c0 100644 --- a/vm/compiler/codegen/CompilerCodegen.h +++ b/vm/compiler/codegen/CompilerCodegen.h @@ -28,6 +28,9 @@ bool dvmCompilerDoWork(CompilerWorkOrder *work); /* Lower middle-level IR to low-level IR */ void dvmCompilerMIR2LIR(CompilationUnit *cUnit); +/* Lower middle-level IR to low-level IR for the whole method */ +void dvmCompilerMethodMIR2LIR(CompilationUnit *cUnit); + /* Assemble LIR into machine code */ void dvmCompilerAssembleLIR(CompilationUnit *cUnit, JitTranslationInfo *info); -- cgit v1.2.3