v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
hole-inl.h
Go to the documentation of this file.
1
// Copyright 2023 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_HOLE_INL_H_
6
#define V8_OBJECTS_HOLE_INL_H_
7
8
#include "
src/objects/hole.h
"
9
// Include the non-inl header before the rest of the headers.
10
11
#include "
src/handles/handles.h
"
12
#include "
src/heap/heap-write-barrier-inl.h
"
13
#include "
src/objects/heap-number-inl.h
"
14
#include "
src/objects/objects-inl.h
"
15
#include "
src/objects/smi-inl.h
"
16
#include "
src/objects/tagged-field-inl.h
"
17
18
// Has to be the last include (doesn't have include guards):
19
#include "
src/objects/object-macros.h
"
20
21
namespace
v8
{
22
namespace
internal
{
23
24
OBJECT_CONSTRUCTORS_IMPL
(Hole, HeapObject)
25
26
void
Hole
::set_raw_numeric_value(uint64_t bits) {
27
base::WriteUnalignedValue<uint64_t>
(field_address(kRawNumericValueOffset),
28
bits);
29
}
30
31
void
Hole::Initialize
(
Isolate
* isolate,
DirectHandle<Hole>
hole,
32
DirectHandle<HeapNumber>
numeric_value) {
33
hole->set_raw_numeric_value(numeric_value->value_as_bits());
34
}
35
36
}
// namespace internal
37
}
// namespace v8
38
39
#include "
src/objects/object-macros-undef.h
"
40
41
#endif
// V8_OBJECTS_HOLE_INL_H_
v8::internal::DirectHandle
Definition
handles.h:659
v8::internal::Hole
Definition
hole.h:19
v8::internal::Hole::Initialize
static void Initialize(Isolate *isolate, DirectHandle< Hole > hole, DirectHandle< HeapNumber > numeric_value)
Definition
hole-inl.h:31
v8::internal::Isolate
Definition
isolate.h:586
handles.h
heap-number-inl.h
heap-write-barrier-inl.h
hole.h
v8::base::WriteUnalignedValue
static void WriteUnalignedValue(Address p, V value)
Definition
memory.h:41
v8::internal::internal
internal
Definition
wasm-objects-inl.h:458
v8
Definition
api-arguments-inl.h:19
object-macros-undef.h
object-macros.h
OBJECT_CONSTRUCTORS_IMPL
#define OBJECT_CONSTRUCTORS_IMPL(Type, Super)
Definition
object-macros.h:83
objects-inl.h
smi-inl.h
tagged-field-inl.h
src
objects
hole-inl.h
Generated on Sun Apr 6 2025 21:08:55 for v8 by
1.12.0