[gjs/wip/ptomato/mozjs52: 11/38] js: JSCLASS_IMPLEMENTS_BARRIERS is now implicit



commit 74ea705db9483055cc8db50309d68169285d45c6
Author: Philip Chimento <philip chimento gmail com>
Date:   Sun Mar 19 05:10:08 2017 +0000

    js: JSCLASS_IMPLEMENTS_BARRIERS is now implicit
    
    In https://bugzilla.mozilla.org/show_bug.cgi?id=1088214 the
    JSCLASS_IMPLEMENTS_BARRIERS flag was removed, simply because it's now
    required for all JSClass implementations.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=784196

 gi/boxed.cpp       |    3 +--
 gi/function.cpp    |    3 +--
 gi/fundamental.cpp |    3 +--
 gi/gerror.cpp      |    3 +--
 gi/interface.cpp   |    3 +--
 gi/ns.cpp          |    3 +--
 gi/object.cpp      |    3 +--
 gi/param.cpp       |    3 +--
 gi/repo.cpp        |    3 +--
 gi/union.cpp       |    3 +--
 gjs/byteArray.cpp  |    3 +--
 gjs/global.cpp     |    3 +--
 gjs/importer.cpp   |    3 +--
 gjs/module.cpp     |    3 +--
 14 files changed, 14 insertions(+), 28 deletions(-)
