summaryrefslogtreecommitdiff
path: root/compiler/dex/quick/quick_compiler.cc
diff options
context:
space:
mode:
author Mathieu Chartier <mathieuc@google.com> 2015-09-02 14:54:11 -0700
committer Mathieu Chartier <mathieuc@google.com> 2015-09-03 13:27:19 -0700
commit736b560f2d2c89b63dc895888c671b5519afa4c8 (patch)
treed5aee7ac36f458a5f6e6d75fceb19f8963a71db5 /compiler/dex/quick/quick_compiler.cc
parentfe3879e6011f629d0dd6b04fab00b9496bd4ea08 (diff)
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
Diffstat (limited to 'compiler/dex/quick/quick_compiler.cc')
-rw-r--r--compiler/dex/quick/quick_compiler.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/dex/quick/quick_compiler.cc b/compiler/dex/quick/quick_compiler.cc
index 3642b8236a..b5ecf9c418 100644
--- a/compiler/dex/quick/quick_compiler.cc
+++ b/compiler/dex/quick/quick_compiler.cc
@@ -663,7 +663,8 @@ CompiledMethod* QuickCompiler::Compile(const DexFile::CodeItem* code_item,
uint16_t class_def_idx,
uint32_t method_idx,
jobject class_loader,
- const DexFile& dex_file) const {
+ const DexFile& dex_file,
+ Handle<mirror::DexCache> dex_cache) const {
if (kPoisonHeapReferences) {
VLOG(compiler) << "Skipping method : " << PrettyMethod(method_idx, dex_file)
<< " Reason = Quick does not support heap poisoning.";
@@ -749,7 +750,7 @@ CompiledMethod* QuickCompiler::Compile(const DexFile::CodeItem* code_item,
/* Build the raw MIR graph */
cu.mir_graph->InlineMethod(code_item, access_flags, invoke_type, class_def_idx, method_idx,
- class_loader, dex_file);
+ class_loader, dex_file, dex_cache);
if (!CanCompileMethod(method_idx, dex_file, &cu)) {
VLOG(compiler) << cu.instruction_set << ": Cannot compile method : "