Commit bb8b2b9b authored by adamk's avatar adamk Committed by Commit bot

Avoid duplication of HARMONY_STAGED flags due to no-i18n build

Instead of having two lists of harmony flags, one with i18n and
one without, use a bit more macro programming.

Review-Url: https://codereview.chromium.org/2001753003
Cr-Commit-Position: refs/heads/master@{#36450}
parent c1f1e1ab
......@@ -206,25 +206,21 @@ DEFINE_IMPLICATION(es_staging, move_object_start)
V(harmony_async_await, "harmony async-await")
// Features that are complete (but still behind --harmony/es-staging flag).
#ifdef V8_I18N_SUPPORT
#define HARMONY_STAGED(V) \
#define HARMONY_STAGED_BASE(V) \
V(harmony_regexp_lookbehind, "harmony regexp lookbehind") \
V(harmony_tailcalls, "harmony tail calls") \
V(harmony_explicit_tailcalls, "harmony explicit tail calls") \
V(harmony_object_values_entries, "harmony Object.values / Object.entries") \
V(harmony_object_own_property_descriptors, \
"harmony Object.getOwnPropertyDescriptors()") \
V(harmony_string_padding, "harmony String-padding methods") \
V(harmony_string_padding, "harmony String-padding methods")
#ifdef V8_I18N_SUPPORT
#define HARMONY_STAGED(V) \
HARMONY_STAGED_BASE(V) \
V(icu_case_mapping, "case mapping with ICU rather than Unibrow")
#else
#define HARMONY_STAGED(V) \
V(harmony_regexp_lookbehind, "harmony regexp lookbehind") \
V(harmony_tailcalls, "harmony tail calls") \
V(harmony_explicit_tailcalls, "harmony explicit tail calls") \
V(harmony_object_values_entries, "harmony Object.values / Object.entries") \
V(harmony_object_own_property_descriptors, \
"harmony Object.getOwnPropertyDescriptors()") \
V(harmony_string_padding, "harmony String-padding methods")
#define HARMONY_STAGED(V) HARMONY_STAGED_BASE(V)
#endif
// Features that are shipping (turned on by default, but internal flag remains).
......
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