Bug 1842773 - Part 32: Allow constructing growable SharedArrayBuffers. r=sfink
[gecko.git] / js / src / vm / RecordTupleShared.h
blobc666738bb7e0e743377a8e6d37921609fe132cbf
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 #ifndef vm_RecordTupleShared_h
8 #define vm_RecordTupleShared_h
10 #include "NamespaceImports.h"
12 #include "js/ErrorReport.h"
13 #include "js/TypeDecls.h"
15 namespace js {
17 bool IsExtendedPrimitive(const JSObject& obj);
18 JSObject* CopyExtendedPrimitive(JSContext* cx, HandleObject extPrim);
19 bool CopyRecordTupleElement(JSContext* cx, HandleValue v,
20 MutableHandleValue out);
21 bool IsExtendedPrimitiveWrapper(const JSObject& obj);
22 bool ExtendedPrimitiveGetProperty(JSContext* cx, JS::HandleObject obj,
23 JS::HandleValue receiver, JS::HandleId id,
24 JS::MutableHandleValue vp);
26 namespace gc {
27 bool MaybeForwardedIsExtendedPrimitive(const JSObject& obj);
28 } // namespace gc
30 } // namespace js
32 #endif