Andrew McCreight
5ec424dfd3
Bug 807713 - add operator[] for nsTObserverArray. r=bsmedberg
2012-11-02 17:57:05 -07:00
Andrew Quartey
96949afbbf
Bug 792581 - part 23: Replace LL_INIT and LL_UDIVMOD macros. r=ehsan
2012-11-01 20:57:25 -04:00
Jacek Szpot
0b35b0e3d8
Bug 792180 - Replace NS_{UN,}LIKELY with MOZ_{UN,}LIKELY; r=ehsan
2012-10-26 15:32:10 +02:00
Magnus Melin
620b7276fd
Bug 804664 - remove typedef nsAutoCString nsCAutoString. r=benjamin
2012-10-23 20:53:15 +03:00
Abhishek Potnis
2509c81393
Bug 795511: Removed usages of PR_BIT and PR_BITMASK from the tree; r=ehsan
2012-10-20 07:31:43 +05:30
Brian Smith
125999d7c4
Bug 794510: Part 6 - Fixups needed to build on Windows and Android and Mac OS X debug, plus shorten comment to be less than 80 columns; r=ehsan
2012-10-18 15:55:48 -04:00
Bill McCloskey
e1b97bbdea
Bug 798678 - Add weakmap key preservation support to cycle collector (r=mccr8)
2012-10-17 18:22:46 -07:00
Andrew Quartey
0e23b26077
Bug 792581 - part 19: Replace LL_I2L macro with int64_t cast. r=ehsan
2012-10-12 13:29:11 -04:00
Andrew Quartey
637d5881bf
Bug 792581 - part 18: Replace LL_L2D macro with double cast. r=ehsan
2012-10-12 13:29:11 -04:00
Andrew Quartey
790ec84feb
Bug 792581 - part 15: Replace LL_L2I macro with int32_t cast. r=ehsan
2012-10-12 13:29:10 -04:00
William Chen
e95607fd91
Bug 798065 - Fix integer underflow in nsTArray::LastIndexOf. r=cjones
2012-10-04 15:23:41 -07:00
Andrew Quartey
15c1cf34fe
Bug 792581 - part 8: Replace LL_NEG macro with negation. r=ehsan
2012-10-05 01:05:27 -04:00
Jeff Muizelaar
644f4e96df
Bug 792954. Add a WeakPtr implementation to use instead of nsISupportsWeakReference. r=joe,ehsan,Waldo
...
This patch also replaces the usage of nsISupportsWeakReference in RasterImage as an example.
--HG--
extra : rebase_source : ac6a039dcc3227a04ac4c2221f38856bb308c695
2012-10-04 15:45:07 -04:00
Andrew Quartey
b1b8b7f76b
Bug 792581 - part 4: Replace LL_GE_ZERO macro with standard relation. r=ehsan
2012-10-03 10:13:19 -04:00
Andrew Quartey
9eed719a44
Bug 792581 - part 1: Replace LL_IS_ZERO macro with standard relation. r=ehsan
2012-10-03 10:13:18 -04:00
Nathan Froyd
5f8f36ca5f
Bug 796119 - part 2: don't #include prtypes.h in xpcom/ unless absolutely necessary; r=ehsan
...
"absolutely necessary" in this context means "needs PRUnichar", which is
the reason that nsString.h now #includes prtypes.h.
2012-10-01 17:01:01 -04:00
Nathan Froyd
ec0cae57b0
Bug 796279 - remove remaining PR_MAX instances from the tree; r=ehsan
...
We can't use NS_MAX or std::max because we lack uniform constexpr
support across our supported compilers. But we can do a simple inline
max ourselves.
2012-10-01 20:38:21 -04:00
Nathan Froyd
ef8647cf56
Bug 796119 - part 1: don't use PR_BIT in pldhash.h; r=ehsan
2012-10-01 17:04:37 -04:00
Mounir Lamouri
12ac8bdc34
Bug 795703 - Do not assert when calling do_GetWeakReference() on a nsISupport not capable of that. r=smaug,dougt
2012-10-03 10:38:46 +01:00
Ehsan Akhgari
707fdff5de
Bug 792649 - Make the simplest of Web Audio tests work without audio playback for now; r=bzbarsky
2012-09-24 23:31:58 -04:00
Ehsan Akhgari
bdd40e5c18
Backout changeset 9e38c5518605, fc59bd8d49ba, d0ba1abde985, and acf91f25f228 (bugs 796119, 796279, and 797106) because of broken reftests on 64-bit platforms
2012-10-02 23:16:36 -04:00
Nathan Froyd
d66cf7dc03
Bug 796119 - part 2: don't #include prtypes.h in xpcom/ unless absolutely necessary; r=ehsan
...
"absolutely necessary" in this context means "needs PRUnichar", which is
the reason that nsString.h now #includes prtypes.h.
2012-10-01 17:01:01 -04:00
Nathan Froyd
45f0148efe
Bug 796279 - remove remaining PR_MAX instances from the tree; r=ehsan
...
We can't use NS_MAX or std::max because we lack uniform constexpr
support across our supported compilers. But we can do a simple inline
max ourselves.
2012-10-01 20:38:21 -04:00
Nathan Froyd
3c7832a1cb
Bug 796119 - part 1: don't use PR_BIT in pldhash.h; r=ehsan
2012-10-01 17:04:37 -04:00
Ms2ger
cc84f2c2f2
Bug 792379 - Don't include prtypes.h in base/basictypes.h; r=cjones
2012-10-02 10:24:12 +02:00
Isaac Aggrey
65e8d33673
Bug 795507: Remove usage of PR_BEGIN_EXTERN_C and PR_END_EXTERN_C; r=ehsan
2012-09-30 21:10:22 -05:00
Isaac Aggrey
997db4d142
Bug 791906: Replace NSPR integer limit constants with stdint ones; r=ehsan
2012-09-28 01:57:33 -05:00
foudfou
d72827c0aa
Bug 785542 - Convert usages of PR_MIN and PR_MAX to NS_MIN and NS_MAX; r=ehsan
...
Occurences of PR_MAX in layout/style/nsCSSProps.cpp and xpcom/glue/nsTArray.h
can not be converted without C++11 support (constexpr).
--HG--
extra : rebase_source : 3b4f7e26690fad487dd11594449948411d4e79bc
2012-09-27 23:44:47 +02:00
Makoto Kato
222556a3d5
Bug 786579 - Remove old MSVC (<=2003) support. r=khuey
2012-09-28 16:02:40 +09:00
Boris Zbarsky
b1cf9cb142
Bug 793253. Infallible TArrays should really be infallible. r=jlebar
2012-09-22 22:04:54 -04:00
Kyle Huey
d8f4b237fb
Bug 753659: Make refcounting threadsafety assertions fatal. r=bsmedberg
2012-09-22 12:45:44 -07:00
Daniel Holbert
4816f79070
Bug 792634: Give nsDequeFunctor a virtual destructor. r=bsmedberg
2012-09-21 11:27:27 -07:00
Ehsan Akhgari
b5c39afb4e
Bug 792502 - Kill the FunctionTimer code; r=vlad
2012-09-19 16:59:38 -04:00
Steve Workman
f62d70fbb8
Bug 790807: Add 64 bit nsAString::ToInteger; r=bsmedberg
2012-09-17 21:10:50 -04:00
Koosha Khajeh Moogahi
8d39310f18
Bug 788242: Implement and make use of void versions of NS_ENSURE_* macros; r=ehsan,bsmedberg
2012-09-14 14:30:31 +04:30
Gian-Carlo Pascutto
1f28a937d6
Bug 791301 - Generic fallocate code is broken for files smaller than system block size. r=taras
2012-09-17 13:27:24 +02:00
SADINENI RAVI CHANDRA
fceb849816
Bug 720804: Remove unused variables dolPt and fmt from nsTextFormatter.cpp. r=bsmedberg
2012-09-10 23:52:52 -07:00
Ryan VanderMeulen
7e47e6b4fd
Merge inbound to m-c.
2012-09-08 21:10:36 -04:00
Ehsan Akhgari
a3cd30e16e
Bug 789711 - #include mozilla/StandardInteger.h instead of stdint.h to fix building with MSVC9 and lower; r=me
2012-09-08 14:44:33 -04:00
Olli Pettay
6e4f7ab3ea
Bug 784563 - Investigate being lazier about removing things from the purple buffer, r=mccr8
2012-09-08 13:46:48 +03:00
Ehsan Akhgari
c87c3701f1
Bug 788014 - Part 2: Reduce the inclusion of prtypes.h in the tree to help using stdint types; r=jrmuizel
...
--HG--
extra : rebase_source : 66b3b6b9858fb032bebcc070347f781bdf61770c
2012-09-06 17:54:59 -04:00
Ehsan Akhgari
1a43a4f098
Backout changeset f18c63c99be6 (bug 789257) for breaking the builds
2012-09-06 18:47:19 -04:00
Ehsan Akhgari
c30bfea585
Bug 789257 - Remove some unneeded includes on Windows; r=bbondy
2012-09-06 18:12:45 -04:00
Edwin Flores
dc41f19ddc
Bug 719286 - Add float hash key type r=roc
2012-09-06 16:58:46 +12:00
Randell Jesup
e9226b67de
Bug 773151: provide back-compatibility for external API code using nsCAutoString CLOSED TREE r=bsmedberg
2012-07-14 00:01:09 -04:00
Randell Jesup
eedf93a21d
Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg
2012-09-01 22:35:17 -04:00
Luqman Aden
cbf3f0b1fd
Bug 786008 - Add a debug check to make sure that QueryInterface implementations always handle nsISupports; r=ehsan
2012-08-28 12:33:47 -04:00
Andrew McCreight
3f6c58c43d
Bug 749366 - Remove mostly bogus size arg from CC callbacks. r=smaug
2012-08-27 10:41:04 -07:00
Andrew McCreight
62325fa9f3
Bug 750570, part 4 - Switch most native CC classes to use the purple buffer. r=smaug
...
This patch actually converts over most of the existing native CC classes
to use the participant. This is done by converting them to use
the newly generalized nsCycleCollectingAutoRefCnt instead of their usual
ref count.
This is mostly a matter of defining new macros defining AddRef() and Release()
for native CC classes with the CC ref count.
nsTimeout is left as a legacy native CC class because it is a weird class,
but hopefully eventually it too can be converted over. See bug 774874.
2012-08-24 09:50:06 -07:00
Andrew McCreight
8a3dddeebf
Bug 750570, part 3 - Remove unused stabilizeForDeletion argument. r=smaug
...
This argument isn't used, and would have to have its type changed
to support native purple buffer participants, so we just remove it.
2012-08-24 09:50:06 -07:00
Andrew McCreight
018c2b4d42
Bug 750570, part 2 - Add purple buffer support for non-nsISupports classes. r=smaug
...
We add a new field to purple buffer entries, to store the participant for
non-nsISupports classes. For nsISupports, we store NULL instead. The participant
has to be passed into Suspect2.
In the cycle collector itself, we generalize canonicalization to handle the
possibility that we can just grab the participant directly from a field,
rather than needing to QI something.
Most of the patch is just routing around this extra pointer.
2012-08-24 09:50:06 -07:00
Andrew McCreight
49d8c9be16
Bug 750570, part 1 - lift UnmarkIfPurple to the root CC participant. r=glandium,smaug
...
All CC classes are potentially cycle collectable, so we need
to implement this function on the participant for all CC classes.
2012-08-24 09:50:06 -07:00
Ehsan Akhgari
0fd9123eac
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
Gian-Carlo Pascutto
bb1c70d0fd
Bug 779687 - Add detection for ARMv7 CPUs. r=dougt
2012-08-21 13:20:46 +02:00
Aryeh Gregor
0923bf00ef
Bug 780618 - Move all error codes to nsError.h; r=ehsan
2012-07-27 17:03:27 +03:00
Ms2ger
a10183dff5
Bug 780387 - Part e: Stop using PRSize; r=bsmedberg
2012-08-09 09:10:11 +02:00
Ms2ger
3f950b5744
Bug 780387 - Part b: Stop using PRIntn; r=bsmedberg
2012-08-09 09:09:40 +02:00
Ms2ger
5a4f28eb7b
Bug 780387 - Part a: Stop using PRPtrdiff; r=bsmedberg
2012-08-09 09:09:31 +02:00
Mike Hommey
6173fa297f
Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted
2012-08-04 20:26:44 +02:00
Nathan Froyd
997e90b432
Bug 778220 - remove $(wildcard *.$(OBJ_SUFFIX)) calls from xpcom Makefiles; r=glandium
2012-07-27 14:15:01 -04:00
Aryeh Gregor
e806eeab4f
Bug 777292 part 2 - Change all nsnull to nullptr
2012-07-30 17:20:58 +03:00
Brian R. Bondy
15bce0f2b8
Bug 773518 - Platform code for lowering IO prioritization. r=bsmedberg
2012-07-25 10:25:08 -04:00
Joshua Cranmer
4b8f318e78
Bug 773637 - Kill NS_SCRIPTABLE annotations, Part 1: Remove NS_*PARAM annotations. r=ehsan
...
--HG--
extra : rebase_source : a0b4bc50fece36d9a90fed61431635948bfa33b5
2012-07-06 15:14:07 -05:00
Aryeh Gregor
e57dd159b2
Bug 626472 part 1 - Define nsnull as nullptr where available; r=ehsan
2012-07-20 14:16:17 +03:00
Mike Hommey
112c562b7e
Bug 775424 - Make cycle collection vtables rodata. r=smaug
2012-07-23 07:42:23 +02:00
Bobby Holley
adf15fef3a
Bug 771074 - Introduce pointer wrapping mechanism for hold references to pointers off-main-thread. r=bsmedberg
2012-07-13 16:47:14 +02:00
Bobby Holley
c7179fd232
Backed out changeset 784d3448dfe3 (Bug 771074) for windows bustage. a=me
2012-07-13 15:10:40 +02:00
Bobby Holley
1faf926668
Bug 771074 - Introduce pointer wrapping mechanism for hold references to pointers off-main-thread. r=bsmedberg
2012-07-13 14:54:45 +02:00
Bobby Holley
1a88142535
Bug 763343 - Handle classinfo singletons in cross-compartment wrapping. r=peterv
2012-07-13 14:33:25 +02:00
Aryeh Gregor
fd7f652fe8
Bug 771873 part 2 - Assert on addition overflow in nsTArray::RemoveElementsAt; r=bsmedberg
2012-07-09 11:13:23 +03:00
Ehsan Akhgari
b3a3876f4b
Bug 772738 - Avoid "unused variable 'tmp'" warnings for empty CC traverse method implementations; r=smaug
2012-07-11 00:26:56 -04:00
Ehsan Akhgari
04e53539b4
Backout changeset 34c8a2369cbc (bug 771266) because the fastcall annotation actually matters
2012-07-05 18:19:07 -04:00
Ehsan Akhgari
910d251f2f
Bug 771266 - Part 2: Remove the fastcall annotation from ~nsCOMPtr_base, because it doesn't mean anything now that it's inline; irc-r=Neil
2012-07-05 16:26:59 -04:00
Ehsan Akhgari
32a035f454
Bug 771266 - Inline nsCOMPtr_base's destructor; r=jlebar
2012-07-05 15:12:13 -04:00
Benoit Jacob
b8d40b05f7
Bug 754572 - add option to use fatal assertions in NS_CheckThreadSafe, use it in nsBaseScreen and nsScreenManagerAndroid - r=bsmedberg
2012-07-05 10:32:10 -04:00
Benoit Jacob
9288ac49a4
Bug 754572 - let NS_CheckThreadSafe(x,y) be empty in XPCOM_GLUE case, as opposed to letting it evaluate to (x,y) - r=bz
2012-07-05 10:14:09 -04:00
Ms2ger
9f56b60843
Merge m-c to m-i.
2012-06-30 14:50:23 +02:00
L. David Baron
9e9f3a474a
Back out half of the previous patch for bug 709747, since the nsCOMPtr<nsISupports>::forget(nsISupports**) specialization is substantially different from nsCOMPtr<T>::forget(I**), and uses swap which already does the needed logging.
2012-06-29 22:50:45 -07:00
Kyle Huey
08ad5220dd
Bug 709747: Fix COMPtr logging for .forget(). r=dbaron
2012-06-29 10:10:31 -07:00
Bonnie Surender
e360fa128a
Fixing bug 715041. Add support for Idle API. r=bent, jst
2012-06-29 01:32:21 -07:00
Jonathan Watt
6380335603
Bug 767388 - Kill NS_DEBUG. r=bz.
...
--HG--
extra : rebase_source : d045208a26345712dbb4628c973c616cd9504f28
2012-06-25 20:59:42 +01:00
Nathan Froyd
88be55d049
Bug 765326 - atom-table numbers should include the static atom table; r=njn
2012-06-15 15:51:42 -04:00
Oleg Romashin
17448d799e
Bug 767034 - xpcom/glue/arm.cpp:165: error: expected declaration before '}' token. r=derf
2012-06-21 13:01:22 -07:00
Mike Hommey
90d687d851
Merge last PGO green changeset from mozilla-inbound to mozilla-central
2012-06-20 10:53:31 +02:00
Benjamin Smedberg
ea4315c1ff
Bug 755724 Part C - Move ScopedAppData into the XPCOM glue, r=glandium
...
--HG--
rename : toolkit/xre/nsAppData.cpp => toolkit/xre/CreateAppData.cpp
rename : toolkit/xre/nsAppData.cpp => xpcom/glue/AppData.cpp
extra : rebase_source : 6223397345e77b00f14d93a1f188c042fc5f89ea
2012-06-08 08:41:30 -04:00
Mike Hommey
c533a83b6c
Bug 616262 - Avoid cycle collection participant global variables adding static initializers. r=smaug,r=mccr8,r=Waldo
2012-06-04 08:30:26 +02:00
Makoto Kato
f57c383e1f
Bug 763378 - arm detection should have correct define when -mfpu=neon on gcc or on MSVC. r=tterribe
2012-06-19 12:17:43 +09:00
Mike Hommey
311cae060f
Backout changeset a81526647059 and 560c492f81ad (bug 616262) because of Windows Moth perma-orange
2012-06-15 15:50:24 +02:00
Ed Morley
6c0104928c
Merge last PGO-green changeset of mozilla-inbound to mozilla-central
2012-06-15 13:32:55 +01:00
Mike Hommey
988d722ae2
Fixup for bug 616262 to avoid Windows PGO bustage. r=me
2012-06-15 10:49:53 +02:00
Mike Hommey
88257ed076
Bug 616262 - Avoid cycle collection participant global variables adding static initializers. r=smaug,r=mccr8,r=Waldo
2012-06-04 08:30:26 +02:00
Jim Mathies
e13dc80985
Bug 761279 - Temporary work around for a VS 2012 RC compiler crash in nsTArray's Init. r=bsmedberg
2012-06-13 08:37:24 -05:00
Ehsan Akhgari
12418857f6
Bug 758992 - Make the classes which use the XPCOM nsISupports implementation macros final, to avoid the warning about deleting using a pointer to a base class with virtual functions and no virtual dtor (remaining XPCOM parts); r=bsmedberg
...
--HG--
extra : rebase_source : 578d3ab1fefa2f2268069790a6a75db4580991b2
2012-06-12 23:08:53 -04:00
Ehsan Akhgari
ddcea4e3b7
Bug 758992 - Make the classes which use the XPCOM nsISupports implementation macros final, to avoid the warning about deleting using a pointer to a base class with virtual functions and no virtual dtor (XPCOM parts); r=bsmedberg
2012-06-05 19:51:58 -04:00
Honza Bambas
41779e1714
Bug 720778 - Important threads should have a name for better debugability, r=bsmith, sr=bsmedberg+glandium
2012-06-12 19:06:20 +02:00
Andrew McCreight
f4f0e1a935
Bug 754478 - clean up cycle collector JS tracing callbacks. r=bent
2012-05-15 09:56:39 -07:00
Ehsan Akhgari
584af877ce
Bug 737056 - Add some documentation on the mozilla::Version API; r=sparky
...
DONTBUILD
2012-06-07 17:55:46 -04:00
Geoff Lankow
00f3a215c9
Bug 749930 - Replace uses of nsILocalFile with nsIFile (compiled code only); r=bsmedberg
2012-06-06 14:08:30 +12:00
Jacek Caban
d644a5f4a9
Bug 759061 - nsINIParser.cpp fails to compile on mingw r=tabraldes
2012-05-31 16:09:36 +02:00
Cameron McCormack
dc816782b7
Fix a couple of typos in comments. No bug, no review.
2012-05-31 10:32:17 +10:00