Kyle Machulis
d2b6e6e01a
Backout for changeset 03452b187c14 (Bug 855465) due to bustage on a CLOSED TREE; r=qdot
2013-03-29 15:12:58 -07:00
Kyle Machulis
5663b98bc5
Bug 855465 - Add emacs python mode comments to moz.build files; r=gps
...
--HG--
extra : rebase_source : 004a756492323e1a049586e85b3be5037159df20
2013-03-29 13:56:18 -07:00
Vasil Dimov
0753d90653
Bug 819016 - Create some helper functions for reading /sys files. r=bsmedberg
2013-03-27 11:19:09 -04:00
Mike Hommey
0bc0448a86
Bug 852950 - Kill libxpcom. r=bsmedberg
...
Also refactored the xpcom standalone glue to reside in a single file and
removed its use of realpath().
--HG--
rename : xpcom/stub/dependentlibs.py => toolkit/library/dependentlibs.py
rename : xpcom/stub/nsXPComStub.cpp => xpcom/build/FrozenFunctions.cpp
2013-03-20 14:56:41 +01:00
Mike Hommey
bb6cc49735
Backout changeset f12e5c87adf6 (bug 852950) because it breaks running from dist/bin
2013-03-20 23:59:45 +01:00
Mike Hommey
b93ae84da9
Bug 852950 - Kill libxpcom. r=bsmedberg
...
--HG--
rename : xpcom/stub/dependentlibs.py => toolkit/library/dependentlibs.py
rename : xpcom/stub/nsXPComStub.cpp => xpcom/build/FrozenFunctions.cpp
2013-03-20 14:56:41 +01:00
Mike Shal
ea1d9b8ba7
Bug 844654 - Part 2: Move MODULE to moz.build; rs=gps
2013-03-19 11:47:00 -07:00
Trevor Saunders
1f7d35c3e6
bug 852379 - remove unneeded prlock.h includes r=Ms2ger
2013-03-16 22:46:40 -04:00
Ms2ger
ecaff4e0d2
Bug 845374 - Part r: Stop including nsTArray.h in nsReadableUtils.h; r=khuey
2013-03-17 08:55:16 +01:00
Ms2ger
a649b47c77
Bug 845374 - Part a: Sort includes and forward declarations in nsContentUtils.{h,cpp}; r=khuey
2013-03-17 08:55:08 +01:00
Daniel Holbert
0d1377f7a3
Bug 849086: Remove unused *_CLASSNAME defines. r=bsmedberg
2013-03-15 10:52:10 -07:00
Bobby Holley
0e23e73322
Bug 850054 - Add opt-out for strict checking in nsMainThreadPtrHolder. r=bsmedberg
2013-03-15 10:41:48 -07:00
Bobby Holley
f340ed3238
Bug 850054 - Do some more work on nsMainThreadPtrHandle. r=bsmedberg
2013-03-15 10:41:48 -07:00
Kyle Huey
7e67cd7351
Bug 714453: Make pldhash assertions fatal. r=dbaron
2013-03-14 09:24:52 -07:00
Kyle Huey
ee2985459f
Bug 849654: Kill nsDataHashtableMT. r=bsmedberg
2013-03-12 14:26:57 -07:00
Kyle Huey
faac2504c0
Bug 849654: Kill nsClassHashtableMT. r=bsmedberg
2013-03-12 13:33:40 -07:00
Trevor Saunders
f3e61a4b14
bug 846619 - add some static checking for use of _INHERITED cc class macros r=smaug
2013-02-28 18:11:18 -05:00
Aaron Klotz
fa882f470a
Bug 845907: Adds generic ReadAhead functions r=glandium
2013-03-03 18:56:03 -07:00
Aaron Klotz
e9f69415e1
Backed out a40244b87c7a (bug 845907)
2013-03-02 17:08:05 -07:00
Aaron Klotz
47900ec2b3
Bug 845907: Adds generic ReadAhead functions r=glandium
2013-03-02 16:13:38 -07:00
Gregory Szorc
27c42e83c6
Merge mozilla-central into build-system
...
The 3 merged files had no conflicts and were manually verified to ensure
no incompatible changes crept in.
2013-02-27 21:02:02 -08:00
Gregory Szorc
803629b9c6
Merge mozilla-central into build-system
...
There were merges in configure.in and some Makefile.in. None had any
conflicts. I spot verified the Makefile.in changes and confirmed that
the changes did not touch any DIRS* variables.
2013-02-27 10:03:52 -08:00
Gregory Szorc
e016eca62d
Bug 784841 - Part 18ν: Convert /xpcom; f=Ms2ger rs=ted
2013-02-25 13:20:02 -08:00
Trevor Saunders
cf419a365c
bug 842078 - fix iteration of mChildrenList r=smaug
2013-02-20 16:33:44 -05:00
Cykesiopka
1397ae2149
Bug 267598 - Fix some comments and arg names in nsISupportsUtils.h. r=bsmedberg
2013-02-27 09:23:54 -05:00
Peter Van der Beken
7e3e8c9052
Fix for bug 839529 (Remove various CC participants that don't do anything). r=smaug.
...
--HG--
extra : rebase_source : 8a272905c79396e7ae08aaaf83566ac450c45be0
2013-02-07 10:19:08 +00:00
Kyle Huey
f4f18e6cd9
Bug 845441: Remove DEBUG_CC. r=mccr8
2013-02-26 13:34:32 -08:00
Justin Lebar
0fd9fb9628
Bug 844820 - Fix two benign races in nsTArray around sEmptyHdr. a=bz
2013-02-26 11:24:41 -05:00
Trevor Saunders
5809598f46
bug 834894 - remove NS_IMPL_CYCLE_COLLECTION_NATIVE_x macros r=mccr8
2013-01-16 23:36:02 -05:00
Boris Zbarsky
81c0b2b097
Bug 618479 part 1. Clean up the nsTArray binary-insert code a little bit. r=jlebar,kinetik
2013-02-13 10:11:53 -05:00
Chris Peterson
c8295d4247
Bug 839962 - Part 1: Replace some XPCOM refcount NS_ASSERTIONs with MOZ_ASSERTs. r=bsmedberg
2013-02-07 20:50:05 -08:00
Jeff Walden
579f351e28
Rename the |static const bool result| member of IsSame, IsPod, and IsPointer to |value| to be consistent with every other type trait. I have no idea how I managed to consistently not notice this during review. Followup to bug 723228, r=typo
2013-02-08 22:59:54 -08:00
Razvan Cojocaru
83699243fe
Bug 723228 - nsTArray::AssignRange should use memcpy when possible. r=jlebar for the XPCOM changes, r=jwalden for js/mfbt changes
...
--HG--
extra : rebase_source : 2442a0d29ae0fa7edd0312d980cbc270a4f33134
2013-02-08 13:18:49 -08:00
Trevor Saunders
efd28711b8
bug 838565 - cc taf and nsFind r=smaug
2013-01-31 18:46:24 -05:00
Neil Rashbrook
e0ee3d3a44
Bug 493711 Provide an nsTArray-like API for nsCOMArray r=sicking
2013-02-04 22:05:40 +00:00
Benoit Jacob
7e6dfb3643
Bug 832831 - Make NS_ASSERT_OWNINGTHREAD_AND_NOT_CCTHREAD fatal - r=khuey
2013-01-25 13:40:38 -05:00
Trevor Saunders
b98e34aed0
bug 822289 - remove NS_IMPL_CYCLE_COLLECTION_CLASS and friends r=mccr8
2013-01-12 07:40:33 -05:00
Mats Palmgren
44d63e6f91
Bug 786533 - Replace NS_MIN/NS_MAX in xpcom/ with XPCOM_MIN/XPCOM_MAX to prevent accidental use. r=ehsan
2013-01-15 13:22:03 +01:00
Trevor Saunders
4ec8c73231
bug 829288 - fix a bunch of mingw warnings in xpcom/ r=ehsan
2013-01-10 03:39:40 -05:00
Benoit Girard
ca61b7dd2b
Bug 761135 - Remove XPCOMGlueShutdown. r=benjamin
2013-01-07 16:19:39 -05:00
Mike Habicher
d50bc07067
Bug 827841 - don't proxy-release null pointers in nsMainThreadPtrHolder; r=jlebar
2013-01-08 13:40:18 -05:00
Mike Habicher
4c3631db86
backing out bug 827841 patch to fix comment
2013-01-10 01:44:18 +01:00
Mike Habicher
142e0b1b12
Bug 828502 - let nsMainThreadPtrHandle::get() handle nullptrs; r=bholley
2013-01-09 18:58:29 -05:00
Mike Habicher
ac36638ece
Bug 872841 - don't proxy-release null pointers in nsMainThreadPtrHolder; r=jlebar
...
--HG--
extra : rebase_source : 508d22c611725379192a90d8381f61aaa3d3ba97
2013-01-08 13:40:18 -05:00
Mike Habicher
3159bbcf60
Bug 827857 - make NS_ProxyRelease() handle null pointers properly; r=jlebar
2013-01-08 13:34:49 -05:00
Boris Zbarsky
b396867141
Bug 827654. Actually QI to interfaces we implement in nsCancelableRunnable. r=smaug
2013-01-08 09:01:30 -05:00
Mike Habicher
5bcb3b93e1
Bug 827679 - add return value to nsMainThreadPtrHandle::operator=; r=bholley
2013-01-07 23:09:19 -05:00
Mohit Gahlot
2690119f9a
Bug 818106 Fix: ScopedClose now considers errno EINTR.r=dhylands
2013-01-04 08:16:47 +05:30
Trevor Saunders
6380733341
bug 822717 - remove checks for old gcc r=glandium
2012-12-18 13:22:28 -05:00
Mark Banner
3be9e2e7fe
Bug 823940 Remove unused nsAutoVoidArray, and cleanup nsVoidArray's support for it. r=bsmedberg.
2012-12-22 09:00:15 +00:00
Neil Rashbrook
67afb6083f
Bug 493711 Part 1b: remove transitive nsVoidArray dependence through nsCOMArray r=sicking
2012-12-21 10:09:50 +00:00
Neil Rashbrook
5900189500
Bug 493711 Part 1: switch nsCOMArray from nsVoidArray to nsTArray r=sicking
2012-12-19 21:33:54 +00:00
Justin Lebar
ab80699fba
Bug 819791 - Part 11: Make nsTArray and friends' copy constructors explicit. r=bz
2012-12-18 20:16:07 -05:00
Justin Lebar
bf499cd1c4
Bug 819791 - Part 3: Make typeof nsTArray == typeof InfallibleTArray. r=bz
...
Also make typeof nsAutoTArray == typeof AutoInfallibleTArray and switch
files to using nsTArrayForwardDeclare.h.
2012-12-18 20:16:06 -05:00
Justin Lebar
1a1d824efe
Bug 819791 - Part 1: Remove nsTArrayDefaultAllocator, replacing it unconditionally with nsTArrayInfallibleAllocator. r=bz
2012-12-18 20:16:06 -05:00
Boris Zbarsky
022da0be50
Bug 819523 part 1. Make it possible to use the various-allocator nsTArrays interchangeably as long as you're working with const objects. r=jlebar
2012-12-18 20:16:05 -05:00
Trevor Saunders
63d7222d76
bug 819215 - make NS_IMPL_CYCLE_COLLECTION_XXXCLASS unnecessary r=smaug, mccr8
2012-12-08 00:08:37 -05:00
Gabriele Svelto
b9602a0925
Bug 814771 - Add a cancelable runnable and use it to cancel a pending memory minimization procedure when an application is brought to the foreground r=jlebar
2012-12-11 19:13:29 +01:00
Boris Zbarsky
5fac9bbab6
Bug 815671 part 10. Make nsTArray constructors explicit. r=jlebar
2012-11-29 11:14:14 -05:00
Boris Zbarsky
ff364a1f33
Bug 815671 part 9. Fix hashtables to take a UserDataType reference on put, so that putting an array works. r=bsmedberg
2012-11-29 11:14:14 -05:00
Andrew McCreight
e8863c7117
Bug 815397 - Clean up Accessibility cycle collector definitions. r=smaug
2012-11-28 16:05:04 -08:00
Mats Palmgren
f7078b45a2
Bug 816162 - Add newline at end of file to fix compile warning. r=mccr8
2012-11-28 19:55:36 +01:00
Andrew McCreight
0687798248
Bug 814453 - Eliminate NS_IMPL_CYCLE_COLLECTION_UNLINK_NATIVE_0 and NS_IMPL_CYCLE_COLLECTION_TRACE_NATIVE_BEGIN. r=smaug
2012-11-23 11:27:06 -08:00
Andrew McCreight
8c7f8d54c8
Bug 814738 - Modernize Traverse for nsTObserverArray. r=smaug
2012-11-23 11:13:39 -08:00
Andrew McCreight
da54c7f2e2
Bug 807713 - add warning comment for nsTObserverArray::ElementAt. r=sicking
2012-11-23 10:50:05 -08:00
Ehsan Akhgari
e153a3685e
Bug 813438 - Part 1: Implement NS_SniffContent; r=bzbarsky
2012-11-20 19:19:53 -05:00
Ed Morley
0e2b2062d6
Backout 231cce402e46, 383b6031c417, 8a518d6c8b60 & 4f55f76e34ee (bug 813438) for bustage
2012-11-22 17:49:58 +00:00
Benoit Jacob
97c1c2f31c
Bug 814444 - Remove now-useless TRAVERSE_NATIVE_BEGIN and UNLINK_BEGIN_NATIVE macros - r=mccr8
2012-11-22 12:15:38 -05:00
Ehsan Akhgari
9898083355
Bug 813438 - Part 1: Implement NS_SniffContent; r=bzbarsky
2012-11-20 19:19:53 -05:00
Benoit Jacob
58175ef06b
Bug 807437 - Eliminate redundant Traverse/Unlink CC macros - part 2: handmade fixups - r=mccr8
2012-11-15 02:32:40 -05:00
Benoit Jacob
5a8b82a1cb
Bug 807437 - Eliminate redundant Traverse/Unlink CC macros - part 1: automatic changes - r=mccr8
2012-11-15 02:32:40 -05:00
Benoit Jacob
03494dfc80
Bug 811212 - Make most cycle collector assertions fatal - r=mccr8
2012-11-15 02:32:39 -05:00
Benoit Jacob
70f71a1da5
Bug 806279 - CC macros refactoring: part 4: update CC helper macros - r=mccr8,smaug
2012-11-15 02:32:39 -05:00
Benoit Jacob
f4c1a03e74
Bug 806279 - CC macros refactoring: part 3: fold the TRAVERSE_NATIVE and AMBIGUOUS cases - r=mccr8,smaug
2012-11-15 02:32:39 -05:00
Benoit Jacob
178368032a
Bug 806279 - CC macros refactoring: part 2: generic BEGIN_ macros folding in the NATIVE case - r=mccr8,smaug
2012-11-15 02:32:39 -05:00
Benoit Jacob
826d3b4b65
Bug 806279 - CC macros refactoring: part 1: implement type-generic CC UNLINK/TRAVERSE macros - r=mccr8,smaug
2012-11-15 02:32:39 -05:00
Daniel Holbert
c9468a9f48
Bug 808146: Declare nsMainThreadPtrHolder as MOZ_FINAL, to fix -Wdelete-non-virtual-dtor build-warning-spam. r=bholley
2012-11-02 21:07:19 -07:00
Andrew McCreight
006327112c
Bug 807713 - add operator[] for nsTObserverArray. r=bsmedberg
2012-11-02 17:57:05 -07:00
Andrew Quartey
36ae7e6c05
Bug 792581 - part 23: Replace LL_INIT and LL_UDIVMOD macros. r=ehsan
2012-11-01 20:57:25 -04:00
Jacek Szpot
bea8356b2c
Bug 792180 - Replace NS_{UN,}LIKELY with MOZ_{UN,}LIKELY; r=ehsan
2012-10-26 15:32:10 +02:00
Magnus Melin
c14a8eb65c
Bug 804664 - remove typedef nsAutoCString nsCAutoString. r=benjamin
2012-10-23 20:53:15 +03:00
Abhishek Potnis
8ad6e4b4f3
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
035e8b8432
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
0a9fd297da
Bug 798678 - Add weakmap key preservation support to cycle collector (r=mccr8)
2012-10-17 18:22:46 -07:00
Andrew Quartey
b50ced0c60
Bug 792581 - part 19: Replace LL_I2L macro with int64_t cast. r=ehsan
2012-10-12 13:29:11 -04:00
Andrew Quartey
b308f8422d
Bug 792581 - part 18: Replace LL_L2D macro with double cast. r=ehsan
2012-10-12 13:29:11 -04:00
Andrew Quartey
ea52f5f496
Bug 792581 - part 15: Replace LL_L2I macro with int32_t cast. r=ehsan
2012-10-12 13:29:10 -04:00
William Chen
545b359d18
Bug 798065 - Fix integer underflow in nsTArray::LastIndexOf. r=cjones
2012-10-04 15:23:41 -07:00
Andrew Quartey
6d4a3feed8
Bug 792581 - part 8: Replace LL_NEG macro with negation. r=ehsan
2012-10-05 01:05:27 -04:00
Jeff Muizelaar
1e809c4aa8
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
c2113adcdd
Bug 792581 - part 4: Replace LL_GE_ZERO macro with standard relation. r=ehsan
2012-10-03 10:13:19 -04:00
Andrew Quartey
1d85650f11
Bug 792581 - part 1: Replace LL_IS_ZERO macro with standard relation. r=ehsan
2012-10-03 10:13:18 -04:00
Nathan Froyd
9738536099
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
47c3eda791
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
2b7edcd2da
Bug 796119 - part 1: don't use PR_BIT in pldhash.h; r=ehsan
2012-10-01 17:04:37 -04:00
Mounir Lamouri
d75b0a0831
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
d7adf52afa
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
5d0ab6fa28
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
d1cd4155c7
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
65c7ca9722
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
4a9f394628
Bug 796119 - part 1: don't use PR_BIT in pldhash.h; r=ehsan
2012-10-01 17:04:37 -04:00
Ms2ger
d787a53469
Bug 792379 - Don't include prtypes.h in base/basictypes.h; r=cjones
2012-10-02 10:24:12 +02:00
Isaac Aggrey
e5d101621c
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
0cc4b12d36
Bug 791906: Replace NSPR integer limit constants with stdint ones; r=ehsan
2012-09-28 01:57:33 -05:00
foudfou
62d7406c52
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
c4ab668c8d
Bug 786579 - Remove old MSVC (<=2003) support. r=khuey
2012-09-28 16:02:40 +09:00
Boris Zbarsky
56ea17b9a3
Bug 793253. Infallible TArrays should really be infallible. r=jlebar
2012-09-22 22:04:54 -04:00
Kyle Huey
233491396d
Bug 753659: Make refcounting threadsafety assertions fatal. r=bsmedberg
2012-09-22 12:45:44 -07:00
Daniel Holbert
cad0c06e80
Bug 792634: Give nsDequeFunctor a virtual destructor. r=bsmedberg
2012-09-21 11:27:27 -07:00
Ehsan Akhgari
70ba385729
Bug 792502 - Kill the FunctionTimer code; r=vlad
2012-09-19 16:59:38 -04:00
Steve Workman
f9692d1c9a
Bug 790807: Add 64 bit nsAString::ToInteger; r=bsmedberg
2012-09-17 21:10:50 -04:00
Koosha Khajeh Moogahi
e98cd6bf45
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
95deb6b017
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
66a4666c4e
Bug 720804: Remove unused variables dolPt and fmt from nsTextFormatter.cpp. r=bsmedberg
2012-09-10 23:52:52 -07:00
Ryan VanderMeulen
2e538f1f8f
Merge inbound to m-c.
2012-09-08 21:10:36 -04:00
Ehsan Akhgari
cee1d40621
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
da2e3562f6
Bug 784563 - Investigate being lazier about removing things from the purple buffer, r=mccr8
2012-09-08 13:46:48 +03:00
Ehsan Akhgari
59fbcc9b3c
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
597f23747a
Backout changeset f18c63c99be6 (bug 789257) for breaking the builds
2012-09-06 18:47:19 -04:00
Ehsan Akhgari
35e0890af0
Bug 789257 - Remove some unneeded includes on Windows; r=bbondy
2012-09-06 18:12:45 -04:00
Edwin Flores
7ed4e118f3
Bug 719286 - Add float hash key type r=roc
2012-09-06 16:58:46 +12:00
Randell Jesup
4d2ab05d09
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
29ac5c0b8c
Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg
2012-09-01 22:35:17 -04:00
Luqman Aden
1aa2c9126d
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
671b32897c
Bug 749366 - Remove mostly bogus size arg from CC callbacks. r=smaug
2012-08-27 10:41:04 -07:00
Andrew McCreight
0d31841b85
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
8c942e77dd
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
6a69e406cb
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
86e263762f
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
8c296bbcd4
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
9b64357c0e
Bug 779687 - Add detection for ARMv7 CPUs. r=dougt
2012-08-21 13:20:46 +02:00
Aryeh Gregor
982100775b
Bug 780618 - Move all error codes to nsError.h; r=ehsan
2012-07-27 17:03:27 +03:00
Ms2ger
aa7cd71f5c
Bug 780387 - Part e: Stop using PRSize; r=bsmedberg
2012-08-09 09:10:11 +02:00
Ms2ger
331accfcb4
Bug 780387 - Part b: Stop using PRIntn; r=bsmedberg
2012-08-09 09:09:40 +02:00
Ms2ger
b5e07ef2e5
Bug 780387 - Part a: Stop using PRPtrdiff; r=bsmedberg
2012-08-09 09:09:31 +02:00
Mike Hommey
c1b35e7b2a
Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted
2012-08-04 20:26:44 +02:00
Nathan Froyd
fcb8761a84
Bug 778220 - remove $(wildcard *.$(OBJ_SUFFIX)) calls from xpcom Makefiles; r=glandium
2012-07-27 14:15:01 -04:00
Aryeh Gregor
57c0ad57fb
Bug 777292 part 2 - Change all nsnull to nullptr
2012-07-30 17:20:58 +03:00
Brian R. Bondy
873408d146
Bug 773518 - Platform code for lowering IO prioritization. r=bsmedberg
2012-07-25 10:25:08 -04:00
Joshua Cranmer
e1cdfe2f05
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
0c8f5adf50
Bug 626472 part 1 - Define nsnull as nullptr where available; r=ehsan
2012-07-20 14:16:17 +03:00
Mike Hommey
d3b70db257
Bug 775424 - Make cycle collection vtables rodata. r=smaug
2012-07-23 07:42:23 +02:00
Bobby Holley
a9b149e614
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
7ad49e0b59
Backed out changeset 784d3448dfe3 (Bug 771074) for windows bustage. a=me
2012-07-13 15:10:40 +02:00
Bobby Holley
3fd5a14b76
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
473b4a8aa9
Bug 763343 - Handle classinfo singletons in cross-compartment wrapping. r=peterv
2012-07-13 14:33:25 +02:00
Aryeh Gregor
5b5fca0c94
Bug 771873 part 2 - Assert on addition overflow in nsTArray::RemoveElementsAt; r=bsmedberg
2012-07-09 11:13:23 +03:00
Ehsan Akhgari
f18ffa5e86
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
da951cf990
Backout changeset 34c8a2369cbc (bug 771266) because the fastcall annotation actually matters
2012-07-05 18:19:07 -04:00
Ehsan Akhgari
928bac3a6e
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
3b1342d2e3
Bug 771266 - Inline nsCOMPtr_base's destructor; r=jlebar
2012-07-05 15:12:13 -04:00
Benoit Jacob
d5e77f32fc
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
d494041006
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
aae562ed57
Merge m-c to m-i.
2012-06-30 14:50:23 +02:00
L. David Baron
6c96fba7b3
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
350524f82d
Bug 709747: Fix COMPtr logging for .forget(). r=dbaron
2012-06-29 10:10:31 -07:00
Bonnie Surender
6dcaba353f
Fixing bug 715041. Add support for Idle API. r=bent, jst
2012-06-29 01:32:21 -07:00
Jonathan Watt
9ac7bb2267
Bug 767388 - Kill NS_DEBUG. r=bz.
...
--HG--
extra : rebase_source : d045208a26345712dbb4628c973c616cd9504f28
2012-06-25 20:59:42 +01:00
Nathan Froyd
c91e7f86d0
Bug 765326 - atom-table numbers should include the static atom table; r=njn
2012-06-15 15:51:42 -04:00
Oleg Romashin
09c5bcc28a
Bug 767034 - xpcom/glue/arm.cpp:165: error: expected declaration before '}' token. r=derf
2012-06-21 13:01:22 -07:00
Mike Hommey
e1f994d15f
Merge last PGO green changeset from mozilla-inbound to mozilla-central
2012-06-20 10:53:31 +02:00
Benjamin Smedberg
c15c4ed945
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
f600664217
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
5288567090
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
2536fb188a
Backout changeset a81526647059 and 560c492f81ad (bug 616262) because of Windows Moth perma-orange
2012-06-15 15:50:24 +02:00
Ed Morley
9ef4312c8c
Merge last PGO-green changeset of mozilla-inbound to mozilla-central
2012-06-15 13:32:55 +01:00
Mike Hommey
758b2fe3a0
Fixup for bug 616262 to avoid Windows PGO bustage. r=me
2012-06-15 10:49:53 +02:00
Mike Hommey
3acf5d646d
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
f034deb55c
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
bcc9fdc523
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
b5161f97b8
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
f29e1ac591
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
9152e14841
Bug 754478 - clean up cycle collector JS tracing callbacks. r=bent
2012-05-15 09:56:39 -07:00
Ehsan Akhgari
764d4a251d
Bug 737056 - Add some documentation on the mozilla::Version API; r=sparky
...
DONTBUILD
2012-06-07 17:55:46 -04:00
Geoff Lankow
1214b72681
Bug 749930 - Replace uses of nsILocalFile with nsIFile (compiled code only); r=bsmedberg
2012-06-06 14:08:30 +12:00
Jacek Caban
107fa7f73d
Bug 759061 - nsINIParser.cpp fails to compile on mingw r=tabraldes
2012-05-31 16:09:36 +02:00
Cameron McCormack
ddfdfc0a31
Fix a couple of typos in comments. No bug, no review.
2012-05-31 10:32:17 +10:00
Josh Matthews
3e60a1dc11
Bug 722845 - Part 2: Generalize channel private browsing information to a PB consumer interface. r=jduell
2012-05-24 16:31:54 +01:00
Tim Abraldes
6338453578
bug 752756. Read UTF-16le and UTF-8 BOMs in nsINIParser on Windows. Add parameter to nsIINIParserWriter::writeFile() specifying the charset of the file (BOM will be written). r=bsmedberg
2012-05-23 10:09:10 -07:00
Jim Mathies
f4bf6429ef
Bug 732124 - Fix for crt link errors with VC11 - build glue using both the static and the dynamic runtime lib, and link accordingly for various components. r=ted
2012-05-21 16:31:03 -05:00
Gervase Markham
87620f5676
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Benjamin Smedberg
2187798a40
Bug 734847 part 2 - treewide changes resulting from the default-infallibility of hashtables; either remove useless result checks, or use the fallible version of APIs, depending on context, r=jlebar
...
--HG--
extra : rebase_source : 844b008c5167e6ca39a7ba9eeec8b30672938704
2012-05-18 13:30:49 -04:00
Benjamin Smedberg
53e80061a5
Bug 734847 - Make nsTHashtable and its derivatives be infallible to OOM by default; code which is prepared to handle OOM conditions must use the explicit fallible_t() methods, r=jlebar
...
--HG--
extra : rebase_source : 4acfaa41aa572c570e4627250f2d3ec2e1817e93
2012-05-18 12:42:01 -04:00
Ms2ger
1c8f2530d8
Bug 754643 - Enable FAIL_ON_WARNINGS in content/media; r=cpearce f=roc
2012-05-18 10:29:38 +02:00
Doug Turner
b966ec32a4
Bug 742179 - Move MakeRandomString to xpcom/ds. r=bsmedberg
2012-04-05 09:50:55 -07:00
Andrew McCreight
e9753b7090
Bug 744103, part 3 - Change NoteRoot to NoteJSRoot and NoteNativeRoot. r=smaug
2012-05-03 12:28:11 -07:00
Andrew McCreight
38b851ba07
Bug 744103, part 2 - Change NoteScriptChild to NoteJSChild. r=smaug
2012-05-03 12:28:10 -07:00
Andrew McCreight
9b6a388e23
Bug 678615 - remove ExplainLiveExpectedGarbage. r=smaug sr=peterv
2012-04-25 08:10:09 -07:00
Peng Kang
2fbc22e590
Bug 737056 - Replace NS_CompareVersions more intuitive C++ API called mozilla::Version. r=bsmedberg
2012-04-18 23:22:29 -04:00
Ehsan Akhgari
dbae9d14b7
Backout changeset c3d4c0bdd4bf (bug 737056) for build bustage
2012-04-18 17:05:06 -04:00
Peng Kang
f1c951a722
Bug 737056 - Replace NS_CompareVersions more intuitive C++ API called mozilla::Version. r=bsmedberg
2012-04-18 16:31:59 -04:00
Myk Melez
253337cae3
bug 725408 - implement WebappRT launcher/shell; r=bsmedberg
2012-04-17 07:11:53 -07:00
Mark Capella
1839be84c0
Bug 740688 - Use uintptr_t instead of PRUword, and intptr_t instead of PRWord. r=jwalden
...
--HG--
extra : rebase_source : 648a581323d2c2893df780f71fe34dadcc4bbaab
2012-04-11 17:17:44 -07:00
David Rajchenbach-Teller
fa9913646b
Bug 728171 - Use Scoped.h throughout the code. r=cjones
2012-04-12 12:21:24 +02:00
Richard Newman
76d7d982d4
Backout 0e03eb171e08 (Bug 743574 - Deprecate DOMException.code). a=bustage
2012-04-11 15:33:37 -07:00
David Rajchenbach-Teller
cb1d34d766
Bug 728171 - Use Scoped.h throughout the code. r=cjones
2012-04-11 18:59:10 +02:00
Mark Capella
4666038a24
Bug 712936 - Convert users of PR_STATIC_ASSERT to MOZ_STATIC_ASSERT. r=jwalden
2012-04-02 17:21:24 -07:00
Cameron McCormack
503444be6a
Bug 739129 - Add LastElement and SafeLastElement functions to nsTArray. r=dbaron
2012-03-27 09:48:25 +11:00
Andrew McCreight
7e1f1d540f
Bug 738769 - only unmark purple if purple. r=smaug
2012-03-26 09:57:29 -07:00
Jonathan Kew
5ae7bbbe8c
bug 737863 - nsBaseHashtable::SizeOfExcludingThis should be declared const. r=njn
2012-03-23 12:13:56 +00:00