v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
cell.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_CELL_H_
6
#define V8_OBJECTS_CELL_H_
7
8
#include "
src/objects/heap-object.h
"
9
10
// Has to be the last include (doesn't have include guards):
11
#include "
src/objects/object-macros.h
"
12
13
namespace
v8
{
14
namespace
internal
{
15
16
#include "torque-generated/src/objects/cell-tq.inc"
17
18
class
Cell
:
public
TorqueGeneratedCell<Cell, HeapObject> {
19
public
:
20
inline
Address
ValueAddress
() {
return
address() + kValueOffset; }
21
22
using
TorqueGeneratedCell::value;
23
DECL_RELAXED_GETTER
(value,
Tagged<Object>
)
24
25
using
BodyDescriptor
=
FixedBodyDescriptor
<kValueOffset, kSize, kSize>;
26
27
TQ_OBJECT_CONSTRUCTORS
(
Cell
)
28
};
29
30
}
// namespace internal
31
}
// namespace v8
32
33
#include "src/objects/object-macros-undef.h"
34
35
#endif
// V8_OBJECTS_CELL_H_
v8::internal::Cell
Definition
cell.h:18
v8::internal::Cell::ValueAddress
Address ValueAddress()
Definition
cell.h:20
v8::internal::FixedBodyDescriptor
Definition
objects.h:861
v8::internal::Tagged
Definition
waiter-queue-node.h:21
heap-object.h
v8::internal::internal
internal
Definition
wasm-objects-inl.h:458
v8::internal::Address
Address
Definition
api-callbacks-inl.h:36
v8
Definition
api-arguments-inl.h:19
object-macros.h
DECL_RELAXED_GETTER
#define DECL_RELAXED_GETTER(name,...)
Definition
object-macros.h:194
TQ_OBJECT_CONSTRUCTORS
#define TQ_OBJECT_CONSTRUCTORS(Type)
Definition
object-macros.h:984
src
objects
cell.h
Generated on Sun Apr 6 2025 21:08:55 for v8 by
1.12.0