5 #ifndef V8_INTL_SUPPORT 6 #error Internationalization is expected to be enabled. 7 #endif // V8_INTL_SUPPORT 9 #ifndef V8_OBJECTS_JS_LIST_FORMAT_INL_H_ 10 #define V8_OBJECTS_JS_LIST_FORMAT_INL_H_ 12 #include "src/objects-inl.h" 13 #include "src/objects/js-list-format.h" 16 #include "src/objects/object-macros.h" 22 ACCESSORS2(JSListFormat, locale, String, kLocaleOffset)
23 ACCESSORS(JSListFormat, icu_formatter, Managed<icu::ListFormatter>,
25 SMI_ACCESSORS(JSListFormat, flags, kFlagsOffset)
27 inline void JSListFormat::set_style(Style style) {
28 DCHECK_GT(Style::COUNT, style);
30 hints = StyleBits::update(hints, style);
34 inline JSListFormat::Style JSListFormat::style()
const {
35 return StyleBits::decode(flags());
38 inline void JSListFormat::set_type(
Type type) {
39 DCHECK_GT(Type::COUNT, type);
41 hints = TypeBits::update(hints, type);
45 inline JSListFormat::Type JSListFormat::type()
const {
46 return TypeBits::decode(flags());
49 CAST_ACCESSOR(JSListFormat);
54 #include "src/objects/object-macros-undef.h" 56 #endif // V8_OBJECTS_JS_LIST_FORMAT_INL_H_