[gjs/mozjs78: 21/23] Refactor 'js::gc::detail::GetGCThingZone' - Is now 'js::gc::detail::GetTenuredGCThingZone'



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]