summaryrefslogtreecommitdiffstats
path: root/runtime/asm_support.h
diff options
context:
space:
mode:
authorMathieu Chartier <mathieuc@google.com>2014-11-24 18:29:54 -0800
committerMathieu Chartier <mathieuc@google.com>2014-11-25 16:02:04 -0800
commiteace45873190a27302b3644c32ec82854b59d299 (patch)
tree73fbf327839263b6847bdc4359ac1dbea2b897e3 /runtime/asm_support.h
parent8ac8d5556fae9c728bcebcc9036a1bbf40087c76 (diff)
downloadart-eace45873190a27302b3644c32ec82854b59d299.zip
art-eace45873190a27302b3644c32ec82854b59d299.tar.gz
art-eace45873190a27302b3644c32ec82854b59d299.tar.bz2
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)
Diffstat (limited to 'runtime/asm_support.h')
-rw-r--r--runtime/asm_support.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/asm_support.h b/runtime/asm_support.h
index c737ec9..7454cca 100644
--- a/runtime/asm_support.h
+++ b/runtime/asm_support.h
@@ -148,11 +148,11 @@ ADD_TEST_EQ(MIRROR_STRING_OFFSET_OFFSET, art::mirror::String::OffsetOffset().Int
ADD_TEST_EQ(MIRROR_ART_METHOD_DEX_CACHE_METHODS_OFFSET,
art::mirror::ArtMethod::DexCacheResolvedMethodsOffset().Int32Value())
-#define MIRROR_ART_METHOD_PORTABLE_CODE_OFFSET_32 (44 + MIRROR_OBJECT_HEADER_SIZE)
+#define MIRROR_ART_METHOD_PORTABLE_CODE_OFFSET_32 (40 + MIRROR_OBJECT_HEADER_SIZE)
ADD_TEST_EQ(MIRROR_ART_METHOD_PORTABLE_CODE_OFFSET_32,
art::mirror::ArtMethod::EntryPointFromPortableCompiledCodeOffset(4).Int32Value())
-#define MIRROR_ART_METHOD_QUICK_CODE_OFFSET_32 (40 + MIRROR_OBJECT_HEADER_SIZE)
+#define MIRROR_ART_METHOD_QUICK_CODE_OFFSET_32 (36 + MIRROR_OBJECT_HEADER_SIZE)
ADD_TEST_EQ(MIRROR_ART_METHOD_QUICK_CODE_OFFSET_32,
art::mirror::ArtMethod::EntryPointFromQuickCompiledCodeOffset(4).Int32Value())