OSDN Git Service

Clean up code info table layout
authorMathieu Chartier <mathieuc@google.com>
Mon, 6 Feb 2017 19:00:40 +0000 (11:00 -0800)
committerMathieu Chartier <mathieuc@google.com>
Wed, 8 Feb 2017 17:51:27 +0000 (09:51 -0800)
commit575d3e60c68b5cf481b615dde4a16283507b19ed
tree4718f2747233e74268de21d804df9bfe0b7e4362
parent857acf51fbc5a931939c20e9e299c69676baf654
Clean up code info table layout

Previously:
Table layout was computed multiple places like stack_map_stream,
and getters. This made it difficult to add new stack map tables and
made the code hard to understand.

This change makes the table layout specified all inside of the code
info. Updating the layout only requires changing ComputeTableOffsets.

Changed the stack map inline info offset to be an index, so that it is
not require the inline infos are directly after the dex register table.

Oat file size for a large app: 94459576 -> 93882040 (-0.61%)

Updated oatdump and fixed a bug that was incorrectly computing the
register mask bytes.

Bug: 34621054

Test: test-art-host

Change-Id: I3a7f141e09d5a18bce2bc6c9439835244a22016e
16 files changed:
compiler/debug/elf_debug_line_writer.h
compiler/debug/elf_debug_loc_writer.h
compiler/optimizing/stack_map_stream.cc
compiler/optimizing/stack_map_stream.h
compiler/optimizing/stack_map_test.cc
oatdump/oatdump.cc
runtime/bit_memory_region.h
runtime/entrypoints/entrypoint_utils.cc
runtime/entrypoints/quick/quick_trampoline_entrypoints.cc
runtime/jit/jit.cc
runtime/oat.h
runtime/oat_quick_method_header.cc
runtime/quick_exception_handler.cc
runtime/stack.cc
runtime/stack_map.cc
runtime/stack_map.h