v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
maybe-object.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_MAYBE_OBJECT_H_
6#define V8_OBJECTS_MAYBE_OBJECT_H_
7
8#include <type_traits>
9
11#include "src/objects/tagged.h"
12
13namespace v8 {
14namespace internal {
15
16inline Tagged<ClearedWeakValue> ClearedValue(PtrComprCageBase cage_base);
17inline Tagged<ClearedWeakValue> ClearedTrustedValue();
18
19template <typename THeapObjectSlot>
20inline void UpdateHeapObjectReferenceSlot(THeapObjectSlot slot,
21 Tagged<HeapObject> value);
22
23} // namespace internal
24} // namespace v8
25
26#endif // V8_OBJECTS_MAYBE_OBJECT_H_
kInterpreterTrampolineOffset Tagged< HeapObject >
Tagged< ClearedWeakValue > ClearedValue(PtrComprCageBase cage_base)
Tagged< ClearedWeakValue > ClearedTrustedValue()
void UpdateHeapObjectReferenceSlot(THeapObjectSlot slot, Tagged< HeapObject > value)