michael@0: /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- michael@0: * vim: set ts=8 sts=4 et sw=4 tw=99: michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef builtin_Object_h michael@0: #define builtin_Object_h michael@0: michael@0: #include "jsapi.h" michael@0: michael@0: namespace JS { class Value; } michael@0: michael@0: namespace js { michael@0: michael@0: extern const JSFunctionSpec object_methods[]; michael@0: extern const JSFunctionSpec object_static_methods[]; michael@0: michael@0: // Object constructor native. Exposed only so the JIT can know its address. michael@0: bool michael@0: obj_construct(JSContext *cx, unsigned argc, JS::Value *vp); michael@0: michael@0: #if JS_HAS_TOSOURCE michael@0: // Object.prototype.toSource. Function.prototype.toSource and uneval use this. michael@0: JSString * michael@0: ObjectToSource(JSContext *cx, JS::HandleObject obj); michael@0: #endif // JS_HAS_TOSOURCE michael@0: michael@0: extern bool michael@0: WatchHandler(JSContext *cx, JSObject *obj, jsid id, JS::Value old, michael@0: JS::Value *nvp, void *closure); michael@0: michael@0: } /* namespace js */ michael@0: michael@0: #endif /* builtin_Object_h */