From 736b560f2d2c89b63dc895888c671b5519afa4c8 Mon Sep 17 00:00:00 2001 From: Mathieu Chartier Date: Wed, 2 Sep 2015 14:54:11 -0700 Subject: Reduce how often we call FindDexCache Before host boot.oat -j4 optimizing compile: real 1m17.792s user 3m26.140s sys 0m8.340s After: real 1m12.324s user 3m22.718s sys 0m8.320s Change-Id: If18e9e79e06cdf1676692e5efacb682bf93889c3 --- compiler/dex/quick/quick_compiler.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'compiler/dex/quick/quick_compiler.h') diff --git a/compiler/dex/quick/quick_compiler.h b/compiler/dex/quick/quick_compiler.h index 4a39ab3565..d512b256cd 100644 --- a/compiler/dex/quick/quick_compiler.h +++ b/compiler/dex/quick/quick_compiler.h @@ -21,6 +21,10 @@ namespace art { +namespace mirror { +class DexCache; +} + class Compiler; class CompilerDriver; class Mir2Lir; @@ -43,7 +47,8 @@ class QuickCompiler : public Compiler { uint16_t class_def_idx, uint32_t method_idx, jobject class_loader, - const DexFile& dex_file) const OVERRIDE; + const DexFile& dex_file, + Handle dex_cache) const OVERRIDE; CompiledMethod* JniCompile(uint32_t access_flags, uint32_t method_idx, -- cgit v1.2.3-59-g8ed1b