OSDN Git Service

Add fast string sharpening
authorMathieu Chartier <mathieuc@google.com>
Thu, 20 Nov 2014 23:04:10 +0000 (15:04 -0800)
committerMathieu Chartier <mathieuc@google.com>
Fri, 21 Nov 2014 19:21:50 +0000 (11:21 -0800)
commit807140048f82a2b87ee5bcf337f23b6a3d1d5269
treec7aed019b2c0454f74936fdde54653613ffa9d71
parentc934e483ceabbd589422beea1fa35f5182ecfa99
Add fast string sharpening

String sharpening changes const strings to PC relative loads instead
of always going through the dex cache. This saves code size and
probably improves performance slightly.

Before: 49602992 system@framework@boot.oat
After: 49385904 system@framework@boot.oat

Pre-cursor to removing dex_cache_strings_ field from ArtMethod.

Bug: 17643507

Change-Id: I1787f48774631eee0accafeea257aa8d0e91e8d6
compiler/dex/quick/codegen_util.cc
compiler/dex/quick/gen_common.cc
compiler/dex/quick/mir_to_lir.h
compiler/driver/compiler_driver.cc
compiler/driver/compiler_driver.h
compiler/elf_patcher.cc
compiler/elf_patcher.h
compiler/elf_writer_quick.cc