5#ifndef V8_OBJECTS_JS_DURATION_FORMAT_INL_H_
6#define V8_OBJECTS_JS_DURATION_FORMAT_INL_H_
9#error Internationalization is expected to be enabled.
23#include "torque-generated/src/objects/js-duration-format-tq-inl.inc"
30#define IMPL_INLINE_SETTER_GETTER(T, n, B, f, M) \
31 inline void JSDurationFormat::set_##n(T value) { \
32 DCHECK(B::is_valid(value)); \
33 DCHECK_GE(T::M, value); \
34 set_##f(B::update(f(), value)); \
36 inline JSDurationFormat::T JSDurationFormat::n() const { \
37 return B::decode(f()); \
40#define IMPL_INLINE_DISPLAY_SETTER_GETTER(f, R) \
41 IMPL_INLINE_SETTER_GETTER(Display, f##_display, R##DisplayBit, \
42 display_flags, kAlways)
44#define IMPL_INLINE_FIELD_STYLE3_SETTER_GETTER(f, R) \
45 IMPL_INLINE_SETTER_GETTER(FieldStyle, f##_style, R##StyleBits, style_flags, \
48#define IMPL_INLINE_FIELD_STYLE4_SETTER_GETTER(f, R) \
49 IMPL_INLINE_SETTER_GETTER(FieldStyle, f##_style, R##StyleBits, style_flags, \
52#define IMPL_INLINE_FIELD_STYLE5_SETTER_GETTER(f, R) \
53 IMPL_INLINE_SETTER_GETTER(FieldStyle, f##_style, R##StyleBits, style_flags, \
82#undef IMPL_INLINE_SETTER_GETTER
83#undef IMPL_INLINE_DISPLAY_SETTER_GETTER
84#undef IMPL_INLINE_FIELD_STYLE3_SETTER_GETTER
85#undef IMPL_INLINE_FIELD_STYLE5_SETTER_GETTER
89 int hints = display_flags();
90 hints = FractionalDigitsBits::update(hints, digits);
91 set_display_flags(hints);
94 int32_t v = FractionalDigitsBits::decode(display_flags());
101 kIcuNumberFormatterOffset)
#define ACCESSORS(holder, name, type, offset)
#define TQ_OBJECT_CONSTRUCTORS_IMPL(Type)
#define DCHECK(condition)