v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
js-plural-rules-inl.h
Go to the documentation of this file.
1
// Copyright 2018 the V8 project authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
#ifndef V8_OBJECTS_JS_PLURAL_RULES_INL_H_
6
#define V8_OBJECTS_JS_PLURAL_RULES_INL_H_
7
8
#ifndef V8_INTL_SUPPORT
9
#error Internationalization is expected to be enabled.
10
#endif
// V8_INTL_SUPPORT
11
12
#include "
src/objects/js-plural-rules.h
"
13
// Include the non-inl header before the rest of the headers.
14
15
#include "
src/api/api-inl.h
"
16
#include "
src/objects/objects-inl.h
"
17
18
// Has to be the last include (doesn't have include guards):
19
#include "
src/objects/object-macros.h
"
20
21
namespace
v8
{
22
namespace
internal
{
23
24
#include "torque-generated/src/objects/js-plural-rules-tq-inl.inc"
25
26
TQ_OBJECT_CONSTRUCTORS_IMPL
(JSPluralRules)
27
28
ACCESSORS
(
JSPluralRules
, icu_plural_rules,
Tagged
<
Managed
<icu::PluralRules>>,
29
kIcuPluralRulesOffset)
30
ACCESSORS
(
JSPluralRules
,
icu_number_formatter
,
31
Tagged
<
Managed
<icu::number::LocalizedNumberFormatter>>,
32
kIcuNumberFormatterOffset)
33
34
inline
void
JSPluralRules
::set_type(
Type
type) {
35
DCHECK
(TypeBit::is_valid(type));
36
int
hints =
flags
();
37
hints = TypeBit::update(hints, type);
38
set_flags(hints);
39
}
40
41
inline
JSPluralRules::Type
JSPluralRules::type
()
const
{
42
return
TypeBit::decode(
flags
());
43
}
44
45
}
// namespace internal
46
}
// namespace v8
47
48
#include "
src/objects/object-macros-undef.h
"
49
50
#endif
// V8_OBJECTS_JS_PLURAL_RULES_INL_H_
api-inl.h
v8::internal::JSPluralRules
Definition
js-plural-rules.h:39
v8::internal::JSPluralRules::Type
Type
Definition
js-plural-rules.h:60
v8::internal::JSPluralRules::type
Type type() const
Definition
js-plural-rules-inl.h:41
v8::internal::Managed
Definition
wasm-objects.h:67
v8::internal::Tagged
Definition
waiter-queue-node.h:21
js-plural-rules.h
v8::internal::internal
internal
Definition
wasm-objects-inl.h:458
v8::internal::flags
Flag flags[]
Definition
flags.cc:3797
v8::internal::icu_number_formatter
icu_number_formatter
Definition
js-plural-rules-inl.h:30
v8
Definition
api-arguments-inl.h:19
object-macros-undef.h
object-macros.h
ACCESSORS
#define ACCESSORS(holder, name, type, offset)
Definition
object-macros.h:279
TQ_OBJECT_CONSTRUCTORS_IMPL
#define TQ_OBJECT_CONSTRUCTORS_IMPL(Type)
Definition
object-macros.h:988
objects-inl.h
DCHECK
#define DCHECK(condition)
Definition
logging.h:482
src
objects
js-plural-rules-inl.h
Generated on Sun Apr 6 2025 21:08:55 for v8 by
1.12.0