v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
embedder-state.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 V8_EXECUTION_EMBEDDER_STATE_H_
6#define V8_EXECUTION_EMBEDDER_STATE_H_
7
10
11namespace v8 {
12
13enum class EmbedderStateTag : uint8_t;
14
15namespace internal {
17 public:
20
22
23 EmbedderStateTag GetState() const { return tag_; }
24
25 Address native_context_address() const { return native_context_address_; }
26
27 void OnMoveEvent(Address from, Address to);
28
29 private:
32 Address native_context_address_ = kNullAddress;
34};
35} // namespace internal
36
37} // namespace v8
38
39#endif // V8_EXECUTION_EMBEDDER_STATE_H_
Address native_context_address() const
EmbedderState * previous_embedder_state_
EmbedderStateTag GetState() const
#define V8_EXPORT_PRIVATE
Definition macros.h:460