---
diff --git a/gi/boxed.cpp b/gi/boxed.cpp
index 7ff0aa2..1a4fd77 100644
--- a/gi/boxed.cpp
+++ b/gi/boxed.cpp
@@ -922,8 +922,7 @@ boxed_trace(JSTracer *tracer,
 struct JSClass gjs_boxed_class = {
     "GObject_Boxed",
     JSCLASS_HAS_PRIVATE |
-    JSCLASS_HAS_RESERVED_SLOTS(1) |
-    JSCLASS_IMPLEMENTS_BARRIERS,
+    JSCLASS_HAS_RESERVED_SLOTS(1),
     NULL,  /* addProperty */
     NULL,  /* deleteProperty */
     NULL,  /* getProperty */
diff --git a/gi/function.cpp b/gi/function.cpp
index 94d9028..b70efae 100644
--- a/gi/function.cpp
+++ b/gi/function.cpp
@@ -1486,8 +1486,7 @@ function_to_string (JSContext *context,
 struct JSClass gjs_function_class = {
     "GIRepositoryFunction", /* means "new GIRepositoryFunction()" works */
     JSCLASS_HAS_PRIVATE |
-    JSCLASS_BACKGROUND_FINALIZE |
-    JSCLASS_IMPLEMENTS_BARRIERS,
+    JSCLASS_BACKGROUND_FINALIZE,
     NULL,  /* addProperty */
     NULL,  /* deleteProperty */
     NULL,  /* getProperty */
diff --git a/gi/fundamental.cpp b/gi/fundamental.cpp
index fec3d76..aba10f6 100644
--- a/gi/fundamental.cpp
+++ b/gi/fundamental.cpp
@@ -551,8 +551,7 @@ fundamental_trace(JSTracer *tracer,
  */
 struct JSClass gjs_fundamental_instance_class = {
     "GFundamental_Object",
-    JSCLASS_HAS_PRIVATE |
-    JSCLASS_IMPLEMENTS_BARRIERS,
+    JSCLASS_HAS_PRIVATE,
     NULL,  /* addProperty */
     NULL,  /* deleteProperty */
     NULL,  /* getProperty */
diff --git a/gi/gerror.cpp b/gi/gerror.cpp
index dae60df..e7cbdbf 100644
--- a/gi/gerror.cpp
+++ b/gi/gerror.cpp
@@ -270,8 +270,7 @@ error_constructor_value_of(JSContext *context,
 struct JSClass gjs_error_class = {
     "GLib_Error",
     JSCLASS_HAS_PRIVATE |
-    JSCLASS_BACKGROUND_FINALIZE |
-    JSCLASS_IMPLEMENTS_BARRIERS,
+    JSCLASS_BACKGROUND_FINALIZE,
     NULL,  /* addProperty */
     NULL,  /* deleteProperty */
     NULL,  /* getProperty */
diff --git a/gi/interface.cpp b/gi/interface.cpp
index 37a94bd..294bc0d 100644
--- a/gi/interface.cpp
+++ b/gi/interface.cpp
@@ -160,8 +160,7 @@ interface_resolve(JSContext       *context,
 struct JSClass gjs_interface_class = {
     "GObject_Interface",
     JSCLASS_HAS_PRIVATE |
-    JSCLASS_BACKGROUND_FINALIZE |
-    JSCLASS_IMPLEMENTS_BARRIERS,
+    JSCLASS_BACKGROUND_FINALIZE,
     NULL,  /* addProperty */
     NULL,  /* deleteProperty */
     NULL,  /* getProperty */
diff --git a/gi/ns.cpp b/gi/ns.cpp
index 994d204..66bd7d1 100644
--- a/gi/ns.cpp
+++ b/gi/ns.cpp
@@ -153,8 +153,7 @@ ns_finalize(JSFreeOp *fop,
  */
 struct JSClass gjs_ns_class = {
     "GIRepositoryNamespace",
-    JSCLASS_HAS_PRIVATE |
-    JSCLASS_IMPLEMENTS_BARRIERS,
+    JSCLASS_HAS_PRIVATE,
     NULL,  /* addProperty */
     NULL,  /* deleteProperty */
     NULL,  /* getProperty */
diff --git a/gi/object.cpp b/gi/object.cpp
index 850d060..ef7f44d 100644
--- a/gi/object.cpp
+++ b/gi/object.cpp
@@ -1796,8 +1796,7 @@ to_string_func(JSContext *context,
 
 struct JSClass gjs_object_instance_class = {
     "GObject_Object",
-    JSCLASS_HAS_PRIVATE |
-    JSCLASS_IMPLEMENTS_BARRIERS,
+    JSCLASS_HAS_PRIVATE,
     NULL,  /* addProperty */
     NULL,  /* deleteProperty */
     object_instance_get_prop,
diff --git a/gi/param.cpp b/gi/param.cpp
index 84192a3..a5af764 100644
--- a/gi/param.cpp
+++ b/gi/param.cpp
@@ -145,8 +145,7 @@ param_finalize(JSFreeOp *fop,
 struct JSClass gjs_param_class = {
     "GObject_ParamSpec",
     JSCLASS_HAS_PRIVATE |
-    JSCLASS_BACKGROUND_FINALIZE |
-    JSCLASS_IMPLEMENTS_BARRIERS,
+    JSCLASS_BACKGROUND_FINALIZE,
     NULL,  /* addProperty */
     NULL,  /* deleteProperty */
     NULL,  /* getProperty */
diff --git a/gi/repo.cpp b/gi/repo.cpp
index 214451d..ff5621e 100644
--- a/gi/repo.cpp
+++ b/gi/repo.cpp
@@ -218,8 +218,7 @@ repo_finalize(JSFreeOp *fop,
  */
 struct JSClass gjs_repo_class = {
     "GIRepository", /* means "new GIRepository()" works */
-    JSCLASS_HAS_PRIVATE |
-    JSCLASS_IMPLEMENTS_BARRIERS,
+    JSCLASS_HAS_PRIVATE,
     NULL,  /* addProperty */
     NULL,  /* deleteProperty */
     NULL,  /* getProperty */
diff --git a/gi/union.cpp b/gi/union.cpp
index b795df2..fc7a4ac 100644
--- a/gi/union.cpp
+++ b/gi/union.cpp
@@ -289,8 +289,7 @@ to_string_func(JSContext *context,
  */
 struct JSClass gjs_union_class = {
     "GObject_Union",
-    JSCLASS_HAS_PRIVATE |
-    JSCLASS_IMPLEMENTS_BARRIERS,
+    JSCLASS_HAS_PRIVATE,
     NULL,  /* addProperty */
     NULL,  /* deleteProperty */
     NULL,  /* getProperty */
diff --git a/gjs/byteArray.cpp b/gjs/byteArray.cpp
index 89211e0..6184fe4 100644
--- a/gjs/byteArray.cpp
+++ b/gjs/byteArray.cpp
@@ -58,8 +58,7 @@ static JSObject *gjs_byte_array_get_proto(JSContext *);
 struct JSClass gjs_byte_array_class = {
     "ByteArray",
     JSCLASS_HAS_PRIVATE |
-    JSCLASS_BACKGROUND_FINALIZE |
-    JSCLASS_IMPLEMENTS_BARRIERS,
+    JSCLASS_BACKGROUND_FINALIZE,
     NULL,  /* addProperty */
     NULL,  /* deleteProperty */
     (JSPropertyOp)byte_array_get_prop,
diff --git a/gjs/global.cpp b/gjs/global.cpp
index f91e449..248048f 100644
--- a/gjs/global.cpp
+++ b/gjs/global.cpp
@@ -174,8 +174,7 @@ gjs_printerr(JSContext *context,
 class GjsGlobal {
     static constexpr JSClass klass = {
         "GjsGlobal",
-        JSCLASS_GLOBAL_FLAGS_WITH_SLOTS(GJS_GLOBAL_SLOT_LAST) |
-        JSCLASS_IMPLEMENTS_BARRIERS,
+        JSCLASS_GLOBAL_FLAGS_WITH_SLOTS(GJS_GLOBAL_SLOT_LAST),
         nullptr,  /* addProperty */
         nullptr,  /* deleteProperty */
         nullptr,  /* getProperty */
diff --git a/gjs/importer.cpp b/gjs/importer.cpp
index 9f174a5..7fb7bac 100644
--- a/gjs/importer.cpp
+++ b/gjs/importer.cpp
@@ -834,8 +834,7 @@ importer_finalize(js::FreeOp *fop,
  */
 const js::Class gjs_importer_real_class = {
     "GjsFileImporter",
-    JSCLASS_HAS_PRIVATE |
-    JSCLASS_IMPLEMENTS_BARRIERS,
+    JSCLASS_HAS_PRIVATE,
     NULL,  /* addProperty */
     NULL,  /* deleteProperty */
     NULL,  /* getProperty */
diff --git a/gjs/module.cpp b/gjs/module.cpp
index ceeb8b6..e58206b 100644
--- a/gjs/module.cpp
+++ b/gjs/module.cpp
@@ -147,8 +147,7 @@ class GjsModule {
 
     static constexpr JSClass klass = {
         "GjsModule",
-        JSCLASS_HAS_PRIVATE | JSCLASS_BACKGROUND_FINALIZE |
-        JSCLASS_IMPLEMENTS_BARRIERS,
+        JSCLASS_HAS_PRIVATE | JSCLASS_BACKGROUND_FINALIZE,
         nullptr,  /* addProperty */
         nullptr,  /* deleteProperty */
         nullptr,  /* getProperty */


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