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_OBJECTS_JS_SHADOW_REALMS_H_
6#define V8_OBJECTS_JS_SHADOW_REALMS_H_
7
8#include "src/objects/js-objects.h"
9#include "torque-generated/bit-fields.h"
10
11// Has to be the last include (doesn't have include guards):
12#include "src/objects/object-macros.h"
13
14namespace v8 {
15namespace internal {
16
17class NativeContext;
18
19#include "torque-generated/src/objects/js-shadow-realms-tq.inc"
20
21// ShadowRealm object from the JS ShadowRealm spec proposal:
22// https://github.com/tc39/proposal-shadowrealm
23class JSShadowRealm
24    : public TorqueGeneratedJSShadowRealm<JSShadowRealm, JSObject> {
25 public:
26  DECL_PRINTER(JSShadowRealm)
27  EXPORT_DECL_VERIFIER(JSShadowRealm)
28
29  class BodyDescriptor;
30
31  TQ_OBJECT_CONSTRUCTORS(JSShadowRealm)
32};
33
34}  // namespace internal
35}  // namespace v8
36
37#include "src/objects/object-macros-undef.h"
38
39#endif  // V8_OBJECTS_JS_SHADOW_REALMS_H_
40