OSDN Git Service

Move dexCacheStrings from ArtMethod to Class
authorMathieu Chartier <mathieuc@google.com>
Tue, 25 Nov 2014 02:29:54 +0000 (18:29 -0800)
committerMathieu Chartier <mathieuc@google.com>
Wed, 26 Nov 2014 00:02:04 +0000 (16:02 -0800)
commiteace45873190a27302b3644c32ec82854b59d299
tree73fbf327839263b6847bdc4359ac1dbea2b897e3
parent8ac8d5556fae9c728bcebcc9036a1bbf40087c76
Move dexCacheStrings from ArtMethod to Class

Adds one load for const strings which are not direct.

Saves >= 60KB of memory avg per app.
Image size: -350KB.

Bug: 17643507
Change-Id: I2d1a3253d9de09682be9bc6b420a29513d592cc8

(cherry picked from commit f521f423b66e952f746885dd9f6cf8ef2788955d)
16 files changed:
compiler/dex/quick/gen_common.cc
compiler/image_writer.cc
compiler/optimizing/code_generator_arm.cc
compiler/optimizing/code_generator_arm64.cc
compiler/optimizing/code_generator_x86.cc
compiler/optimizing/code_generator_x86_64.cc
runtime/asm_support.h
runtime/class_linker-inl.h
runtime/class_linker.cc
runtime/class_linker_test.cc
runtime/interpreter/interpreter_common.h
runtime/mirror/art_method-inl.h
runtime/mirror/art_method.h
runtime/mirror/class-inl.h
runtime/mirror/class.h
runtime/oat.cc