summaryrefslogtreecommitdiffstats
path: root/Android.mk
diff options
context:
space:
mode:
authorbxu10X <bxu10X@intel.com>2012-03-06 13:08:06 +0800
committerShuo Gao <shuo.gao@intel.com>2012-08-14 22:19:52 +0800
commit3c01f41e1ae6b1aa0bd1fb6e37bc02fa2ca3c62e (patch)
tree6b33dc47becba8ccce78fd11dcc658715a9f92d2 /Android.mk
parent47387cc7716048dcea1cc5f9bf37da65d38e10be (diff)
downloadexternal_webkit-3c01f41e1ae6b1aa0bd1fb6e37bc02fa2ca3c62e.zip
external_webkit-3c01f41e1ae6b1aa0bd1fb6e37bc02fa2ca3c62e.tar.gz
external_webkit-3c01f41e1ae6b1aa0bd1fb6e37bc02fa2ca3c62e.tar.bz2
webkit: enable no-pic compiling option
This patch is to enable no-pic compiling option PIC enables efficient code sharing between processes but increases overhead due to indirectly access global variables and functions. By enabling no-pic here, we can get rid of indirect access calling __x86.get_pc_thunk.bx, while still share the library between processes, since zygote loads libwebcore, and all android applications are forked from zygote and inherits its address space. The patch takes effect together with the one enabling no-pic compiling option in v8. With them, we can see obvious performance improvement for browser workloads, 5%+ for HTML5-zoom and HTML5-animation, 6.6% for sunspider, and 9.1% for pageloading Note: This patch is related to a change in platform/external/v8 Change-Id: I47ee3149d31b2f7d78c4a399503b6d9a9f0f572a Author: Lijuan Xiao<lijuan.xiao@intel.com> Signed-off-by: Bin Xu <bxu10X@intel.com> Singed-off-by: Shuo Gao <shuo.gao@intel.com> Signed-off-by: Bruce Beare <bruce.j.beare@intel.com> Signed-off-by: Jack Ren <jack.ren@intel.com> Author-tracking-BZ: 26358
Diffstat (limited to 'Android.mk')
-rw-r--r--Android.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index 61bd467..12fbb59 100644
--- a/Android.mk
+++ b/Android.mk
@@ -252,6 +252,10 @@ LOCAL_CFLAGS += -Darm
LOCAL_CFLAGS += -Wno-psabi
endif
+ifeq ($(TARGET_ARCH_VARIANT),x86-atom)
+LOCAL_CFLAGS += -fno-pic
+endif
+
# need a flag to tell the C side when we're on devices with large memory
# budgets (i.e. larger than the low-end devices that initially shipped)
ifeq ($(ARCH_ARM_HAVE_VFP),true)