summaryrefslogtreecommitdiff
path: root/deps/v8/src/objects/js-relative-time-format.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/objects/js-relative-time-format.h')
-rw-r--r--deps/v8/src/objects/js-relative-time-format.h31
1 files changed, 4 insertions, 27 deletions
diff --git a/deps/v8/src/objects/js-relative-time-format.h b/deps/v8/src/objects/js-relative-time-format.h
index 99d09e5c3c..87aac9f060 100644
--- a/deps/v8/src/objects/js-relative-time-format.h
+++ b/deps/v8/src/objects/js-relative-time-format.h
@@ -40,7 +40,6 @@ class JSRelativeTimeFormat : public JSObject {
V8_WARN_UNUSED_RESULT static Handle<JSObject> ResolvedOptions(
Isolate* isolate, Handle<JSRelativeTimeFormat> format_holder);
- Handle<String> StyleAsString() const;
Handle<String> NumericAsString() const;
// ecma402/#sec-Intl.RelativeTimeFormat.prototype.format
@@ -63,18 +62,6 @@ class JSRelativeTimeFormat : public JSObject {
DECL_ACCESSORS(icu_formatter, Managed<icu::RelativeDateTimeFormatter>)
- // Style: identifying the relative time format style used.
- //
- // ecma402/#sec-properties-of-intl-relativetimeformat-instances
-
- enum class Style {
- LONG, // Everything spelled out.
- SHORT, // Abbreviations used when possible.
- NARROW // Use the shortest possible form.
- };
- inline void set_style(Style style);
- inline Style style() const;
-
// Numeric: identifying whether numerical descriptions are always used, or
// used only when no more specific version is available (e.g., "1 day ago" vs
// "yesterday").
@@ -88,18 +75,11 @@ class JSRelativeTimeFormat : public JSObject {
inline void set_numeric(Numeric numeric);
inline Numeric numeric() const;
-// Bit positions in |flags|.
-#define FLAGS_BIT_FIELDS(V, _) \
- V(StyleBits, Style, 2, _) \
- V(NumericBits, Numeric, 1, _)
- DEFINE_BIT_FIELDS(FLAGS_BIT_FIELDS)
-#undef FLAGS_BIT_FIELDS
+ // Bit positions in |flags|.
+ DEFINE_TORQUE_GENERATED_JS_RELATIVE_TIME_FORMAT_FLAGS()
- STATIC_ASSERT(Style::LONG <= StyleBits::kMax);
- STATIC_ASSERT(Style::SHORT <= StyleBits::kMax);
- STATIC_ASSERT(Style::NARROW <= StyleBits::kMax);
- STATIC_ASSERT(Numeric::AUTO <= NumericBits::kMax);
- STATIC_ASSERT(Numeric::ALWAYS <= NumericBits::kMax);
+ STATIC_ASSERT(Numeric::AUTO <= NumericBit::kMax);
+ STATIC_ASSERT(Numeric::ALWAYS <= NumericBit::kMax);
// [flags] Bit field containing various flags about the function.
DECL_INT_ACCESSORS(flags)
@@ -112,9 +92,6 @@ class JSRelativeTimeFormat : public JSObject {
TORQUE_GENERATED_JS_RELATIVE_TIME_FORMAT_FIELDS)
private:
- static Style getStyle(const char* str);
- static Numeric getNumeric(const char* str);
-
OBJECT_CONSTRUCTORS(JSRelativeTimeFormat, JSObject);
};