• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2022 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_STRUCT_H_
6 #define V8_OBJECTS_JS_STRUCT_H_
7 
8 #include "src/objects/js-objects.h"
9 
10 // Has to be the last include (doesn't have include guards):
11 #include "src/objects/object-macros.h"
12 
13 namespace v8 {
14 namespace internal {
15 
16 #include "torque-generated/src/objects/js-struct-tq.inc"
17 
18 class JSSharedStruct
19     : public TorqueGeneratedJSSharedStruct<JSSharedStruct, JSObject> {
20  public:
21   DECL_CAST(JSSharedStruct)
22   DECL_PRINTER(JSSharedStruct)
23   EXPORT_DECL_VERIFIER(JSSharedStruct)
24 
25   class BodyDescriptor;
26 
27   TQ_OBJECT_CONSTRUCTORS(JSSharedStruct)
28 };
29 
30 }  // namespace internal
31 }  // namespace v8
32 
33 #include "src/objects/object-macros-undef.h"
34 
35 #endif  // V8_OBJECTS_JS_STRUCT_H_
36