v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
js-list-format-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_LIST_FORMAT_INL_H_
6
#define V8_OBJECTS_JS_LIST_FORMAT_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-list-format.h
"
13
// Include the non-inl header before the rest of the headers.
14
15
#include "
src/objects/objects-inl.h
"
16
17
// Has to be the last include (doesn't have include guards):
18
#include "
src/objects/object-macros.h
"
19
20
namespace
v8
{
21
namespace
internal
{
22
23
#include "torque-generated/src/objects/js-list-format-tq-inl.inc"
24
25
TQ_OBJECT_CONSTRUCTORS_IMPL
(JSListFormat)
26
27
// Base list format accessors.
28
ACCESSORS
(
JSListFormat
, icu_formatter,
Tagged
<
Managed
<icu::ListFormatter>>,
29
kIcuFormatterOffset)
30
31
inline
void
JSListFormat
::set_style(Style
style
) {
32
DCHECK
(StyleBits::is_valid(
style
));
33
int
hints =
flags
();
34
hints = StyleBits::update(hints,
style
);
35
set_flags(hints);
36
}
37
38
inline
JSListFormat::Style
JSListFormat::style
()
const
{
39
return
StyleBits::decode(
flags
());
40
}
41
42
inline
void
JSListFormat::set_type
(
Type
type) {
43
DCHECK
(TypeBits::is_valid(type));
44
int
hints =
flags
();
45
hints = TypeBits::update(hints, type);
46
set_flags(hints);
47
}
48
49
inline
JSListFormat::Type
JSListFormat::type
()
const
{
50
return
TypeBits::decode(
flags
());
51
}
52
53
}
// namespace internal
54
}
// namespace v8
55
56
#include "
src/objects/object-macros-undef.h
"
57
58
#endif
// V8_OBJECTS_JS_LIST_FORMAT_INL_H_
v8::internal::JSListFormat
Definition
js-list-format.h:35
v8::internal::JSListFormat::style
Style style() const
Definition
js-list-format-inl.h:38
v8::internal::JSListFormat::Style
Style
Definition
js-list-format.h:68
v8::internal::JSListFormat::set_type
void set_type(Type type)
Definition
js-list-format-inl.h:42
v8::internal::JSListFormat::Type
Type
Definition
js-list-format.h:79
v8::internal::JSListFormat::type
Type type() const
Definition
js-list-format-inl.h:49
v8::internal::Managed
Definition
wasm-objects.h:67
v8::internal::Tagged
Definition
waiter-queue-node.h:21
style
JSDurationFormat::FieldStyle style
Definition
js-duration-format.cc:58
js-list-format.h
v8::internal::internal
internal
Definition
wasm-objects-inl.h:458
v8::internal::flags
Flag flags[]
Definition
flags.cc:3797
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-list-format-inl.h
Generated on Sun Apr 6 2025 21:08:55 for v8 by
1.12.0