summaryrefslogtreecommitdiff
path: root/runtime/entrypoints/entrypoint_utils.cc
diff options
context:
space:
mode:
author David Srbecky <dsrbecky@google.com> 2018-07-25 21:45:54 +0100
committer David Srbecky <dsrbecky@google.com> 2018-07-26 11:45:54 +0100
commit6ee06e97cef5ee92944deaeba0da4d10c4c33a2a (patch)
tree77d69c85d37864b4d3ee970be4b7fd1246adee7b /runtime/entrypoints/entrypoint_utils.cc
parentf5dcd31d89282b6c9324fdc960e6e7e2281c16f1 (diff)
Decode only the needed tables from CodeInfo.
Most use cases need only the first two bit tables from CodeInfo. Add flag to the decode method so that only those two are loaded. We only touched the table header but that still made difference. This speeds up pmd by over 10%. Test: test-art-host-gtest Change-Id: I7740081bf18205dd69864503b5bcec7de5e1a901
Diffstat (limited to 'runtime/entrypoints/entrypoint_utils.cc')
-rw-r--r--runtime/entrypoints/entrypoint_utils.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/entrypoints/entrypoint_utils.cc b/runtime/entrypoints/entrypoint_utils.cc
index 0c61965908..a5ebce5f5b 100644
--- a/runtime/entrypoints/entrypoint_utils.cc
+++ b/runtime/entrypoints/entrypoint_utils.cc
@@ -201,7 +201,7 @@ static inline ArtMethod* DoGetCalleeSaveMethodCaller(ArtMethod* outer_method,
DCHECK(current_code != nullptr);
DCHECK(current_code->IsOptimized());
uintptr_t native_pc_offset = current_code->NativeQuickPcOffset(caller_pc);
- CodeInfo code_info(current_code);
+ CodeInfo code_info(current_code, CodeInfo::DecodeFlags::InlineInfoOnly);
MethodInfo method_info = current_code->GetOptimizedMethodInfo();
StackMap stack_map = code_info.GetStackMapForNativePcOffset(native_pc_offset);
DCHECK(stack_map.IsValid());