v8 11.3.244 (node 20.3.0)
V8 is Google's open source JavaScript engine
Loading...
Searching...
No Matches
v8-embedder-heap.h
Go to the documentation of this file.
1// Copyright 2021 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 INCLUDE_V8_EMBEDDER_HEAP_H_
6#define INCLUDE_V8_EMBEDDER_HEAP_H_
7
8#include "v8-traced-handle.h" // NOLINT(build/include_directory)
9#include "v8config.h" // NOLINT(build/include_directory)
10
11namespace v8 {
12
13class Isolate;
14class Value;
15
20 public:
21 virtual ~EmbedderRootsHandler() = default;
22
38 virtual bool IsRoot(const v8::TracedReference<v8::Value>& handle) = 0;
39
49 virtual void ResetRoot(const v8::TracedReference<v8::Value>& handle) = 0;
50};
51
52} // namespace v8
53
54#endif // INCLUDE_V8_EMBEDDER_HEAP_H_
virtual ~EmbedderRootsHandler()=default
virtual bool IsRoot(const v8::TracedReference< v8::Value > &handle)=0
virtual void ResetRoot(const v8::TracedReference< v8::Value > &handle)=0
#define V8_EXPORT
Definition v8config.h:719