diff options
author | Huahui Wu <hwu@google.com> | 2010-02-11 11:30:33 -0500 |
---|---|---|
committer | Huahui Wu <hwu@google.com> | 2010-02-12 10:26:00 -0500 |
commit | 60034db6dccd2599ee8efd2a30406700ff30b507 (patch) | |
tree | 8350595d266769ebd42b1230e1516123b5167260 /Android.mk | |
parent | c30477e31785d3a211b4f889fb8ae172f647f432 (diff) | |
download | external_webkit-60034db6dccd2599ee8efd2a30406700ff30b507.zip external_webkit-60034db6dccd2599ee8efd2a30406700ff30b507.tar.gz external_webkit-60034db6dccd2599ee8efd2a30406700ff30b507.tar.bz2 |
Add code that enables SquirrelFish Extreme (a.k.a JSCX, JSC JIT) in Android.
It's disabled by default, but is enabled when the enveronment variable
ENABLE_ANDROID_JSC_JIT is set to true.
Diffstat (limited to 'Android.mk')
-rw-r--r-- | Android.mk | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -34,6 +34,9 @@ LOCAL_PATH := $(call my-dir) # can be set to true, so that two builds can be different but without # specifying which JS engine to use. +# To control if JSC JIT is used, please set ENABLE_ANDROID_JSC_JIT environment +# variable to true. + # Read JS_ENGINE environment variable JAVASCRIPT_ENGINE = $(JS_ENGINE) @@ -209,6 +212,14 @@ LOCAL_CFLAGS += -include "WebCorePrefix.h" LOCAL_CFLAGS += -fvisibility=hidden LOCAL_CFLAGS += -D__SGI_STL_INTERNAL_PAIR_H +# Enable JSC JIT if JSC is used and ENABLE_ANDROID_JSC_JIT environment +# variable is set to true +ifeq ($(JAVASCRIPT_ENGINE),jsc) +ifeq ($(ENABLE_ANDROID_JSC_JIT),true) +LOCAL_CFLAGS += -DENABLE_ANDROID_JSC_JIT=1 +endif +endif + ifeq ($(TARGET_ARCH),arm) LOCAL_CFLAGS += -Darm # remove this warning: "note: the mangling of 'va_list' has changed in GCC 4.4" |