diff options
author | 2019-05-30 22:45:40 +0100 | |
---|---|---|
committer | 2019-06-30 18:04:44 +0000 | |
commit | 0d4567f26701abae84b02389c379843c1dc851a8 (patch) | |
tree | f665e6d5db5af79a4afa3b97cd7cdb7a2069da3f /runtime/entrypoints/entrypoint_utils.cc | |
parent | cc08c50948d8b2a93b53a327717c7b2a146ac754 (diff) |
Stack maps: Refactor constructors.
Create dedicated static methods instead of passing flags.
This creates dedicated methods for the purpose and merges
constructor and decoding into single optimized method.
This speeds up CodeInfo by 10%, and maps startup by 0.1%.
Test: ./art/test.py -b --host
Change-Id: Ic7d43e22bca0be9fb13bc2c7544ebfdf46798cfe
Diffstat (limited to 'runtime/entrypoints/entrypoint_utils.cc')
-rw-r--r-- | runtime/entrypoints/entrypoint_utils.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/entrypoints/entrypoint_utils.cc b/runtime/entrypoints/entrypoint_utils.cc index 71196d4948..17be7ec687 100644 --- a/runtime/entrypoints/entrypoint_utils.cc +++ b/runtime/entrypoints/entrypoint_utils.cc @@ -205,7 +205,7 @@ static inline ArtMethod* DoGetCalleeSaveMethodCaller(ArtMethod* outer_method, DCHECK(current_code->IsOptimized()); if (CodeInfo::HasInlineInfo(current_code->GetOptimizedCodeInfoPtr())) { uintptr_t native_pc_offset = current_code->NativeQuickPcOffset(caller_pc); - CodeInfo code_info(current_code, CodeInfo::DecodeFlags::InlineInfoOnly); + CodeInfo code_info = CodeInfo::DecodeInlineInfoOnly(current_code); StackMap stack_map = code_info.GetStackMapForNativePcOffset(native_pc_offset); DCHECK(stack_map.IsValid()); BitTableRange<InlineInfo> inline_infos = code_info.GetInlineInfosOf(stack_map); |