#ifndef V8_OBJECTS_JS_PLURAL_RULES_INL_H_
#define V8_OBJECTS_JS_PLURAL_RULES_INL_H_
#ifndef V8_INTL_SUPPORT
#error Internationalization is expected to be enabled.
#endif
#include "src/objects/js-plural-rules.h"
#include "src/api/api-inl.h"
#include "src/objects/objects-inl.h"
#include "src/objects/object-macros.h"
namespace v8 {
namespace internal {
#include "torque-generated/src/objects/js-plural-rules-tq-inl.inc"
TQ_OBJECT_CONSTRUCTORS_IMPL(JSPluralRules)
ACCESSORS(JSPluralRules, icu_plural_rules, Tagged<Managed<icu::PluralRules>>,
kIcuPluralRulesOffset)
ACCESSORS(JSPluralRules, icu_number_formatter,
Tagged<Managed<icu::number::LocalizedNumberFormatter>>,
kIcuNumberFormatterOffset)
inline void JSPluralRules::set_type(Type type) {
DCHECK(TypeBit::is_valid(type));
int hints = flags();
hints = TypeBit::update(hints, type);
set_flags(hints);
}
inline JSPluralRules::Type JSPluralRules::type() const {
return TypeBit::decode(flags());
}
}
}
#include "src/objects/object-macros-undef.h"
#endif