v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
primitive-heap-object.h
Go to the documentation of this file.
1
// Copyright 2019 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_PRIMITIVE_HEAP_OBJECT_H_
6
#define V8_OBJECTS_PRIMITIVE_HEAP_OBJECT_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
// An abstract superclass for classes representing JavaScript primitive values
17
// other than Smi. It doesn't carry any functionality but allows primitive
18
// classes to be identified in the type system.
19
V8_OBJECT
class
PrimitiveHeapObject
:
public
HeapObjectLayout
{
20
public
:
21
DECL_VERIFIER
(
PrimitiveHeapObject
)
22
}
V8_OBJECT_END
;
23
24
static_assert
(
sizeof
(
PrimitiveHeapObject
) ==
sizeof
(
HeapObjectLayout
));
25
static_assert
(
is_subtype_v<PrimitiveHeapObject, HeapObject>
);
26
27
}
// namespace internal
28
}
// namespace v8
29
30
#include "
src/objects/object-macros-undef.h
"
31
32
#endif
// V8_OBJECTS_PRIMITIVE_HEAP_OBJECT_H_
v8::internal::HeapObjectLayout
Definition
heap-object.h:31
v8::internal::PrimitiveHeapObject
Definition
primitive-heap-object.h:19
heap-object.h
v8::internal::internal
internal
Definition
wasm-objects-inl.h:458
v8::internal::is_subtype_v
static constexpr bool is_subtype_v
Definition
tagged.h:121
v8::internal::V8_OBJECT_END
v8::internal::LoadHandler V8_OBJECT_END
v8
Definition
api-arguments-inl.h:19
object-macros-undef.h
object-macros.h
DECL_VERIFIER
#define DECL_VERIFIER(Name)
Definition
object-macros.h:962
V8_OBJECT
#define V8_OBJECT
Definition
object-macros.h:49
src
objects
primitive-heap-object.h
Generated on Sun Apr 6 2025 21:08:56 for v8 by
1.12.0