[gjs/wip/ptomato/mozjs52: 14/40] js: JSCLASS_IMPLEMENTS_BARRIERS is now implicit



commit 355c73824a2eddb606f4da7593a2ec04ff0e38ff
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.

 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/coverage.cpp   |    3 +--
 gjs/importer.cpp   |    3 +--
 gjs/jsapi-util.cpp |    3 +--
 14 files changed, 14 insertions(+), 28 deletions(-)
---
diff --git a/gi/boxed.cpp b/gi/boxed.cpp
index 8a438ef..97661d3 100644
--- a/gi/boxed.cpp
+++ b/gi/boxed.cpp
@@ -933,8 +933,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 2242bc8..a5d2713 100644
--- a/gi/fundamental.cpp
+++ b/gi/fundamental.cpp
@@ -557,8 +557,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 9d4977f..2e6ebd2 100644
--- a/gi/gerror.cpp
+++ b/gi/gerror.cpp
@@ -272,8 +272,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 00a87e7..2be2053 100644
--- a/gi/interface.cpp
+++ b/gi/interface.cpp
@@ -165,8 +165,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 c892741..6f96f3a 100644
--- a/gi/ns.cpp
+++ b/gi/ns.cpp
@@ -158,8 +158,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 fd9ea6b..7cd08e1 100644
--- a/gi/object.cpp
+++ b/gi/object.cpp
@@ -1805,8 +1805,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 c9a1ccd..e9b2ef4 100644
--- a/gi/param.cpp
+++ b/gi/param.cpp
@@ -147,8 +147,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 c1f8450..68f1c41 100644
--- a/gi/repo.cpp
+++ b/gi/repo.cpp
@@ -227,8 +227,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 47f85f6..b6d10a8 100644
--- a/gi/union.cpp
+++ b/gi/union.cpp
@@ -294,8 +294,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 3f55150..2f2baf9 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/coverage.cpp b/gjs/coverage.cpp
index 02b4569..831853d 100644
--- a/gjs/coverage.cpp
+++ b/gjs/coverage.cpp
@@ -1258,8 +1258,7 @@ gjs_coverage_init(GjsCoverage *self)
 
 static JSClass coverage_global_class = {
     "GjsCoverageGlobal",
-    JSCLASS_GLOBAL_FLAGS_WITH_SLOTS(GJS_GLOBAL_SLOT_LAST) |
-    JSCLASS_IMPLEMENTS_BARRIERS,
+    JSCLASS_GLOBAL_FLAGS_WITH_SLOTS(GJS_GLOBAL_SLOT_LAST),
     NULL,  /* addProperty */
     NULL,  /* deleteProperty */
     NULL,  /* getProperty */
diff --git a/gjs/importer.cpp b/gjs/importer.cpp
index 0ad7880..f1c6af8 100644
--- a/gjs/importer.cpp
+++ b/gjs/importer.cpp
@@ -860,8 +860,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/jsapi-util.cpp b/gjs/jsapi-util.cpp
index af2f183..f586e55 100644
--- a/gjs/jsapi-util.cpp
+++ b/gjs/jsapi-util.cpp
@@ -47,8 +47,7 @@ gjs_util_error_quark (void)
 
 static JSClass global_class = {
     "GjsGlobal",
-    JSCLASS_GLOBAL_FLAGS_WITH_SLOTS(GJS_GLOBAL_SLOT_LAST) |
-    JSCLASS_IMPLEMENTS_BARRIERS,
+    JSCLASS_GLOBAL_FLAGS_WITH_SLOTS(GJS_GLOBAL_SLOT_LAST),
     NULL,  /* addProperty */
     NULL,  /* deleteProperty */
     NULL,  /* getProperty */


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