OSDN Git Service

Override ALWAYS_INLINE attribute with inline.
authorJing Yu <jingyu@google.com>
Wed, 15 Dec 2010 22:28:35 +0000 (14:28 -0800)
committerJing Yu <jingyu@google.com>
Tue, 21 Dec 2010 18:19:43 +0000 (10:19 -0800)
ALWAYS_INLINE attribute was abused in libwebcore.so. By overriding
it with normal inline attribute, the size of libwebcore.so is
reduced by 3.71%, wihtout noticable performance regression on
webcore_test benchmark.

Change-Id: Icc1710726f28a93c3be660ba7c22c8c356748460

Android.mk

index 79e968e..f2ba162 100644 (file)
@@ -290,6 +290,7 @@ LOCAL_CFLAGS += -Wno-endif-labels -Wno-import -Wno-format
 LOCAL_CFLAGS += -fno-strict-aliasing
 LOCAL_CFLAGS += -include "WebCorePrefix.h"
 LOCAL_CFLAGS += -fvisibility=hidden
+LOCAL_CFLAGS += -DALWAYS_INLINE=inline
 # Make sure assert.h is included before assert is defined
 LOCAL_CFLAGS += -include "assert.h"
 ifeq ($(HTTP_STACK),chrome)