Commit a56af6cd authored by zandobersek@gmail.com's avatar zandobersek@gmail.com

[Automake] Define ENABLE_JIT through the Autoconf header

https://bugs.webkit.org/show_bug.cgi?id=119445

Reviewed by Martin Robinson.

.: 

Instead of defining the ENABLE_JIT value through JSC_CPPFLAGS, the feature define is
set to be either enabled or disabled through the Autoconf header, based on the value
passed through the configuration flag. The 'auto' value is used as default, meaning
that the feature is enabled or disabled in the Platform.h header based on the platform
configuration (OS, architecture etc.).

* Source/autotools/FindDependencies.m4: Remove the JSC_CPPFLAGS definition.
* Source/autotools/ReadCommandLineArguments.m4: Change the default value to 'auto' instead
of 'autodetect', as used by other configuration options that take a similar approach to enabling
a specific feature.
* Source/autotools/SetupAutoconfHeader.m4: Set a strict value for the ENABLE_JIT define through
the Autoconf header if the feature was specifically enabled or disabled.

Source/JavaScriptCore: 

* GNUmakefile.am: Remove JSC_CPPFLAGS from the cpp flags for the JSC library.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@153703 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 5b54a1ec
2013-08-05 Zan Dobersek <zdobersek@igalia.com>
[Automake] Define ENABLE_JIT through the Autoconf header
https://bugs.webkit.org/show_bug.cgi?id=119445
Reviewed by Martin Robinson.
Instead of defining the ENABLE_JIT value through JSC_CPPFLAGS, the feature define is
set to be either enabled or disabled through the Autoconf header, based on the value
passed through the configuration flag. The 'auto' value is used as default, meaning
that the feature is enabled or disabled in the Platform.h header based on the platform
configuration (OS, architecture etc.).
* Source/autotools/FindDependencies.m4: Remove the JSC_CPPFLAGS definition.
* Source/autotools/ReadCommandLineArguments.m4: Change the default value to 'auto' instead
of 'autodetect', as used by other configuration options that take a similar approach to enabling
a specific feature.
* Source/autotools/SetupAutoconfHeader.m4: Set a strict value for the ENABLE_JIT define through
the Autoconf header if the feature was specifically enabled or disabled.
2013-08-04 Zalan Bujtas <zalan@apple.com>
Background doesn't fully repaint when body has margins.
......
2013-08-05 Zan Dobersek <zdobersek@igalia.com>
[Automake] Define ENABLE_JIT through the Autoconf header
https://bugs.webkit.org/show_bug.cgi?id=119445
Reviewed by Martin Robinson.
* GNUmakefile.am: Remove JSC_CPPFLAGS from the cpp flags for the JSC library.
2013-08-03 Filip Pizlo <fpizlo@apple.com>
hasIndexingHeader() ought really to be a property of an object and its structure, not just its structure
......
......@@ -46,7 +46,6 @@ libjavascriptcoregtk_@WEBKITGTK_API_MAJOR_VERSION@_@WEBKITGTK_API_MINOR_VERSION@
$(javascriptcore_cppflags)
javascriptcore_cppflags += \
$(JSC_CPPFLAGS) \
-I$(srcdir)/Source \
-I$(srcdir)/Source/JavaScriptCore \
-I$(srcdir)/Source/JavaScriptCore/API \
......
......@@ -312,14 +312,6 @@ if test "$enable_opcode_stats" = "yes"; then
fi
fi
case "$enable_jit" in
yes) JSC_CPPFLAGS="-DENABLE_JIT=1" ;;
no) JSC_CPPFLAGS="-DENABLE_JIT=0" ;;
*) enable_jit="autodetect" ;;
esac
AC_SUBST(JSC_CPPFLAGS)
# Enable CSS Filters and Shaders if accelerated_compositing is turned on.
enable_css_filters=no;
enable_css_shaders=no;
......
......@@ -182,7 +182,7 @@ AC_ARG_ENABLE(accelerated_compositing,
AC_MSG_RESULT([$enable_accelerated_compositing])
AC_MSG_CHECKING([whether to enable JIT compilation])
AC_ARG_ENABLE(jit, AS_HELP_STRING([--enable-jit], [Enable JIT compilation (default: autodetect)]))
AC_ARG_ENABLE(jit, AS_HELP_STRING([--enable-jit], [Enable JIT compilation (default: auto)]), [], [enable_jit=auto])
AC_MSG_RESULT([$enable_jit])
AC_MSG_CHECKING([whether to enable opcode stats])
......
......@@ -94,3 +94,8 @@ if test "$enable_credential_storage" = "yes"; then
AC_DEFINE([ENABLE_CREDENTIAL_STORAGE], [1], [ ])
fi
if test "$enable_jit" = "yes"; then
AC_DEFINE([ENABLE_JIT], [1], [ ])
elif test "$enable_jit" = "no"; then
AC_DEFINE([ENABLE_JIT], [0], [ ])
fi
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment