[SM91] Update to Spidermonkey 91.1.3 APIs
[0ad.git] / libraries / source / spidermonkey / include-win32-debug / js / shadow / Shape.h
blob00a9331b95fae35e97ce3f5153b052a4889eebe3
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 * vim: set ts=8 sts=2 et sw=2 tw=80:
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 /*
8 * Shadow definition of |js::BaseShape| and |js::Shape| innards. Do not use
9 * this directly!
12 #ifndef js_shadow_Shape_h
13 #define js_shadow_Shape_h
15 #include <stdint.h> // uint32_t
17 #include "jstypes.h" // JS_PUBLIC_API
19 #include "js/Id.h" // JS::PropertyKey
21 struct JSClass;
22 class JS_PUBLIC_API JSObject;
24 namespace JS {
26 namespace shadow {
28 struct BaseShape {
29 const JSClass* clasp;
30 JS::Realm* realm;
33 class Shape {
34 public:
35 shadow::BaseShape* base;
36 uint32_t immutableFlags;
38 static constexpr uint32_t FIXED_SLOTS_SHIFT = 5;
39 static constexpr uint32_t FIXED_SLOTS_MASK = 0x1f << FIXED_SLOTS_SHIFT;
42 } // namespace shadow
44 } // namespace JS
46 #endif // js_shadow_Shape_h