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




commit fc557fd7f70f65f48e5a4fd06d68d8a81a536f1e
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 ca1f25cd..daceb60d 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]