Diff
Modified: trunk/LayoutTests/ChangeLog (247246 => 247247)
--- trunk/LayoutTests/ChangeLog 2019-07-09 01:24:15 UTC (rev 247246)
+++ trunk/LayoutTests/ChangeLog 2019-07-09 02:18:56 UTC (rev 247247)
@@ -1,3 +1,17 @@
+2019-07-08 Keith Miller <[email protected]>
+
+ Enable Intl.PluralRules and Intl.NumberFormatToParts by default
+ https://bugs.webkit.org/show_bug.cgi?id=199288
+
+ Reviewed by Yusuke Suzuki.
+
+ Remove runtime flag from testing.
+
+ * js/intl-numberformat-format-to-parts.html:
+ * js/intl-pluralrules.html:
+ * js/script-tests/intl-numberformat-format-to-parts.js:
+ * js/script-tests/intl-pluralrules.js:
+
2019-07-08 Daniel Bates <[email protected]>
[iOS] Support select all in non-editable element
Modified: trunk/LayoutTests/js/intl-numberformat-format-to-parts.html (247246 => 247247)
--- trunk/LayoutTests/js/intl-numberformat-format-to-parts.html 2019-07-09 01:24:15 UTC (rev 247246)
+++ trunk/LayoutTests/js/intl-numberformat-format-to-parts.html 2019-07-09 02:18:56 UTC (rev 247247)
@@ -1,4 +1,4 @@
-<!doctype html><!-- webkit-test-runner [ jscOptions=--useIntlNumberFormatToParts=true ] -->
+<!doctype html>
<html>
<head>
<meta charset="utf-8">
Modified: trunk/LayoutTests/js/intl-pluralrules.html (247246 => 247247)
--- trunk/LayoutTests/js/intl-pluralrules.html 2019-07-09 01:24:15 UTC (rev 247246)
+++ trunk/LayoutTests/js/intl-pluralrules.html 2019-07-09 02:18:56 UTC (rev 247247)
@@ -1,4 +1,4 @@
-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"><!-- webkit-test-runner [ jscOptions=--useIntlPluralRules=true ] -->
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<meta charset="utf-8">
Modified: trunk/LayoutTests/js/script-tests/intl-numberformat-format-to-parts.js (247246 => 247247)
--- trunk/LayoutTests/js/script-tests/intl-numberformat-format-to-parts.js 2019-07-09 01:24:15 UTC (rev 247246)
+++ trunk/LayoutTests/js/script-tests/intl-numberformat-format-to-parts.js 2019-07-09 02:18:56 UTC (rev 247247)
@@ -1,5 +1,4 @@
//@ skip if $hostOS == "windows" or $hostOS == "darwin" or $hostOS == "linux"
-//@ requireOptions("--useIntlNumberFormatToParts=true")
description("This test checks the behavior of Intl.NumberFormat.prototype.formatToParts as described in the ECMAScript Internationalization API Specification.");
Modified: trunk/LayoutTests/js/script-tests/intl-pluralrules.js (247246 => 247247)
--- trunk/LayoutTests/js/script-tests/intl-pluralrules.js 2019-07-09 01:24:15 UTC (rev 247246)
+++ trunk/LayoutTests/js/script-tests/intl-pluralrules.js 2019-07-09 02:18:56 UTC (rev 247247)
@@ -1,5 +1,4 @@
//@ skip if $hostOS == "windows" or $hostOS == "linux"
-//@ requireOptions("--useIntlPluralRules=true")
description("This test checks the behavior of Intl.PluralRules as described in the ECMAScript Internationalization API Specification.");
Modified: trunk/Source/_javascript_Core/ChangeLog (247246 => 247247)
--- trunk/Source/_javascript_Core/ChangeLog 2019-07-09 01:24:15 UTC (rev 247246)
+++ trunk/Source/_javascript_Core/ChangeLog 2019-07-09 02:18:56 UTC (rev 247247)
@@ -1,3 +1,19 @@
+2019-07-08 Keith Miller <[email protected]>
+
+ Enable Intl.PluralRules and Intl.NumberFormatToParts by default
+ https://bugs.webkit.org/show_bug.cgi?id=199288
+
+ Reviewed by Yusuke Suzuki.
+
+ These features have been around for a while. We should turn them on by default.
+
+ * runtime/IntlNumberFormatPrototype.cpp:
+ (JSC::IntlNumberFormatPrototype::finishCreation):
+ * runtime/IntlObject.cpp:
+ (JSC::IntlObject::finishCreation): Deleted.
+ * runtime/IntlObject.h:
+ * runtime/Options.h:
+
2019-07-08 Antoine Quint <[email protected]>
[Pointer Events] Enable only on the most recent version of the supported iOS family
Modified: trunk/Source/_javascript_Core/runtime/IntlNumberFormatPrototype.cpp (247246 => 247247)
--- trunk/Source/_javascript_Core/runtime/IntlNumberFormatPrototype.cpp 2019-07-09 01:24:15 UTC (rev 247246)
+++ trunk/Source/_javascript_Core/runtime/IntlNumberFormatPrototype.cpp 2019-07-09 02:18:56 UTC (rev 247247)
@@ -81,8 +81,7 @@
{
Base::finishCreation(vm);
#if HAVE(ICU_FORMAT_DOUBLE_FOR_FIELDS)
- if (Options::useIntlNumberFormatToParts())
- JSC_NATIVE_FUNCTION_WITHOUT_TRANSITION(vm.propertyNames->formatToParts, IntlNumberFormatPrototypeFuncFormatToParts, static_cast<unsigned>(PropertyAttribute::DontEnum), 1);
+ JSC_NATIVE_FUNCTION_WITHOUT_TRANSITION(vm.propertyNames->formatToParts, IntlNumberFormatPrototypeFuncFormatToParts, static_cast<unsigned>(PropertyAttribute::DontEnum), 1);
#else
UNUSED_PARAM(globalObject);
#endif
Modified: trunk/Source/_javascript_Core/runtime/IntlObject.cpp (247246 => 247247)
--- trunk/Source/_javascript_Core/runtime/IntlObject.cpp 2019-07-09 01:24:15 UTC (rev 247246)
+++ trunk/Source/_javascript_Core/runtime/IntlObject.cpp 2019-07-09 02:18:56 UTC (rev 247247)
@@ -99,6 +99,7 @@
Collator createCollatorConstructor DontEnum|PropertyCallback
DateTimeFormat createDateTimeFormatConstructor DontEnum|PropertyCallback
NumberFormat createNumberFormatConstructor DontEnum|PropertyCallback
+ PluralRules createPluralRulesConstructor DontEnum|PropertyCallback
@end
*/
@@ -122,17 +123,6 @@
return object;
}
-void IntlObject::finishCreation(VM& vm)
-{
- Base::finishCreation(vm);
- ASSERT(inherits(vm, info()));
-
- // Constructor Properties of the Intl Object
- // https://tc39.github.io/ecma402/#sec-constructor-properties-of-the-intl-object
- if (Options::useIntlPluralRules())
- putDirectWithoutTransition(vm, vm.propertyNames->PluralRules, createPluralRulesConstructor(vm, this), static_cast<unsigned>(PropertyAttribute::DontEnum));
-}
-
Structure* IntlObject::createStructure(VM& vm, JSGlobalObject* globalObject, JSValue prototype)
{
return Structure::create(vm, globalObject, prototype, TypeInfo(ObjectType, StructureFlags), info());
Modified: trunk/Source/_javascript_Core/runtime/IntlObject.h (247246 => 247247)
--- trunk/Source/_javascript_Core/runtime/IntlObject.h 2019-07-09 01:24:15 UTC (rev 247246)
+++ trunk/Source/_javascript_Core/runtime/IntlObject.h 2019-07-09 02:18:56 UTC (rev 247247)
@@ -51,9 +51,6 @@
DECLARE_INFO;
-protected:
- void finishCreation(VM&);
-
private:
IntlObject(VM&, Structure*);
};
Modified: trunk/Source/_javascript_Core/runtime/Options.h (247246 => 247247)
--- trunk/Source/_javascript_Core/runtime/Options.h 2019-07-09 01:24:15 UTC (rev 247246)
+++ trunk/Source/_javascript_Core/runtime/Options.h 2019-07-09 02:18:56 UTC (rev 247247)
@@ -106,18 +106,6 @@
#define MAXIMUM_NUMBER_OF_FTL_COMPILER_THREADS 8
#endif
-#if ENABLE(EXPERIMENTAL_FEATURES)
-constexpr bool enableIntlNumberFormatToParts = true;
-#else
-constexpr bool enableIntlNumberFormatToParts = false;
-#endif
-
-#if ENABLE(EXPERIMENTAL_FEATURES)
-constexpr bool enableIntlPluralRules = true;
-#else
-constexpr bool enableIntlPluralRules = false;
-#endif
-
#if ENABLE(WEBASSEMBLY_STREAMING_API)
constexpr bool enableWebAssemblyStreamingApi = true;
#else
@@ -504,8 +492,6 @@
v(bool, useEagerWebAssemblyModuleHashing, false, Normal, "Unnamed WebAssembly modules are identified in backtraces through their hash, if available.") \
v(bool, useWebAssemblyReferences, false, Normal, "Allow types from the wasm references spec.") \
v(bool, useBigInt, false, Normal, "If true, we will enable BigInt support.") \
- v(bool, useIntlNumberFormatToParts, enableIntlNumberFormatToParts, Normal, "If true, we will enable Intl.NumberFormat.prototype.formatToParts") \
- v(bool, useIntlPluralRules, enableIntlPluralRules, Normal, "If true, we will enable Intl.PluralRules.") \
v(bool, useArrayAllocationProfiling, true, Normal, "If true, we will use our normal array allocation profiling. If false, the allocation profile will always claim to be undecided.") \
v(bool, forcePolyProto, false, Normal, "If true, create_this will always create an object with a poly proto structure.") \
v(bool, forceMiniVMMode, false, Normal, "If true, it will force mini VM mode on.") \