Commit 8bcb3f57 authored by Frank Tang's avatar Frank Tang Committed by V8 LUCI CQ

Reland "[cleanup] Remove harmony-intl-dateformat-day-period"

This is a reland of 5e041b82

Original change's description:
> [cleanup] Remove harmony-intl-dateformat-day-period
>
> harmony-intl-dateformat-day-period is shipped in M92
>
> Bug: v8:12109
> Change-Id: I7d24463c0cc353c4baf52326159beb04592b81b5
> Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3099087
> Reviewed-by: Shu-yu Guo <syg@chromium.org>
> Commit-Queue: Frank Tang <ftang@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#76468}

Bug: v8:12109
Change-Id: Iff4a9c706d0b0092f077d67e4e840292bd8024a9
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3276921Reviewed-by: 's avatarShu-yu Guo <syg@chromium.org>
Reviewed-by: 's avatarJakob Kummerow <jkummerow@chromium.org>
Commit-Queue: Frank Tang <ftang@chromium.org>
Cr-Commit-Position: refs/heads/main@{#77909}
parent 2ac274d5
...@@ -346,8 +346,6 @@ DEFINE_BOOL(harmony_shipping, true, "enable all shipped harmony features") ...@@ -346,8 +346,6 @@ DEFINE_BOOL(harmony_shipping, true, "enable all shipped harmony features")
#ifdef V8_INTL_SUPPORT #ifdef V8_INTL_SUPPORT
#define HARMONY_SHIPPING(V) \ #define HARMONY_SHIPPING(V) \
HARMONY_SHIPPING_BASE(V) \ HARMONY_SHIPPING_BASE(V) \
V(harmony_intl_dateformat_day_period, \
"Add dayPeriod option to DateTimeFormat") \
V(harmony_intl_displaynames_v2, "Intl.DisplayNames v2") \ V(harmony_intl_displaynames_v2, "Intl.DisplayNames v2") \
V(harmony_intl_more_timezone, \ V(harmony_intl_more_timezone, \
"Extend Intl.DateTimeFormat timeZoneName Option") "Extend Intl.DateTimeFormat timeZoneName Option")
......
...@@ -4381,7 +4381,6 @@ EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_error_cause) ...@@ -4381,7 +4381,6 @@ EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_error_cause)
#ifdef V8_INTL_SUPPORT #ifdef V8_INTL_SUPPORT
EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_intl_best_fit_matcher) EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_intl_best_fit_matcher)
EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_intl_displaynames_v2) EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_intl_displaynames_v2)
EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_intl_dateformat_day_period)
EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_intl_more_timezone) EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_intl_more_timezone)
#endif // V8_INTL_SUPPORT #endif // V8_INTL_SUPPORT
......
...@@ -145,16 +145,14 @@ static std::vector<PatternItem> BuildPatternItems() { ...@@ -145,16 +145,14 @@ static std::vector<PatternItem> BuildPatternItems() {
kNarrowLongShort2DigitNumeric)); kNarrowLongShort2DigitNumeric));
items.push_back(PatternItem("day", {{"dd", "2-digit"}, {"d", "numeric"}}, items.push_back(PatternItem("day", {{"dd", "2-digit"}, {"d", "numeric"}},
k2DigitNumeric)); k2DigitNumeric));
if (FLAG_harmony_intl_dateformat_day_period) { items.push_back(PatternItem("dayPeriod",
items.push_back(PatternItem("dayPeriod", {{"BBBBB", "narrow"},
{{"BBBBB", "narrow"}, {"bbbbb", "narrow"},
{"bbbbb", "narrow"}, {"BBBB", "long"},
{"BBBB", "long"}, {"bbbb", "long"},
{"bbbb", "long"}, {"B", "short"},
{"B", "short"}, {"b", "short"}},
{"b", "short"}}, kNarrowLongShort));
kNarrowLongShort));
}
items.push_back(PatternItem("hour", items.push_back(PatternItem("hour",
{{"HH", "2-digit"}, {{"HH", "2-digit"},
{"H", "numeric"}, {"H", "numeric"},
...@@ -929,9 +927,7 @@ MaybeHandle<JSObject> JSDateTimeFormat::ToDateTimeOptions( ...@@ -929,9 +927,7 @@ MaybeHandle<JSObject> JSDateTimeFormat::ToDateTimeOptions(
// a. For each of the property names "dayPeriod", "hour", "minute", // a. For each of the property names "dayPeriod", "hour", "minute",
// "second", "fractionalSecondDigits", do // "second", "fractionalSecondDigits", do
std::vector<Handle<String>> list; std::vector<Handle<String>> list;
if (FLAG_harmony_intl_dateformat_day_period) { list.push_back(factory->dayPeriod_string());
list.push_back(factory->dayPeriod_string());
}
list.push_back(factory->hour_string()); list.push_back(factory->hour_string());
list.push_back(factory->minute_string()); list.push_back(factory->minute_string());
list.push_back(factory->second_string()); list.push_back(factory->second_string());
......
...@@ -44,7 +44,6 @@ from testrunner.outproc import test262 ...@@ -44,7 +44,6 @@ from testrunner.outproc import test262
# TODO(littledan): move the flag mapping into the status file # TODO(littledan): move the flag mapping into the status file
FEATURE_FLAGS = { FEATURE_FLAGS = {
'Intl.DateTimeFormat-dayPeriod': '--harmony-intl-dateformat-day-period',
'Intl.Locale-info': '--harmony_intl_locale_info', 'Intl.Locale-info': '--harmony_intl_locale_info',
'Intl.DateTimeFormat-extend-timezonename': '--harmony_intl_more_timezone', 'Intl.DateTimeFormat-extend-timezonename': '--harmony_intl_more_timezone',
'Intl.DisplayNames-v2': '--harmony_intl_displaynames_v2', 'Intl.DisplayNames-v2': '--harmony_intl_displaynames_v2',
......
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