v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
js-shared-array.h
Go to the documentation of this file.
1
// Copyright 2022 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_SHARED_ARRAY_H_
6
#define V8_OBJECTS_JS_SHARED_ARRAY_H_
7
8
#include "
src/objects/js-objects.h
"
9
#include "
src/objects/js-struct.h
"
10
11
// Has to be the last include (doesn't have include guards):
12
#include "
src/objects/object-macros.h
"
13
14
namespace
v8
{
15
namespace
internal
{
16
17
#include "torque-generated/src/objects/js-shared-array-tq.inc"
18
19
class
JSSharedArray
20
:
public
TorqueGeneratedJSSharedArray<JSSharedArray,
21
AlwaysSharedSpaceJSObject> {
22
public
:
23
DECL_PRINTER
(
JSSharedArray
)
24
EXPORT_DECL_VERIFIER
(
JSSharedArray
)
25
26
// In-object fields.
27
enum
{
28
// The length field is constant and is equal to elements().length().
29
//
30
// TODO(v8:12547): We can save the space for this field by making it
31
// possible to put AccessorInfo in shared or RO space.
32
kLengthFieldIndex
= 0,
33
kInObjectFieldCount
,
34
};
35
static
constexpr
int
kSize
=
36
kHeaderSize + (
kTaggedSize
*
kInObjectFieldCount
);
37
38
class
BodyDescriptor;
39
40
TQ_OBJECT_CONSTRUCTORS
(
JSSharedArray
)
41
};
42
43
}
// namespace internal
44
}
// namespace v8
45
46
#include "
src/objects/object-macros-undef.h
"
47
48
#endif
// V8_OBJECTS_JS_SHARED_ARRAY_H_
v8::internal::JSSharedArray
Definition
js-shared-array.h:21
v8::internal::JSSharedArray::kLengthFieldIndex
@ kLengthFieldIndex
Definition
js-shared-array.h:32
v8::internal::JSSharedArray::kInObjectFieldCount
@ kInObjectFieldCount
Definition
js-shared-array.h:33
v8::internal::JSSharedArray::kSize
static constexpr int kSize
Definition
js-shared-array.h:35
js-objects.h
js-struct.h
v8::internal::kTaggedSize
constexpr int kTaggedSize
Definition
globals.h:542
v8::internal::internal
internal
Definition
wasm-objects-inl.h:458
v8
Definition
api-arguments-inl.h:19
object-macros-undef.h
object-macros.h
DECL_PRINTER
#define DECL_PRINTER(Name)
Definition
object-macros.h:949
TQ_OBJECT_CONSTRUCTORS
#define TQ_OBJECT_CONSTRUCTORS(Type)
Definition
object-macros.h:984
EXPORT_DECL_VERIFIER
#define EXPORT_DECL_VERIFIER(Name)
Definition
object-macros.h:963
src
objects
js-shared-array.h
Generated on Sun Apr 6 2025 21:08:55 for v8 by
1.12.0