diff options
author | Philip Chimento <philip.chimento@gmail.com> | 2017-03-19 05:10:08 +0000 |
---|---|---|
committer | Philip Chimento <philip.chimento@gmail.com> | 2017-05-05 23:26:30 -0700 |
commit | 0e4bec680d3b51e87833e110345397961b870f5e (patch) | |
tree | 3f1916ef7564fd5c6259f32259abe3b97c2986b8 | |
parent | 46dfc059f09f20e1e93747a47fa224f5acedbca1 (diff) | |
download | gjs-0e4bec680d3b51e87833e110345397961b870f5e.tar.gz |
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.
-rw-r--r-- | gi/boxed.cpp | 3 | ||||
-rw-r--r-- | gi/function.cpp | 3 | ||||
-rw-r--r-- | gi/fundamental.cpp | 3 | ||||
-rw-r--r-- | gi/gerror.cpp | 3 | ||||
-rw-r--r-- | gi/interface.cpp | 3 | ||||
-rw-r--r-- | gi/ns.cpp | 3 | ||||
-rw-r--r-- | gi/object.cpp | 3 | ||||
-rw-r--r-- | gi/param.cpp | 3 | ||||
-rw-r--r-- | gi/repo.cpp | 3 | ||||
-rw-r--r-- | gi/union.cpp | 3 | ||||
-rw-r--r-- | gjs/byteArray.cpp | 3 | ||||
-rw-r--r-- | gjs/coverage.cpp | 3 | ||||
-rw-r--r-- | gjs/importer.cpp | 3 | ||||
-rw-r--r-- | gjs/jsapi-util.cpp | 3 |
14 files changed, 14 insertions, 28 deletions
diff --git a/gi/boxed.cpp b/gi/boxed.cpp index 8a438ef7..97661d32 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 94d9028e..b70efae2 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 2242bc8e..a5d2713b 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 9d4977fc..2e6ebd22 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 00a87e71..2be20530 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 */ @@ -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 fd9ea6b9..7cd08e11 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 c9a1ccdf..e9b2ef48 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 c1f84507..68f1c415 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 47f85f69..b6d10a80 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 3f551509..2f2baf97 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 02b4569d..831853d0 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 0ad7880b..f1c6af8e 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 af2f1830..f586e559 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 */ |