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/. */
8 * Shadow definition of |js::BaseShape| and |js::Shape| innards. Do not use
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
22 class JS_PUBLIC_API JSObject
;
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
;
46 #endif // js_shadow_Shape_h