[gjs/wip/ptomato/mozjs52: 10/37] 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: 10/37] js: JSCLASS_IMPLEMENTS_BARRIERS is now implicit
- Date: Mon, 26 Jun 2017 22:45:38 +0000 (UTC)
commit c229d0fbe76a25deee9b13a988eec917469b15ee
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 +--
13 files changed, 13 insertions(+), 26 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 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 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 e150d36..84bcb03 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 304ed7b..73dad66 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 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/global.cpp b/gjs/global.cpp
index 5a2eaf2..c9ba259 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 2968b60..a34b817 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 */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]