[gjs/wip/ptomato/mozjs52: 18/45] js: JSCLASS_IMPLEMENTS_BARRIERS is now implicit
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/wip/ptomato/mozjs52: 18/45] js: JSCLASS_IMPLEMENTS_BARRIERS is now implicit
- Date: Sun, 18 Jun 2017 23:41:58 +0000 (UTC)
commit 84345191389ba4bd8e26f02a6a7fdc0f5e362237
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 eb126d7..0078a85 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 4ff6702..f38f756 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 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 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 bfb1bf8..edf0c67 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 0071d23..1dd5b19 100644
--- a/gi/object.cpp
+++ b/gi/object.cpp
@@ -1795,8 +1795,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 f828fb6..52d03d2 100644
--- a/gi/repo.cpp
+++ b/gi/repo.cpp
@@ -223,8 +223,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 feda07a..13da881 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/coverage.cpp b/gjs/coverage.cpp
index cff088f..20e9151 100644
--- a/gjs/coverage.cpp
+++ b/gjs/coverage.cpp
@@ -1260,8 +1260,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 0f546fe..1a3eca7 100644
--- a/gjs/importer.cpp
+++ b/gjs/importer.cpp
@@ -848,8 +848,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 0817f21..99ac100 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]