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
10
11// Has to be the last include (doesn't have include guards):
13
14namespace v8 {
15namespace internal {
16
17#include "torque-generated/src/objects/js-shared-array-tq.inc"
18
20 : public TorqueGeneratedJSSharedArray<JSSharedArray,
21 AlwaysSharedSpaceJSObject> {
22 public:
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.
34 };
35 static constexpr int kSize =
36 kHeaderSize + (kTaggedSize * kInObjectFieldCount);
37
38 class BodyDescriptor;
39
41};
42
43} // namespace internal
44} // namespace v8
45
47
48#endif // V8_OBJECTS_JS_SHARED_ARRAY_H_
static constexpr int kSize
constexpr int kTaggedSize
Definition globals.h:542
#define DECL_PRINTER(Name)
#define TQ_OBJECT_CONSTRUCTORS(Type)
#define EXPORT_DECL_VERIFIER(Name)