RecordTupleShared.h (1102B)
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/. */ 6 7 #ifndef vm_RecordTupleShared_h 8 #define vm_RecordTupleShared_h 9 10 #include "NamespaceImports.h" 11 12 #include "js/ErrorReport.h" 13 #include "js/TypeDecls.h" 14 15 namespace js { 16 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); 25 26 namespace gc { 27 bool MaybeForwardedIsExtendedPrimitive(const JSObject& obj); 28 } // namespace gc 29 30 } // namespace js 31 32 #endif