summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbxu10X <bxu10X@intel.com>2012-03-06 15:05:11 +0800
committerShuo Gao <shuo.gao@intel.com>2012-08-14 22:13:41 +0800
commit5516927b9231f622e1db0606ea876df4cefb9ce6 (patch)
treeca2512143cf3db1afead58555de6cbe140657ad5
parent2461b847d44e0dfa125b5d7c566a52d3da2eb1df (diff)
downloadandroid_external_v8-5516927b9231f622e1db0606ea876df4cefb9ce6.tar.gz
android_external_v8-5516927b9231f622e1db0606ea876df4cefb9ce6.tar.bz2
android_external_v8-5516927b9231f622e1db0606ea876df4cefb9ce6.zip
V8: 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 external/webkit Change-Id: Ib055e70c2e0587ac66dcc29ccef8e455aa0b832e Author: Bin Xu <bxu10X@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
-rw-r--r--Android.libv8.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/Android.libv8.mk b/Android.libv8.mk
index cd32be65..35e5e5f1 100644
--- a/Android.libv8.mk
+++ b/Android.libv8.mk
@@ -104,7 +104,7 @@ ifeq ($(TARGET_ARCH),mips)
endif
ifeq ($(TARGET_ARCH),x86)
- LOCAL_CFLAGS += -DV8_TARGET_ARCH_IA32
+ LOCAL_CFLAGS += -DV8_TARGET_ARCH_IA32 -fno-pic
endif
ifeq ($(DEBUG_V8),true)