mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 990290 - Remove JS_GetObjectId. r=terrence
This commit is contained in:
parent
91739ca9b3
commit
60b28294e0
@ -2393,24 +2393,6 @@ JS_GetConstructor(JSContext *cx, HandleObject proto)
|
||||
return &cval.toObject();
|
||||
}
|
||||
|
||||
JS_PUBLIC_API(bool)
|
||||
JS_GetObjectId(JSContext *cx, HandleObject obj, MutableHandleId idp)
|
||||
{
|
||||
AssertHeapIsIdle(cx);
|
||||
assertSameCompartment(cx, obj);
|
||||
|
||||
#ifdef JSGC_GENERATIONAL
|
||||
// Ensure that the object is tenured before returning it.
|
||||
if (IsInsideNursery(cx->runtime(), obj)) {
|
||||
MinorGC(cx, JS::gcreason::EVICT_NURSERY);
|
||||
MOZ_ASSERT(!IsInsideNursery(cx->runtime(), obj));
|
||||
}
|
||||
#endif
|
||||
|
||||
idp.set(OBJECT_TO_JSID(obj));
|
||||
return true;
|
||||
}
|
||||
|
||||
namespace {
|
||||
|
||||
class AutoCompartmentRooter : private JS::CustomAutoRooter
|
||||
|
@ -2528,14 +2528,6 @@ JS_SetParent(JSContext *cx, JS::HandleObject obj, JS::HandleObject parent);
|
||||
extern JS_PUBLIC_API(JSObject *)
|
||||
JS_GetConstructor(JSContext *cx, JS::Handle<JSObject*> proto);
|
||||
|
||||
/*
|
||||
* Get a unique identifier for obj, good for the lifetime of obj (even if it
|
||||
* is moved by a copying GC). Return false on failure (likely out of memory),
|
||||
* and true with *idp containing the unique id on success.
|
||||
*/
|
||||
extern JS_PUBLIC_API(bool)
|
||||
JS_GetObjectId(JSContext *cx, JS::HandleObject obj, JS::MutableHandleId idp);
|
||||
|
||||
namespace JS {
|
||||
|
||||
enum ZoneSpecifier {
|
||||
|
Loading…
Reference in New Issue
Block a user