summaryrefslogtreecommitdiff
path: root/runtime/stack.cc
diff options
context:
space:
mode:
author David Srbecky <dsrbecky@google.com> 2019-05-30 22:45:40 +0100
committer David Srbecky <dsrbecky@google.com> 2019-06-30 18:04:44 +0000
commit0d4567f26701abae84b02389c379843c1dc851a8 (patch)
treef665e6d5db5af79a4afa3b97cd7cdb7a2069da3f /runtime/stack.cc
parentcc08c50948d8b2a93b53a327717c7b2a146ac754 (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/stack.cc')
-rw-r--r--runtime/stack.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/stack.cc b/runtime/stack.cc
index 172fe3eb16..3fc6fd11db 100644
--- a/runtime/stack.cc
+++ b/runtime/stack.cc
@@ -82,7 +82,7 @@ CodeInfo* StackVisitor::GetCurrentInlineInfo() const {
DCHECK(!(*cur_quick_frame_)->IsNative());
const OatQuickMethodHeader* header = GetCurrentOatQuickMethodHeader();
if (cur_inline_info_.first != header) {
- cur_inline_info_ = std::make_pair(header, CodeInfo(header, CodeInfo::InlineInfoOnly));
+ cur_inline_info_ = std::make_pair(header, CodeInfo::DecodeInlineInfoOnly(header));
}
return &cur_inline_info_.second;
}