[gjs/mozjs78: 21/23] Refactor 'js::gc::detail::GetGCThingZone' - Is now 'js::gc::detail::GetTenuredGCThingZone'
- From: Evan Welsh <ewlsh src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/mozjs78: 21/23] Refactor 'js::gc::detail::GetGCThingZone' - Is now 'js::gc::detail::GetTenuredGCThingZone'
- Date: Sun, 5 Jul 2020 03:41:15 +0000 (UTC)
commit 39ed882b962544e8e5c548ef83718410c7886eba
Author: Evan Welsh <noreply evanwelsh com>
Date: Sat Jul 4 22:29:45 2020 -0500
Refactor 'js::gc::detail::GetGCThingZone'
- Is now 'js::gc::detail::GetTenuredGCThingZone'
gjs/jsapi-util-root.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gjs/jsapi-util-root.h b/gjs/jsapi-util-root.h
index b06d83ee..09f48b0c 100644
--- a/gjs/jsapi-util-root.h
+++ b/gjs/jsapi-util-root.h
@@ -94,7 +94,7 @@ struct GjsHeapOperation<JSObject *> {
static void expose_to_js(JS::Heap<JSObject *>& thing) {
JSObject *obj = thing.unbarrieredGet();
/* If the object has been swept already, then the zone is nullptr */
- if (!obj || !js::gc::detail::GetGCThingZone(uintptr_t(obj)))
+ if (!obj || !js::gc::detail::GetTenuredGCThingZone(uintptr_t(obj)))
return;
if (!JS::RuntimeHeapIsCollecting())
JS::ExposeObjectToActiveJS(obj);
@@ -105,7 +105,7 @@ template <>
struct GjsHeapOperation<JSFunction*> {
static void expose_to_js(const JS::Heap<JSFunction*>& thing) {
JSFunction* func = thing.unbarrieredGet();
- if (!func || !js::gc::detail::GetGCThingZone(uintptr_t(func)))
+ if (!func || !js::gc::detail::GetTenuredGCThingZone(uintptr_t(func)))
return;
if (!JS::RuntimeHeapIsCollecting())
js::gc::ExposeGCThingToActiveJS(JS::GCCellPtr(func));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]