Nicholas Nethercote
8207e5343f
Bug 1332172 - Remove XPC_MAP_WANT_*. r=mccr8.
...
nsIXPCScriptable flags handling in xpc_map_end.h is a bit of a mess.
- Half the flags relate to whether various functions are defined (PreCreate,
GetProperty, etc). These are set using the XPC_MAP_WANT_* macros;
for each one xpc_map_end.h inserts the corresponding flag using the
preprocessor (see XPC_MAP_CLASSNAME::GetScriptableFlags()).
- The other half of the flags relate to other things (IS_GLOBAL_OBJECT,
DONT_REFLECT_INTERFACE_NAMES, etc). These are set using the XPC_MAP_FLAGS
macro.
Having two similar but different mechanisms to set the flags for a class is
confusing. (Indeed, until recently we had some classes where a single flag was
redundantly specified via both mechanisms.) Note also that the classes done in
dom/base/nsIDOMClassInfo.h also specify all the flags in a single value,
similar to how XPC_MAP_FLAGS works.
This patch removes the XPC_MAP_WANT_* macros. All flags are now set
via XPC_MAP_FLAGS. This is a significant simplification to xpc_map_end.h and
all the places that use it.
The downside of this change is that I had to change the flag constants from
class constants (i.e. nsIXPCScriptable::FOO) to macros (i.e.
NSIXPCSCRIPTABLE_FOO) because they need to be used in #if statements like this
in xpc_map_end.h:
#if !((XPC_MAP_FLAGS) & NSIXPCSCRIPTABLE_WANT_PRECREATE)
and you can't use a '::'-qualified name inside a #if. I think this downside is
outweighed by the simplification described above.
Overall the patch removes 80 lines of code.
2017-01-23 13:33:58 +11:00
Nicholas Nethercote
5905c66334
Bug 1324330 (part 2) - Make XPC_MAP_FLAGS non-optional when using xpc_map_end.h. r=mccr8.
...
I'd like to remove XPC_MAP_WANT_* altogether and use XPC_MAP_FLAGS for all the
nsIXPCScriptable flag setting, but I haven't worked out how to handle the
method definitions in xpc_map_end.h yet. In the meantime, it seems good to make
the flag setting more consistent and explicit.
In particular, the three "Module" classes have "#define XPC_MAP_WANT_CALL" and
"#define XPC_MAP_FLAGS nsIXPCScriptable::WANT_CALL" which both have the same
effect. The patch removes the latter, to make them consistent with other
classes.
2016-12-23 08:30:22 +11:00
Nicholas Nethercote
331b61b868
Bug 1321374 - Simplify js::Class handling relating to nsIXPCScriptable. r=mccr8, sr=bholley.
...
This patch removes XPCNativeScriptableShared and XPCNativeScriptableSharedMap,
which results in a net reduction of ~100 lines of code.
2016-12-14 08:33:46 +11:00
Sylvestre Ledru
a15f1c5d08
Bug 1318004 - Replace default bodies of special member functions with = default; r=Ehsan
...
MozReview-Commit-ID: 33AOhtFrXS8
2016-11-16 18:26:14 +01:00
Wes Kocher
b620596e75
Backed out 4 changesets (bug 1318004) for xpcshell failures a=backout CLOSED TREE
...
Backed out changeset a3fe53641526 (bug 1318004 )
Backed out changeset a5d1676b6f88 (bug 1318004 )
Backed out changeset b56b37f0f4d7 (bug 1318004 )
Backed out changeset fb5254baf1cb (bug 1318004 )
2016-11-21 16:15:38 -08:00
Sylvestre Ledru
eaf1a1bb8c
Bug 1318004 - Replace default bodies of special member functions with = default; r=Ehsan
...
MozReview-Commit-ID: 33AOhtFrXS8
2016-11-16 18:26:14 +01:00
Wes Kocher
13642ca8af
Backed out 4 changesets (bug 1318004) for xpcshell failures a=backout
...
Backed out changeset 6995bd33872b (bug 1318004 )
Backed out changeset 9be5c856bc78 (bug 1318004 )
Backed out changeset 365b0b7f289a (bug 1318004 )
Backed out changeset 2f2ebf176eac (bug 1318004 )
2016-11-21 12:23:17 -08:00
Sylvestre Ledru
c30faf12df
Bug 1318004 - Replace default bodies of special member functions with = default; r=Ehsan
...
MozReview-Commit-ID: 33AOhtFrXS8
2016-11-16 18:26:14 +01:00
Birunthan Mohanathas
a29151dc87
Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
...
The bulk of this commit was generated by running:
run-clang-tidy.py \
-checks='-*,llvm-namespace-comment' \
-header-filter=^/.../mozilla-central/.* \
-fix
2015-07-13 08:25:42 -07:00
Birunthan Mohanathas
eeb9aaaa94
Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj
2014-04-27 03:06:00 -04:00
Jon Coppeard
6764423a06
Bug 959787 - Handlify JS_GetProperty and related APIs r=terrence r=bz
2014-01-31 09:55:20 +00:00
Carsten "Tomcat" Book
040116afa3
Backed out changeset e2c75ec7f3d4 (bug 959787) for breaking b2g builds on a CLOSED TREE
2014-01-31 12:11:23 +01:00
Jon Coppeard
c3f1bdd1c4
Bug 959787 - Handlify JS_GetProperty and related APIs r=terrence r=bz
2014-01-31 09:55:20 +00:00
Birunthan Mohanathas
b55ff3bd65
Bug 784739 - Switch from NULL to nullptr in toolkit/components/ (1/2); r=ehsan
2013-10-10 16:38:05 -04:00
Ehsan Akhgari
41784ed79f
Bug 913851 - Minimize the #includes in js/xpconnect; r=bholley
...
X-Git-Commit-ID: 78e6843063b303780a7dd2695dd2824a0a9c9a3c
2013-09-09 23:14:10 +02:00
Nicholas Nethercote
f7d6f07d24
Bug 898914 (part 1) - Remove JSBool.
2013-08-08 15:53:04 -07:00
Jon Coppeard
775f06b442
Bug 897484 - GC: Convert JS_GetProperty APIs to take MutableHandleValue r=terrence r=bholley r=smaug
2013-07-26 10:00:38 +01:00
Carsten "Tomcat" Book
beb4a5c20d
Backed out changeset ae8d72538dee (bug 897484) for b2g bustage
2013-07-26 12:34:25 +02:00
Jon Coppeard
ba2b6e849c
Bug 897484 - GC: Convert JS_GetProperty APIs to take MutableHandleValue r=terrence r=bholley r=smaug
2013-07-26 10:00:38 +01:00
Tom Schuster
b419003d07
Bug 865410 - Use CallArgs for XPConnect Call and Construct hooks. r=bholley.
2013-05-04 19:25:15 +02:00
David Zbarsky
e37c03f2f4
Bug 867459: Root toolkit/ r=terrence
2013-05-01 18:43:53 -04:00
Tom Schuster
437e18383d
Bug 862834 - Root mozJSComponentLoader. r=bholley,terrence
2013-04-23 17:48:05 +02:00
Jose Cortes
1184016e2d
Bug 842186 - Update instances of jsval to JS::Value in .cpp and .h files within the toolkit and netwerk directories. r=jwalden
2013-03-06 13:16:46 -08:00
Daniel Holbert
e3ecf81e17
Bug 825467: Remove unused variable 'reusingGlobal' from PerfMeasurement.cpp. r=khuey
2012-12-29 17:33:30 -08:00
Kyle Huey
ccc1139ff3
Bug 809666: Define ctypes and perf properties on the 'this' object, not the global, when sharing globals. r=mrbkap
2012-11-13 08:57:46 -08:00
Kyle Huey
3487fcbed7
Backout bug 809666.
2012-11-13 10:27:06 -08:00
Kyle Huey
27cecbd39a
Bug 809666: Define ctypes and perf properties on the 'this' object, not the global, when sharing globals. r=mrbkap
2012-11-13 08:57:46 -08:00
Kyle Huey
76a2832eea
Bug 798491: Add an option to stick all chrome JSMs/JS components in the same compartment. r=mrbkap,philikon
2012-10-31 09:13:28 -07:00
Vicamo Yang
ea784216bd
Backout 67cb43bb8865: Breaks B2G Marionette
2012-10-31 16:35:11 +08:00
Kyle Huey
c82a2d6fea
Bug 798491: Add an option to stick all chrome JSMs/JS components in the same compartment. r=mrbkap,philikon
2012-10-30 12:28:11 -07:00
Ed Morley
c34b7d9377
Backout a145ded68994, e0cf397089ec & 1545e91c658e (bug 798491) for bustage on a CLOSED TREE
2012-10-30 17:02:31 +00:00
Kyle Huey
45fc50349a
Bug 798491: Followup bustage fix.
2012-10-30 09:10:08 -07:00
Kyle Huey
8078ab712e
Bug 798491: Add an option to stick all chrome JSMs/JS components in the same compartment. r=mrbkap,philikon
2012-10-30 08:26:12 -07:00
Ehsan Akhgari
243c878d26
Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
...
This patch was generated by a script. Here's the source of the script for
future reference:
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name nsXPCOMCID.h \
! -name prtypes.h \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t
convert PRIntn int
convert PRUintn unsigned
convert PRSize size_t
convert PROffset32 int32_t
convert PROffset64 int64_t
convert PRPtrdiff ptrdiff_t
convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Gervase Markham
cb6a072c2a
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Luke Wagner
7f758479ff
Bug 632064 - remove JS_GetScopeChain (r=mrbkap)
2011-09-28 17:57:27 -07:00
Michael Wu
0fe7772ece
Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
2011-09-28 23:19:26 -07:00
Mike Shaver
b80f10de5d
Backed out changeset 4d86e63ff60d, diagnostic patch; back out 3da12edf735e, followup fix; back out bug 631135 completely, unexplained intermittent orange. r=waldo, a=orange
2011-02-19 20:46:44 -08:00
Jeff Walden
0d3d5aa816
Bug 631135 - Objects created by or on behalf of fast natives and property ops (getters or setters) are parented to the wrong proto and global. r=lw,jst,mrbkap,bz, a=jst
2011-02-08 17:20:06 -08:00
Jim Blandy
3aca9009a9
Bug 492849 - Implement Object.preventExtensions, Object.isExtensible. a=waldo,jimb, r=brendan
2010-09-21 11:35:29 -07:00
Zack Weinberg
2b19740bb2
Bug 568863: Add a scriptable interface to operating-system performance measurement APIs (Linux only for now). r=cjones,waldo,mitch a2.0=bz
2010-07-30 12:17:56 -07:00