[gjs/wip/ptomato/mozjs38: 19/32] js: Rename JS_CallHeapFooTracer()



commit 83d60a9748c33c14917e8f647c1622125274106e
Author: Philip Chimento <philip chimento gmail com>
Date:   Wed Jan 11 22:59:25 2017 -0800

    js: Rename JS_CallHeapFooTracer()
    
    The various flavours of JS_CallHeapFooTracer() are now called
    JS_CallFooTracer() in SpiderMonkey 38.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=777962

 gi/boxed.cpp          |    8 ++++----
 gi/fundamental.cpp    |    4 ++--
 gjs/context.cpp       |    2 +-
 gjs/coverage.cpp      |    2 +-
 gjs/jsapi-util-root.h |    4 ++--
 5 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/gi/boxed.cpp b/gi/boxed.cpp
index bf6e478..51150e1 100644
--- a/gi/boxed.cpp
+++ b/gi/boxed.cpp
@@ -898,10 +898,10 @@ boxed_trace(JSTracer *tracer,
     if (priv == NULL)
         return;
 
-    JS_CallHeapIdTracer(tracer, &priv->zero_args_constructor_name,
-                        "Boxed::zero_args_constructor_name");
-    JS_CallHeapIdTracer(tracer, &priv->default_constructor_name,
-                        "Boxed::default_constructor_name");
+    JS_CallIdTracer(tracer, &priv->zero_args_constructor_name,
+                    "Boxed::zero_args_constructor_name");
+    JS_CallIdTracer(tracer, &priv->default_constructor_name,
+                    "Boxed::default_constructor_name");
 }
 
 /* The bizarre thing about this vtable is that it applies to both
diff --git a/gi/fundamental.cpp b/gi/fundamental.cpp
index 4df78f4..d145197 100644
--- a/gi/fundamental.cpp
+++ b/gi/fundamental.cpp
@@ -529,8 +529,8 @@ fundamental_trace(JSTracer *tracer,
     if (priv == nullptr || !fundamental_is_prototype(priv))
         return;  /* Only prototypes need tracing */
 
-    JS_CallHeapIdTracer(tracer, &priv->constructor_name,
-                        "Fundamental::constructor_name");
+    JS_CallIdTracer(tracer, &priv->constructor_name,
+                    "Fundamental::constructor_name");
 }
 
 /* The bizarre thing about this vtable is that it applies to both
diff --git a/gjs/context.cpp b/gjs/context.cpp
index 1610b26..8dcb23f 100644
--- a/gjs/context.cpp
+++ b/gjs/context.cpp
@@ -381,7 +381,7 @@ static void
 gjs_context_tracer(JSTracer *trc, void *data)
 {
     GjsContext *gjs_context = reinterpret_cast<GjsContext *>(data);
-    JS_CallHeapObjectTracer(trc, &gjs_context->global, "GJS global object");
+    JS_CallObjectTracer(trc, &gjs_context->global, "GJS global object");
 }
 
 static void
diff --git a/gjs/coverage.cpp b/gjs/coverage.cpp
index f75a065..cee87ba 100644
--- a/gjs/coverage.cpp
+++ b/gjs/coverage.cpp
@@ -1498,7 +1498,7 @@ coverage_statistics_tracer(JSTracer *trc, void *data)
     GjsCoverage *coverage = (GjsCoverage *) data;
     GjsCoveragePrivate *priv = (GjsCoveragePrivate *) gjs_coverage_get_instance_private(coverage);
 
-    JS_CallHeapObjectTracer(trc, &priv->coverage_statistics, "coverage_statistics");
+    JS_CallObjectTracer(trc, &priv->coverage_statistics, "coverage_statistics");
 }
 
 /* This function is mainly used in the tests in order to fiddle with
diff --git a/gjs/jsapi-util-root.h b/gjs/jsapi-util-root.h
index dfa3226..f3cf196 100644
--- a/gjs/jsapi-util-root.h
+++ b/gjs/jsapi-util-root.h
@@ -80,7 +80,7 @@ struct GjsHeapOperation<JSObject *> {
           JS::Heap<JSObject *> *thing,
           const char           *name)
     {
-        JS_CallHeapObjectTracer(tracer, thing, name);
+        JS_CallObjectTracer(tracer, thing, name);
     }
 
     static bool
@@ -97,7 +97,7 @@ struct GjsHeapOperation<JS::Value> {
           JS::Heap<JS::Value> *thing,
           const char          *name)
     {
-        JS_CallHeapValueTracer(tracer, thing, name);
+        JS_CallValueTracer(tracer, thing, name);
     }
 };
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]