@@ -86,7 +86,7 @@ diff -aur target-org/webkit/Source/cmake/OptionsJSCOnly.cmake target/webkit/Sour
86
86
- endif ()
87
87
+ set(ENABLE_API_TESTS OFF)
88
88
+ set(ENABLE_SAMPLING_PROFILER OFF)
89
- + set(ENABLE_DFG_JIT OFF )
89
+ + set(ENABLE_DFG_JIT ON )
90
90
+ set(ENABLE_FTL_JIT OFF)
91
91
+ set(ENABLE_JIT ON)
92
92
@@ -113,9 +113,9 @@ diff -aur target-org/webkit/Source/JavaScriptCore/CMakeLists.txt target/webkit/S
113
113
# Force staging of shared scripts, even if they aren't directly used to build JavaScriptCore.
114
114
115
115
diff -aur target-org/webkit/Source/WTF/wtf/unix/LanguageUnix.cpp target/webkit/Source/WTF/wtf/unix/LanguageUnix.cpp
116
- --- target-org/webkit/Source/WTF/wtf/unix/LanguageUnix.cpp 2017-09 -08 02:11:21 .000000000 +0300
117
- +++ target/webkit/Source/WTF/wtf/unix/LanguageUnix.cpp 2018-06-14 15:41:18.000000000 +0300
118
- @@ -24,22 +24,25 @@
116
+ --- target-org/webkit/Source/WTF/wtf/unix/LanguageUnix.cpp 2016-10 -08 05:31:15 .000000000 +0200
117
+ +++ target/webkit/Source/WTF/wtf/unix/LanguageUnix.cpp 2017-07-11 11:34:55.962374878 +0200
118
+ @@ -24,22 +24,27 @@
119
119
#include <locale.h>
120
120
#include <wtf/Vector.h>
121
121
#include <wtf/text/WTFString.h>
@@ -131,25 +131,26 @@ diff -aur target-org/webkit/Source/WTF/wtf/unix/LanguageUnix.cpp target/webkit/S
131
131
- String localeDefault(setlocale(LC_CTYPE, nullptr));
132
132
- if (localeDefault.isEmpty() || equalIgnoringASCIICase(localeDefault, "C") || equalIgnoringASCIICase(localeDefault, "POSIX"))
133
133
+ char buf[2 * (PROP_VALUE_MAX + 1)];
134
+ +
134
135
+ int locale_len = __system_property_get("persist.sys.locale", buf);
135
136
+ if (locale_len == 0) {
136
137
+ int lang_len = __system_property_get("persist.sys.language", buf);
137
138
+ if(lang_len == 0) {
138
- return ASCIILiteral("en-US");
139
- -
140
- - String normalizedDefault = localeDefault;
141
- - normalizedDefault.replace('_', '-');
142
- - normalizedDefault.truncate(normalizedDefault.find('.'));
143
- - return normalizedDefault;
139
+ return "en-US"_s;
144
140
+ }
145
141
+ int country_len = __system_property_get("persist.sys.country", buf + lang_len + 1);
146
142
+ if(country_len != 0) {
147
143
+ buf[lang_len] = '-';
148
144
+ }
149
145
+ }
146
+
147
+ - String normalizedDefault = localeDefault;
148
+ - normalizedDefault.replace('_', '-');
149
+ - normalizedDefault.truncate(normalizedDefault.find('.'));
150
+ - return normalizedDefault;
150
151
+ return String(buf);
151
152
}
152
-
153
+
153
154
Vector<String> platformUserPreferredLanguages()
154
155
diff -aur target-org/webkit/Source/WTF/wtf/StackTrace.cpp target/webkit/Source/WTF/wtf/StackTrace.cpp
155
156
--- target-org/webkit/Source/WTF/wtf/StackTrace.cpp 2017-04-25 04:53:49.000000000 +0200
@@ -195,15 +196,15 @@ diff -aur target-org/webkit/Source/WTF/wtf/unicode/CollatorDefault.cpp target/we
195
196
diff -aur org/target/webkit/Source/cmake/OptionsCommon.cmake target/webkit/Source/cmake/OptionsCommon.cmake
196
197
--- target-org/webkit/Source/cmake/OptionsCommon.cmake 2017-11-15 16:28:52.120093206 +0100
197
198
+++ target/webkit/Source/cmake/OptionsCommon.cmake 2017-04-09 02:50:32.875166000 +0200
198
- @@ -255 ,7 +255 ,7 @@
199
+ @@ -115 ,7 +115 ,7 @@
199
200
200
201
# Check for headers
201
- _HAVE_CHECK_INCLUDE (HAVE_ERRNO_H errno.h)
202
- - _HAVE_CHECK_INCLUDE (HAVE_LANGINFO_H langinfo.h)
203
- + #_HAVE_CHECK_INCLUDE (HAVE_LANGINFO_H langinfo.h)
204
- _HAVE_CHECK_INCLUDE (HAVE_MMAP sys/mman.h)
205
- _HAVE_CHECK_INCLUDE (HAVE_PTHREAD_NP_H pthread_np.h)
206
- _HAVE_CHECK_INCLUDE (HAVE_STRINGS_H strings.h)
202
+ WEBKIT_CHECK_HAVE_INCLUDE (HAVE_ERRNO_H errno.h)
203
+ - WEBKIT_CHECK_HAVE_INCLUDE (HAVE_LANGINFO_H langinfo.h)
204
+ + #WEBKIT_CHECK_HAVE_INCLUDE (HAVE_LANGINFO_H langinfo.h)
205
+ WEBKIT_CHECK_HAVE_INCLUDE (HAVE_MMAP sys/mman.h)
206
+ WEBKIT_CHECK_HAVE_INCLUDE (HAVE_PTHREAD_NP_H pthread_np.h)
207
+ WEBKIT_CHECK_HAVE_INCLUDE (HAVE_STRINGS_H strings.h)
207
208
diff -aur target-org/webkit/Source/cmake/FindICU.cmake target/webkit/Source/cmake/FindICU.cmake
208
209
--- target-org/webkit/Source/cmake/FindICU.cmake 2018-07-24 15:41:23.452474811 +0200
209
210
+++ target/webkit/Source/cmake/FindICU.cmake 2018-07-12 15:53:44.611542333 +0200
@@ -259,13 +260,12 @@ diff -aur target-org/webkit/Source/cmake/FindICU.cmake target/webkit/Source/cmak
259
260
diff -aur target-org/webkit/Source/JavaScriptCore/CMakeLists.txt target/webkit/Source/JavaScriptCore/CMakeLists.txt
260
261
--- target-org/webkit/Source/JavaScriptCore/CMakeLists.txt 2018-07-25 09:56:23.662494914 +0200
261
262
+++ target/webkit/Source/JavaScriptCore/CMakeLists.txt 2018-07-18 12:55:24.726736260 +0200
262
- @@ -1072,6 +1072,8 @@
263
+ @@ -118,5 +118,7 @@
263
264
set(JavaScriptCore_LIBRARIES
264
265
WTF${DEBUG_SUFFIX}
265
266
${ICU_I18N_LIBRARIES}
266
267
+ ${ICU_LIBRARIES}
267
268
+ ${ICU_DATA_LIBRARIES}
268
- ${LLVM_LIBRARIES}
269
269
)
270
270
271
271
diff -aur target-org/webkit/Source/JavaScriptCore/API/JSBase.cpp target/webkit/Source/JavaScriptCore/API/JSBase.cpp
@@ -284,12 +284,10 @@ diff -aur target-org/webkit/Source/JavaScriptCore/API/JSBase.cpp target/webkit/S
284
284
diff -aur target-org/webkit/Source/JavaScriptCore/CMakeLists.txt target/webkit/Source/JavaScriptCore/CMakeLists.txt
285
285
--- target-org/webkit/Source/JavaScriptCore/CMakeLists.txt 2017-10-16 15:19:26.000000000 +0300
286
286
+++ target/webkit/Source/JavaScriptCore/CMakeLists.txt 2018-10-09 14:44:23.000000000 +0300
287
- @@ -1073,6 +1073,8 @@
287
+ @@ -119,4 +119,6 @@
288
288
WTF${DEBUG_SUFFIX}
289
289
${ICU_I18N_LIBRARIES}
290
- ${LLVM_LIBRARIES}
291
290
+ log
292
291
)
293
292
+ add_definitions(-DJSC_VERSION="${JSC_VERSION}")
294
293
295
- set(JavaScriptCore_SCRIPTS_SOURCES_DIR "${JAVASCRIPTCORE_DIR}/Scripts")
0 commit comments