summaryrefslogtreecommitdiff
path: root/runtime/stack_map.cc
diff options
context:
space:
mode:
author David Srbecky <dsrbecky@google.com> 2019-01-28 18:59:23 +0000
committer David Srbecky <dsrbecky@google.com> 2019-02-11 13:23:53 +0000
commit68efa7b1128486e08ae60cd27181645b27bbd2e4 (patch)
treebb3f56ecefe08b66f7a330a02caef0b089a0c2af /runtime/stack_map.cc
parent794350fd0e21aa9e259b6c45394494871e7fdb13 (diff)
Add code size to CodeInfo
This temporarily adds 0.25% to oat file size. The space will be reclaimed back in follow-up CL. Bug: 123510633 Test: DCHECK compare the two stored code sizes. Change-Id: I15340824ca637fd075a4cef87771b06cb96bb9f4
Diffstat (limited to 'runtime/stack_map.cc')
-rw-r--r--runtime/stack_map.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/stack_map.cc b/runtime/stack_map.cc
index 62dec15c57..5d30b771ae 100644
--- a/runtime/stack_map.cc
+++ b/runtime/stack_map.cc
@@ -227,6 +227,7 @@ void CodeInfo::Dump(VariableIndentationOutputStream* vios,
bool verbose,
InstructionSet instruction_set) const {
vios->Stream() << "CodeInfo BitSize=" << size_in_bits_
+ << " CodeSize:" << StackMap::UnpackNativePc(packed_code_size_, instruction_set)
<< " FrameSize:" << packed_frame_size_ * kStackAlignment
<< " CoreSpillMask:" << std::hex << core_spill_mask_
<< " FpSpillMask:" << std::hex << fp_spill_mask_