Mike Hommey
0e1dd1fe7c
Bug 988168 - Better integrate gtest libxul in the build system. r=mshal
...
--HG--
rename : toolkit/library/Makefile.in => toolkit/library/libxul.mk
rename : toolkit/library/moz.build => toolkit/library/libxul.mozbuild
2014-03-29 07:50:08 +09:00
Neil Rashbrook
cf9b85f5a7
Bug 514280 Consistently declare and define IID accessors r=bsmedberg
2014-03-28 08:45:02 +00:00
Steve Workman
0afcd538f0
Bug 925623 - Implement NS_IMPL_ISUPPORTS13 r=bsmedberg
2014-03-27 13:54:10 -07:00
Ehsan Akhgari
186680d83a
Bug 798158 - Part 1: Use a pointer-sized type to store refcounts internally; r=bsmedberg
2014-03-27 16:38:33 -04:00
Ben Turner
5e4435640e
Bug 987285 - 'Let nsBaseHashtable and subclasses call MarkImmutable'. r=bsmedberg.
2014-03-27 11:09:53 -04:00
Ghislain 'Aus' Lacroix
d8e84e5a6d
Bug 960749 - Improve error messages when < and > are used in filenames. r=bsmedberg
...
* Unify OS_FILE_ILLEGAL_CHARACTERS
* Provide KNOWN_PATH_SEPARATORS in addition to FILE_PATH_SEPARATOR.
* Update nsExternalAppHandler to use KNOWN_PATH_SEPARATORS instead of
FILE_PATH_SEPARATOR when removing path separators.
* Fix DownloadsIPC.jsm when compiling with MOZ_DEBUG (would throw on undefined download.id).
* Add test for stripping out illegal characters when downloading.
2014-03-20 14:05:40 -07:00
Kyle Huey
839c762332
Bug 968031: Remove threadsafe refcounting from ContentParent and add it to the cycle collector graph. r=bent,mccr8
2014-03-19 17:22:25 -07:00
Nathan Froyd
73447b07b9
Bug 984466 - change CallQueryInterface to assert in cases of trivial conversions; r=ehsan
2014-03-17 13:00:17 -04:00
Nathan Froyd
4bb75e1989
Bug 984443 - get rid of #ifndef $OTHER_HEADER bits from xpcom/ as relics of a bygone era; r=ehsan
2014-03-17 12:20:47 -04:00
Phil Ringnalda
bf801fc4cc
Back out c91b18cafc64 (bug 960749)
...
CLOSED TREE
2014-03-18 20:40:12 -07:00
Ghislain 'Aus' Lacroix
3bb10e5e3a
Bug 960749 - Unify FILE_ILLEGAL_CHARACTERS for all OS's. r=bsmedberg
2014-03-18 12:40:59 -07:00
Neil Rashbrook
db90ab0285
Bug 514280 Remove GetIID r=bsmedberg
...
--HG--
extra : rebase_source : b913300be047e87c24fb95f7bd17793ebd2c5995
2014-03-18 00:23:11 +00:00
Wes Kocher
c879b47079
Backed out 2 changesets (bug 514280) for OSX build bustage on a CLOSED TREE
...
Backed out changeset 2a015b45d808 (bug 514280)
Backed out changeset a01f97c1ed02 (bug 514280)
2014-03-17 15:19:53 -07:00
Neil Rashbrook
af909242bc
Bug 514280 Remove GetIID r=bsmedberg
...
--HG--
extra : rebase_source : 179d6cd1cfb272ca258b0bc64225b27252c9ffbe
2014-03-17 19:07:46 +00:00
Kyle Huey
817b5ccbd9
Bug 345123: Remove nsGetterAddRefs<T>'s operator nsISupports**. r=bsmedberg
2014-03-15 12:00:17 -07:00
Kyle Huey
b564544cf7
Bug 967364: Pass already_AddRefed by reference instead of by value. r=bsmedberg
2014-03-15 12:00:17 -07:00
Kyle Huey
1f3d658bb3
Bug 967364: Use every already_AddRefed. r=bsmedberg
2014-03-15 12:00:16 -07:00
Kyle Huey
65644eb5a0
Bug 967364: Privatize already_AddRefed::mRawPtr. r=bsmedberg
2014-03-15 12:00:15 -07:00
Kyle Huey
fe6c4e28d6
Bug 967364: Rename already_AddRefed::get to take. r=bsmedberg
2014-03-15 12:00:15 -07:00
Eric Rahm
b81b686c03
Bug 969117 - Report memory usage of MediaResources. r=njn
2014-03-05 13:31:04 -08:00
Robert O'Callahan
62a65cf9a2
Bug 955888. Part 7: In chaos mode, start hashtable iteration at a random entry. r=jorendorff
...
--HG--
extra : rebase_source : f7e5208595171b0a7d58d9b8a91bc91a40725079
2014-03-03 18:12:46 +13:00
Ehsan Akhgari
17f4a32d8b
Bug 976896 - Port STL_FLAGS to moz.build; r=mshal
2014-03-04 19:39:06 -05:00
Bobby Holley
611c847a27
Bug 975419 - Add a JS::TenuredHeap<JSObject*> overload to TraceCallbacks. r=mccr8,terrence
2014-03-03 08:53:42 -08:00
Andrew McCreight
334f2742a1
Bug 977260, part 2 - Use more macros for CC nsDOMCameraControl stuff. r=smaug
...
Use more powerful macros for nsDOMCameraControl
2014-02-28 09:56:23 -08:00
Andrew McCreight
0353960345
Bug 962608 - Make PL_DHashTableInit infallible by default. r=briansmith,bsmedberg,ehsan,froydnj,jduell,jfkthame,roc,smaug
2014-02-27 10:04:09 -08:00
L. David Baron
03ba2e465b
Bug 976350 patch 1: Move the contents of nsTraceRefcnt.h into nsISupportsImpl.h. r=bsmedberg
...
This makes sense since the file no longer contains anything with the
nsTraceRefcnt name in it, and it will allow renaming nsTraceRefcntImpl
back to nsTraceRefcnt.
2014-02-26 13:36:35 -08:00
Nathan Froyd
4efe7278e6
Bug 976161 - delete dead NSCAP_DISABLE_TEST_DONTQUERY_CASES code; r=bsmedberg
2014-02-24 13:02:43 -05:00
Andrew McCreight
a0bcda40c2
Bug 975223, part 2 - Add nsRefPtrHashtable::Remove that also does a Get. r=froydnj
2014-02-24 17:16:10 -08:00
Andrew McCreight
0eba6a860b
Bug 975223, part 1 - Make braces less weird in nsRefPtrHashtable. r=froydnj
2014-02-24 17:16:10 -08:00
L. David Baron
7d750b2a18
Bug 975295 patch 2: Remove the nsITraceRefcnt interface and any instantiation of the nsTraceRefcntImpl object. r=bsmedberg
2014-02-24 15:27:53 -08:00
L. David Baron
50d288329e
Bug 975295 patch 1: Remove class nsTraceRefcnt, which is unused. r=bsmedberg
2014-02-24 15:27:53 -08:00
Ehsan Akhgari
c1dc0a9245
Bug 969864 - Make nsTArray::SetLength return void; r=froydnj
2014-02-19 08:27:15 -05:00
Neil Rashbrook
cab4409bb2
Bug 972167 Followup to make the code compile now that it's actually being used
...
a=KWierso for checkin to a CLOSED TREE
2014-02-13 21:07:46 +00:00
Neil Rashbrook
f83a4c3cb1
Bug 972167 Really give nsAutoArrayBase a copy constructor so that nsAutoTArray's implicit copy constructor will use it r=froydnj
2014-02-13 20:47:32 +00:00
Jacek Caban
52f8916e46
Bug 971646 - FileUtilsWin.h fails to compile on GCC. r=bsmedberg
2014-02-13 11:25:26 +01:00
Andrew McCreight
c50b20937e
Bug 970527 - Remove extern C from pldhash.h r=froydnj
2014-02-11 14:56:44 -08:00
Ehsan Akhgari
b7b6d52aef
Bug 970745 - Move USE_STATIC_LIBS to moz.build; r=glandium
2014-02-11 09:12:33 -05:00
Oleg Romashin
f627a1c40d
Bug 967796 - Implement Pointer Enter/Leave events support. refactor OutOver element helpers. r=smaug
2014-02-10 22:33:35 -08:00
Ehsan Akhgari
d91d200572
Bug 969757 - Remove the dead code in our tree which pretends to support OS/2; r=roc,mcmanus,gps,jorendorf,bsmedberg sr=bsmedberg
2014-02-10 17:57:01 -05:00
Ms2ger
58bd97db70
Bug 968766 - Part i: Move the document.all NodeLists into a separate hashtable; r=jst
2014-02-09 09:04:36 +01:00
Jacek Caban
1b93481411
Bug 944905 - Fix char16_t/wchar_t mismatch in xpcom/ r=bsmedberg
...
--HG--
extra : rebase_source : 2f81dd18df59e0498a577c437954c5b1f52f8e28
2014-02-06 17:42:58 +01:00
Birunthan Mohanathas
8051a8e38e
Bug 828300 - Remove NS_ARRAY_LENGTH. r=ehsan
2014-01-30 13:26:54 -05:00
Joshua Cranmer
33e4c4f0ca
Bug 450881: Add helpers for XPIDL arrays to nsCOMArray, r=froydnj
2014-01-22 16:19:00 -06:00
Wes Kocher
24f2933e4b
Backed out changeset 4c4e95457c87 (bug 961712) for crashing b2g tests on a CLOSED TREE
2014-01-22 15:50:04 -08:00
Chris Lord
72ac4f30f8
Bug 961712 - Buffer (f)printf_stderr on Android. r=gal
...
Android logging functions append newlines to all output. Layout debugging
(and perhaps other areas) relies on being able to print partial lines, making
its output almost unreadable. This change adds manual buffering between
newlines, making the output readable again.
2014-01-22 20:20:20 +00:00
Wes Kocher
e3dfa27d04
Backed out changeset 03bdec48d0ac (bug 450881) for Windows build bustage
2014-01-21 18:13:21 -08:00
Joshua Cranmer
9e4e7d3356
Bug 450881: Add helpers for XPIDL arrays to nsCOMArray, r=froydnj
...
--HG--
extra : rebase_source : d87f6cbdd2bab54f5923821409c9197f98b372f4
2014-01-21 18:01:36 -06:00
Phil Ringnalda
454490103b
Back out 171c124a1402 (bug 961712) for debug b2g mochitest crashes after timeouts
2014-01-20 13:03:26 -08:00
Chris Lord
37c62e06b4
Bug 961712 - Buffer (f)printf_stderr on Android. r=gal
...
Android logging functions append newlines to all output. Layout debugging
(and perhaps other areas) relies on being able to print partial lines, making
its output almost unreadable. This change adds manual buffering between
newlines, making the output readable again.
2014-01-20 17:11:39 +00:00
Benoit Jacob
fb8f0a8ef9
Bug 960591 - Prevent implicitly constructing nsTArray<E> elements from E* pointers - r=ehsan
2014-01-17 11:54:19 -05:00
Terrence Cole
6beccf2363
Bug 959787 - Handlify several JSAPI interfaces that can GC, Part 3; r=sfink
...
--HG--
extra : rebase_source : ace7b0fa6ba93acbf0ec8ecaeb68ffa287a33665
2014-01-16 09:48:58 -08:00
Olli Pettay
77759a327d
Bug 958315 - Suspect JS things released by dying C++ objects in the next CC, r=mccr8
2014-01-14 22:23:59 +02:00
Boris Zbarsky
72e2ce7440
Bug 932837 part 2. Create a refcounted object to manage the lifetime of a JS::StackDescription. r=mccr8, terrence
2014-01-07 19:53:17 -05:00
Carsten "Tomcat" Book
15546f37d1
Backed out changeset 06f381426af1 (bug 944905) for windows bustage on a CLOSED TREE
2014-01-07 15:18:43 +01:00
Jacek Caban
40790e8807
Bug 944905 - Fix char16_t/wchar_t mismatch in xpcom/ r=bsmedberg
2014-01-07 14:54:52 +01:00
Patrick McManus
0e9470feb7
bug 751465 - websockets dns and proxies r=jduell r=bsmedberg
...
--HG--
extra : rebase_source : ad2046a95f1ec9000577cc0f67aedc0766a51ed2
2014-01-06 13:52:42 -05:00
Jeff Walden
5d3f01c937
Bug 953296 - Implement mozilla::NullptrT as a typedef to use to accept nullptr values. Also add mozilla::IsNullPointer<T>, a trait for detecting *only* true nullptr (emulated nullptr [__null] used by gcc 4.4/4.5 isn't true nullptr). r=ehsan
...
Generally, if you want a decltype(nullptr)-based overload, you should use SFINAE and IsNullPointer. (Examples are provided in NullPtr.h comments.) The problem is NullptrT matches far more than just __null as emulated nullptr for gcc 4.4/4.5 overloading purposes. This problem is unavoidable without true nullptr. Currently, the only valid use for NullptrT is believed to be in operator overloads. All existing nullptr-overloading code has been rewritten to use the appropriate technique for the situation, and MOZ_HAVE_CXX11_NULLPTR is no longer an API.
--HG--
extra : rebase_source : 01abfcb66ae569db7b04a7b53f5cd5fd8151bffd
2014-01-02 17:27:41 -06:00
Ehsan Akhgari
1b83407ce9
Bug 927728 - Part 1: Replace PRUnichar with char16_t; r=roc
...
This patch was automatically generated by the following script:
#!/bin/bash
# Command to convert PRUnichar to char16_t
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*modules/libmar*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name prtypes.h \
! -name Char16.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 PRUnichar char16_t
2014-01-04 10:02:17 -05:00
Ms2ger
561cae4a0e
Bug 950130 - Move more INCLUDES / LOCAL_INCLUDES to moz.build; r=mshal
2013-12-31 10:06:11 +01:00
Nathan Froyd
fb3a3066d1
Bug 950882 - micro-optimize NS_TableDrivenQI calling sequence by reordering argument list; r=bsmedberg
...
For register-rich ABIs (e.g. x86-64 and ARM), QueryInterface's incoming
registers are going to look like:
arg register 1: |this|
arg register 2: the IID of interest
arg register 3: the outparam instance pointer
Most of our QI implementations call NS_TableDrivenQI, which expects
arguments like so:
arg register 1: |this|
arg register 2: the QITableEntry table
arg register 3: the IID of interest
arg register 4: the outparam instance pointer
So we're going to have to do a register shuffle of the IID and the
outparam to be able to load the QITableEntry pointer before calling into
NS_TableDrivenQI.
This patch reorders the argument list of NS_TableDrivenQI so that the
first three arguments match the order that QueryInterface receives them
in. Then your typical QueryInterface implementation becomes:
- load local |table|
- tail-call NS_TableDrivenQI
Eliminating the register shuffling reduces text size by 12K on an
Android ARM build.
2013-12-13 19:50:02 -05:00
Andrew McCreight
76b4feac36
Bug 937818, part 1 - Add objects to the purple buffer on AddRef. r=smaug
...
ICC uses this to track objects that have been AddRef'd during ICC graph building.
For those objects, we may not have the proper information for them, so treat them
as live.
2013-12-17 19:29:57 -08:00
Carsten "Tomcat" Book
dd80853527
Backed out changeset 261091719842 (bug 937818) for static rooting hazard analysis bustage on a CLOSED TREE
2013-12-17 09:20:51 +01:00
Andrew McCreight
3145a6bc8f
Bug 937818, part 1 - Add objects to the purple buffer on AddRef. r=smaug
...
ICC uses this to track objects that have been AddRef'd during ICC graph building.
For those objects, we may not have the proper information for them, so treat them
as live.
2013-12-16 21:30:53 -08:00
Nathan Froyd
1b5da13c0d
Bug 950281 - micro-optimize NS_TableDrivenQI by ensuring the table has at least 1 non-null entry; r=bsmedberg
2013-12-13 19:17:18 -05:00
Andrew McCreight
2e211ee0cd
Bug 947626 - Fix index types in nsCOMArray CC helpers and remove whitespace. r=froydnj
2013-12-08 08:56:00 -08:00
Cameron McCormack
cb71a296c0
Bug 947578 - Expose Contains on nsBaseHashtable. r=froydnj
2013-12-08 11:08:58 +11:00
Jon Coppeard
ba4036ae32
Bug 939206 - Fix build error in test code on B2G r=me
2013-12-07 16:09:12 +00:00
Jon Coppeard
73da0d62d8
Bug 942928 - Add tests for nsTArray postbarriers r=sfink
2013-12-07 12:50:44 +00:00
Jon Coppeard
49b6cfda81
Bug 939206 - Fix nsTArray post barriers for JS::Heap<T> elements r=bsmedberg
2013-12-07 12:50:28 +00:00
Jon Coppeard
1347c72bec
Bug 946732 - Reinstate xpcom/glue gtests r=BenWa
2013-12-05 16:48:48 +00:00
Jacek Caban
e2cd5ba18b
Bug 944905 - Fixed char16_t/wchar_t mismatch in xpcom/ r=bsmedberg
2013-12-04 13:19:09 +01:00
Seth Fowler
579513aaf3
Bug 940142 - Add a lightweight generic hash key class to nsHashKeys.h. r=bsmedberg
2013-12-03 16:23:32 -08:00
Ehsan Akhgari
1af04ef00b
Bug 945592 - Convert the type macros in nsTextFormatter.cpp to enum values; r=froydnj
2013-12-03 15:41:25 -05:00
Ehsan Akhgari
f07cba6cad
Bug 945118 - Build more of XPCOM in unified mode; r=glandium
2013-12-01 10:47:52 -05:00
Landry Breuil
ce099f1bff
Bug 944410 - add missing #include <stdarg.h> for va_list on OpenBSD after bug 942483 r=bgirard
2013-11-30 13:48:34 +01:00
Mike Hommey
8fd06cf41b
Bug 874266 - Move all DEFINES that can be moved to moz.build. r=mshal
2013-11-27 22:55:07 +09:00
Mike Hommey
b32a4ed166
Backout changeset 3fd4b546eed4 (bug 874266) and changeset a35d2e3a872f (bug 942043) for ASAN build bustage and Windows test bustage
...
--HG--
extra : amend_source : f20d09aeff1c8b5cbd0f1d24c7ce04e86f3aed1d
2013-11-28 14:24:05 +09:00
Mike Hommey
682364d535
Bug 874266 - Move all DEFINES that can be moved to moz.build. r=mshal
2013-11-28 13:08:16 +09:00
Jacek Caban
12b4d7fd02
Bug 928351 - Char16.h and xpcom/strings/public parts r=ehsan,Waldo
2013-11-27 14:40:54 +01:00
Markus Stange
513b0bcce1
Bug 924103 - Add a FilterDescription data structure and code that can create FilterNodes from it. r=roc
2013-11-27 12:25:28 +01:00
Andrew McCreight
685a29f9b1
Bug 931738 - Remove nsPurpleBufferEntry from nsISupportsImpl.h. r=smaug
2013-11-26 14:29:59 -05:00
Benjamin Smedberg
9950de3641
Bug 938794 - Annotate OOM size as infallible string or data structures abort, r=froydnj
...
--HG--
extra : rebase_source : f84278dfbba92c6d75458b525a559b6f8598500f
2013-11-25 15:06:17 -05:00
Benoit Girard
a735170d84
Bug 942483 - Port paint-dumping to android/b2g. r=gal
2013-11-23 17:44:18 -05:00
Ehsan Akhgari
4fc038aac3
Bug 941405 - Remove the usages of the register keyword from XPCOM; r=froydnj
2013-11-21 10:42:40 -05:00
Ryan VanderMeulen
4864326b61
Backed out changeset 4887ddabba31 (bug 939231) for mochitest hangs.
...
CLOSED TREE
2013-11-21 09:39:38 -05:00
Nathan Froyd
c22bf1060b
Bug 940160 - constify the PLDHashTableOps struct in nsTHashtable::Init; r=ehsan
2013-11-18 21:34:53 -05:00
Ehsan Akhgari
3d3d26fb09
Bug 939231 - Stop requiring trace-malloc for the deadlock detector; r=bent
...
The existing deadlock detector code uses the trace-malloc stack walking
facilities, which is problematic for a few reasons.
1. It is only available in builds with --enable-trace-malloc, which is
not in the default build configuration.
2. It tries to capture a symbolicated stack trace every time that a lock
is acquired or released, which is really slow.
This patch changes the deadlock detector to use the XPCOM stack walking
and symbolification facilities, and avoids the symbolification until the
point where we need to print out the call stack, which makes the
deadlock detector a lot faster than it currently is in trace-malloc
builds.
2013-11-21 07:43:23 -05:00
Benjamin Smedberg
8fd1bc7f20
Bug 672843 part C - convert most of XPCOM except for xpcom/tests, r=vdjeric
2013-11-19 16:27:37 -05:00
Benjamin Smedberg
d3cbd5920f
Bug 672843 part B - Remove NS_ENSURE_PROPER_AGGREGATION, r=froydnj
2013-11-19 16:27:36 -05:00
Benjamin Smedberg
ddad5a704a
Bug 672843 part A - Create the new macro NS_WARN_IF and deprecate NS_ENSURE_* in favor of the explicit warning/return style. Also localize each macro so that it's debug and non-debug versions are local in the file, because that makes it easier for new contributors to understand. r=froydnj sr=jst
2013-11-19 16:27:36 -05:00
Jim Blandy
a448351084
Bug 896100: Convert all uses of OldMove and MoveRef to true rvalue references and the modern Move and Forward. r=luke, r=waldo
2013-11-19 09:05:36 -08:00
Ehsan Akhgari
e19377c4a9
Bug 936912 - Build xpcom in unified mode; r=froydnj
2013-11-18 21:34:00 -05:00
Mike Hommey
e80e877ab7
Bug 939044 - Remove most definitions of MODULE. r=mshal
2013-11-19 11:47:39 +09:00
Joshua Cranmer
f6366dd338
Bug 935789, part 1: Kill most uses of prbit.h, r=ehsan
...
--HG--
extra : rebase_source : 4c44e60c72e0ece3cea7ed1cf79079bd2a1b6487
2013-11-12 18:22:38 -06:00
Olli Pettay
b1b4cf61fc
Bug 937303 - Make CC logger to pass information about compartments, r=mccr8
2013-11-12 15:53:51 +02:00
Wes Kocher
b4defcfe2f
Backed out changeset 3d769520a0be (bug 937303) for build bustage
2013-11-11 14:50:00 -08:00
Olli Pettay
bdbe7564bf
Bug 937303 - Make CC logger to pass information about compartments, r=mccr8
...
--HG--
extra : rebase_source : 48545d4c83d88f34773ca84e542aa13316ca38c6
2013-11-12 00:12:00 +02:00
Nicholas Nethercote
3d05765fa7
Bug 933605 (part 2) - Don't declare all vars at the top of functions in pldhash.cpp. r=jorendorff.
...
--HG--
extra : rebase_source : 53da17b46bd986ceefbc66f23e43d2f5b7290fad
2013-10-31 22:33:29 -07:00
Nicholas Nethercote
4eb837e562
Bug 933605 (part 1) - Remove DEBUG_XXXbrendan-only code. r=jorendorff.
...
--HG--
extra : rebase_source : 8ebc751e246cf133f899a8563e75f9bff77d9eda
2013-10-31 22:30:45 -07:00
Nicholas Nethercote
e65ff7f65b
Bug 933074 - Allow a pldhash to be reasonably overloaded if it cannot be grown further. r=jorendorff.
...
--HG--
extra : rebase_source : 0760f78d5332b4791899c1db649493eeca10b978
2013-10-30 18:22:31 -07:00
Nicholas Nethercote
e1f9084a2a
Bug 815467 - Store pldhash's recursionLevel in a better place, so that debug and non-debug pldhashes take up the same amount of memory. r=dbaron.
...
--HG--
extra : rebase_source : c3c928f6706be4ef55620f05320050991a657a6c
2013-10-30 15:10:06 -07:00
Ed Morley
c8665d036e
Backed out changeset 82d5d92a3eac (bug 915555) for build failures on a CLOSED TREE
2013-10-25 17:59:24 +01:00
Jeff Walden
1b2f17e9ac
Bug 915555 - Don't redundantly cast an unnamed expression to an rvalue reference, because 1) it's dumb, and 2) gcc 4.4 warns about casting an rvalue reference to an rvalue reference (which is harmless due to C++11's rvalue semantics). f=hub, r=trivial
2013-09-12 10:55:14 -07:00
Cykesiopka
d2f6b7333c
Bug 914270 - Part 1: Simple/Automated moves. r=joey
2013-10-24 18:51:00 +01:00
Mike Hommey
b000a846c2
Bug 929905 - Consolidate sources in moz.build. r=gps
2013-10-25 08:23:05 +09:00
Mike Hommey
59a17d0f20
Bug 921492 - Make StrictOrderingOnAppendList use actual alphabetical sorting. r=mshal,r=gps
2013-10-24 08:05:43 +09:00
Mike Hommey
3fa7456cd6
Bug 913268 - Make CPP_SOURCES a StrictOrderingOnAppendList. r=mshal
2013-10-24 08:00:23 +09:00
Karl Tomlinson
52b6e813b1
b=928222 move ReentrantMonitorAutoExit from VideoUtils.h to ReentrantMonitor.h r=bsmedberg
...
--HG--
extra : transplant_source : %13O%CF%90x%02%B8%B6%A3%EA%AD%03%99%9A7%1B%A0%21%C4%A3
2013-10-24 07:22:53 +13:00
Nathan Froyd
329fa5960d
Bug 927427 - use __LP64__ in FileUtils.cpp for Linux; r=bsmedberg
2013-10-16 11:14:05 -04:00
Nathan Froyd
d390eec815
Bug 929494 - use template typedefs, not inheritance, to define nsTArray element copiers; r=ehsan
...
There's no reason to use inheritance here, and using plain typedefs avoids massive
amounts of code duplication for the common case of copying with mem*. Code savings
on Android come in at about 570K (!), or ~2% of libxul .text size, which is a massive
win.
2013-10-22 10:36:34 -04:00
Nicholas Nethercote
12943b95d9
Bug 927705 (part 2b) - Never overload pldhash past 75% full, because performance plummets near the end. r=jorendorff.
...
--HG--
extra : rebase_source : 7d3a0594e49ceb89550861debca03a40d3e479c1
2013-10-21 15:44:01 -07:00
Nicholas Nethercote
b0a8f4f8a7
Bug 927705 (part 2a) - Increase pldhash's max capacity from 1<<23 to 1<<26, and protect against uint32_t overflow when computing storage size. r=jorendorff.
...
--HG--
extra : rebase_source : 9293ec75e5ba8ad416d66ad6bf0c0788c0d35b02
2013-10-21 15:36:45 -07:00
Nicholas Nethercote
5b2c2e1985
Bug 927705 (part 1) - Remove PL_DHashTableSetAlphaBounds() and the supporting machinery. r=jorendorff.
...
--HG--
extra : rebase_source : 0b97b3276ec91d417fcfc12fe871d93b0cbd2263
2013-10-20 20:17:48 -07:00
Ms2ger
e5eac232d0
Merge inbound to m-c.
2013-10-20 10:40:40 +02:00
Ms2ger
2ff7c10052
Bug 923395 - Part b: Remove makefiles that only set LOCAL_INCLUDES and DEFINES; r=gps
2013-10-20 09:25:19 +02:00
Andrew McCreight
45c94c7843
Bug 923486, part 2 - Define NS_IsMainThread out-of-line in ASAN builds. r=ehsan
2013-10-03 11:58:41 -07:00
Andrew McCreight
ed66d6fc41
Bug 923486, part 1 - Harmonize ordering of definitions of NS_IsMainThread(). r=ehsan
2013-10-17 06:24:30 -07:00
Ehsan Akhgari
29efae9c22
Bug 928040 - Remove some prtypes.h inclusions from xpcom/; r=bsmedberg
...
--HG--
extra : rebase_source : 2f238320ba8330a27aa986af1146446dcb5d7128
2013-10-18 20:34:57 -04:00
Masatoshi Kimura
571b0da3ca
Bug 925599 - Introduce version test functions using VerifyVersionInfo(). r=bbondy
2013-10-19 03:14:31 +09:00
Nathan Froyd
fac6a479ca
Bug 925173 - don't depend on HAVE_64BIT_OS in FileUtils.cpp; use the standard __LP64__ macro instead; r=bsmedberg
...
This point in the code is Mac-specific, so we are free to use Mac-specific macros
here. Just use __LP64__ instead of HAVE_64BIT_OS.
2013-10-09 17:15:53 -04:00
Birunthan Mohanathas
0cfca404c5
Bug 784739 - Switch from NULL to nullptr in xpcom/ (2/3); r=ehsan
2013-10-10 16:41:39 -04:00
Benjamin Smedberg
b5fb993e7f
Bug 753687 - nsCategoryCache implementation doesn't free old category entries if their contract mapping is removed using .unregisterFactory. Store the factory objects directly in the map, instead of keeping both a map and a separate list. r=froydnj
2013-10-10 08:48:03 -04:00
Ms2ger
f4153f40d4
Bug 900980 - Part a: Move unconditional assignments to EXPORT_LIBRARY to moz.build; rs=gps
2013-10-03 09:11:13 +02:00
Andrew McCreight
69e40bc338
Bug 915488 - Make CC participant's Root, Unroot and Unlink methods infallible. r=smaug
2013-09-11 18:57:53 -07:00
Benoit Jacob
e5f7d1d148
Bug 919219 - Split nsMainThreadSurfaceRef out of gfxASurface.h, into ImageContainer.h - r=jrmuizel
2013-09-24 16:45:13 -04:00
Karl Tomlinson
9c5c00238e
b=914033 add cycle collection helpers for nsTHashtable and nsRefPtrHashKey r=khuey
...
--HG--
extra : transplant_source : %5D%26%5C%A8%0A%AAg%FE%B57%F6%BChvl%FFg%F8%9E%C6
2013-09-24 13:47:30 +12:00
Kyle Huey
6baf345b3f
Bug 919380: Disable threadsafety assertions when --enable-profiling is set. r=smaug
2013-09-24 09:53:40 +08:00
Ehsan Akhgari
769424ae11
Bug 918923 - Part 1: Fix the include-what-you-use pragmas in the string headers; r=bsmedberg
2013-09-23 13:23:56 -04:00
Joey Armstrong
dad034f5cd
bug 882907: move SDK_LIBRARY to mozbuild. r=mshal
2013-09-20 18:00:48 -04:00
Benoit Jacob
229d2760cd
Bug 913847 - Include MainThreadUtils.h instead of nsThreadUtils.h - r=ehsan
2013-09-19 09:54:42 -04:00
Benoit Jacob
ba61b1281e
Bug 913847 - split NS_IsMainThread and NS_GetMainThread into a new MainThreadUtils.h header - r=ehsan
2013-09-19 09:54:41 -04:00
Wes Kocher
d67c764568
Backed out changeset 4eb44a3149ed (bug 913847)
2013-09-18 17:19:23 -07:00
Wes Kocher
0b90687d1e
Backed out changeset 040522aacba4 (bug 913847)
2013-09-18 17:18:56 -07:00
Benoit Jacob
5526ea7b69
Bug 913847 - Include MainThreadUtils.h instead of nsThreadUtils.h - r=ehsan
2013-09-18 18:50:32 -04:00
Benoit Jacob
294691634b
Bug 913847 - split NS_IsMainThread and NS_GetMainThread into a new MainThreadUtils.h header - r=ehsan
2013-09-18 18:50:32 -04:00
Joshua Cranmer
9a8d14b011
Bug 904985 - Use Char16.h in favor of NS_LL, Part 3: kill NS_LL. r=dbaron
...
--HG--
extra : rebase_source : bc105a8cbb87cc9b6b2db0734d9841fe599e794b
2013-09-17 22:43:21 -05:00
Joshua Cranmer
69250ebe86
Bug 904985, part 2: Use char16_t for NS_LITERAL_STRING, r=glandium, dbaron.
...
--HG--
extra : rebase_source : b4c9def93d907724fb4a1bc3f6279db87a11fb1f
2013-09-17 22:43:12 -05:00
Ehsan Akhgari
08499bf765
Bug 917348 - Part 1: Make NS_IMPL_CYCLE_COLLECTING_AGGREGATED build on non-debug configurations; r=bsmedberg
...
--HG--
extra : rebase_source : 4984cf31e6855b721dabb27315b4255179aa586d
2013-09-17 12:05:13 -04:00
Brian O'Keefe
916782e929
Bug 865673 - Convert objs.mk to objs.mozbuild. r=gps
2013-08-30 09:09:06 -04:00
Andrew McCreight
3047b2a24e
Bug 912747 - Change nsCycleCollectionHoldDrop.h to mozilla/HoldDropJSObjects.h. r=khuey
...
--HG--
rename : xpcom/glue/nsCycleCollectionHoldDrop.h => xpcom/glue/HoldDropJSObjects.h
2013-09-10 08:29:43 -07:00
Mats Palmgren
2093e63d6e
Bug 911283 - Introduce nsTArray::SetLengthAndRetainStorage which unlike SetLength does not deallocate/reallocate the internal storage. Use it in NS_FillArray. r=bsmedberg
2013-09-08 02:05:02 +00:00
Valentin Gosu
77d1d37b73
Bug 622728 - Add NS_NewRunnableMethodWithArg. r=bsmedberg
2013-09-06 21:29:24 -04:00
Ms2ger
cc64d2432b
Bug 909953 - Introduce a HTMLAllCollection class; r=smaug
2013-09-06 08:41:42 +02:00
Robert O'Callahan
03e7828db2
Bug 910989. Remove nsTHashtable::Init, fallible allocation, and MT hashtables. r=ehsan,bsmedberg
...
--HG--
extra : rebase_source : 0787130b1814c74bfb38dc178de94022f0b2e64e
2013-09-02 20:41:57 +12:00
Mike Hommey
f8bc7fa754
Bug 912293 - Remove now redundant boilerplate from Makefile.in. r=gps
2013-09-05 09:01:46 +09:00
Andrew McCreight
01af9297c7
Bug 883920 - use templates for {Hold,Drop}JSObjects. r=peterv
2013-08-16 13:10:17 -07:00
Chris Peterson
775844e15d
Bug 911425 - Fix -Wsign-compare warning in xpcom/glue/FileUtils.cpp. r=glandium
2013-08-07 22:52:41 -07:00
Kyle Huey
197c9dc222
Bug 907914: Turn on refcounting threadsafety assertions in opt trunk builds. r=bent
2013-08-30 10:06:37 -07:00
Justin Lebar
66f7416cab
Bug 909977 - Rename mozilla::Move to mozilla::OldMove, and make mozilla::Move a synonym for std::move(). r=waldo
...
--HG--
extra : rebase_source : 7b3bb02cc8cbc0ad6721c6c3895564d9567b8ddb
2013-08-29 11:54:14 -07:00
Karl Tomlinson
a9d139bd75
b=903270 set thread name for initial event of NS_NewNamedThread() r=dougt
...
--HG--
extra : transplant_source : %E7%24%5Be%ED.%F3HH%9A%9E%02r%EB%29%CD%EDf%09%F1
2013-08-27 12:36:45 +12:00
Makoto Kato
584c783c77
Bug 901820 - Part 2. Remove nsCRT::strdup/nsCRT::strndup impl. r=bsmedberg
2013-08-22 19:32:11 +09:00
Ms2ger
913bab58b0
Merge PGO-green changeset from inbound to m-c.
2013-08-22 10:31:44 +02:00
Ms2ger
3a103a7e9f
Bug 883284 - Part f: Move LIBXUL_LIBRARY into moz.build (p-z); r=glandium
2013-08-22 08:56:01 +02:00
Ms2ger
18cd92e9b4
Bug 903844 - Add/update include-what-you-use annotations for various files; r=ehsan+khuey
2013-08-22 08:31:21 +02:00
Andrew McCreight
59208f6acc
Bug 614238 - Dynamically check that classes QI to their own participant. r=smaug
2013-08-19 13:49:58 -07:00
Nicholas Cameron
0514eb1ecd
Bug 903816. Fixups in non-layers files. r=roc
2013-08-12 11:15:10 +12:00
Wes Kocher
90c9ce278d
Backed out changeset cfecdf10dcba (bug 614238) for b2g debug bustage on a CLOSED TREE
2013-08-20 15:47:28 -07:00
Andrew McCreight
41efd2023b
Bug 614238 - Dynamically check that classes QI to their own participant. r=smaug
2013-08-19 13:49:58 -07:00
Justin Lebar
b0df52ae5e
Bug 906918 - Use MoveRef's in nsTHashtable. r=bsmedberg
...
This patch adds a move constructor for nsTHashtable and also lets
nsTHashtable use its EntryType's move constructor, if one is available.
This patch also adds move constructors for nsCharPtrHashKey and
nsUnicharPtrHashKey. Using these new constructors, nsTHashtable will be
able to avoid strdup()'ing all of its keys whenever it resizes the
table.
2013-08-20 09:08:00 -07:00
Justin Lebar
9e4a6cea73
No bug - Fix comment in nsTHashtable.h so it no longer mentions PR_TRUE/PR_FALSE. r=me DONTBUILD
2013-08-15 16:33:54 -07:00
Trevor Saunders
c64e5ea4a3
bug 905418 - get rid of more static constructors in dom/bindings/ r=smaug
2013-08-14 18:04:24 -04:00
Nathan Froyd
4713a5db38
Bug 905149 - make mozilla::CallStack constexpr to avoid static constructors; r=ehsan
2013-08-14 09:43:36 -04:00
Ms2ger
30f4e6e119
Merge latest PGO-green inbounc changeset to m-c.
2013-08-14 14:45:47 +02:00
Ms2ger
9d023a67df
Bug 904110 - Move alignment features out of Util.h into a new header; r=Waldo
2013-08-14 09:00:52 +02:00
Ehsan Akhgari
0bef5b7609
Bug 904121 - Do not include nsIMemory in nsMemory.h; r=vlad
...
--HG--
extra : rebase_source : b525ab299eeefdd39f6e919c8a0c6407f9bac209
2013-08-12 17:44:56 -04:00
Kyle Huey
691d1dcdbd
Bug 904143: Remove nsISupports inheritance from PromiseResolver. r=smaug
2013-08-13 10:46:18 -07:00
Kyle Huey
7ea5a68da2
Bug 901630: Remove support for the cc thread. r=mccr8
2013-08-13 10:45:32 -07:00
Phil Ringnalda
d2099e030b
Back out d393cfeb5dbf:9f82224bb8a3 (bug 903816) for Android reftest failures
...
CLOSED TREE
2013-08-11 19:21:17 -07:00
Nicholas Cameron
de3e98e1de
Bug 903816. Fixups in non-layers files. r=roc
2013-08-12 11:15:10 +12:00
Trevor Saunders
e62a12b52f
bug 886526 - remove IS_COMPONENT and MODULE_NAME makefile vars for things in libxul r=bsmedberg r=glandium
2013-08-08 20:12:37 -04:00
Nicholas Nethercote
7c94740517
Bug 902062 - Convert PL_DHASH_ENTRY_IS_* macros to inline functions. r=ehsan.
...
--HG--
extra : rebase_source : 7be2f1bb51852c3ed0c07b777ff21a92e133412d
2013-08-07 15:28:33 -07:00
Kartikaya Gupta
8be01cf754
Bug 901187 - Send printf_stderr output to Visual Studio console if it is attached. r=bsmedberg
2013-08-02 17:32:48 -07:00
Ms2ger
50634577d5
Merge m-c to inbound.
2013-08-02 11:07:57 +02:00
Ms2ger
a4e67abf5e
Bug 897921 - Remove some dead assignments in makefiles; r=mshal
2013-08-02 09:03:55 +02:00
Mike Hommey
2e729aa83d
Bug 881323 - Re-implement CycleCollectorParticipant with actual vtables, with constexpr to avoid static initializers. r=mccr8
2013-08-02 10:29:05 +09:00
Ehsan Akhgari
2824b29025
Bug 895322 - Part 1: Replace the usages of MOZ_STATIC_ASSERT with C++11 static_assert; r=Waldo
...
This patch was mostly generated by running the following scripts on the codebase, with some
manual changes made afterwards:
# static_assert.sh
#!/bin/bash
# Command to convert an NSPR integer type to the equivalent standard integer type
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 "*.cc" \
-o -iname "*.mm" \) | \
xargs -n 1 `dirname $0`/assert_replacer.py #sed -i -e "s/\b$1\b/$2/g"
}
convert MOZ_STATIC_ASSERT static_assert
hg rev --no-backup mfbt/Assertions.h \
media/webrtc/signaling/src/sipcc/core/includes/ccapi.h \
modules/libmar/src/mar_private.h \
modules/libmar/src/mar.h
# assert_replacer.py
#!/usr/bin/python
import sys
import re
pattern = re.compile(r"\bMOZ_STATIC_ASSERT\b")
def replaceInPlace(fname):
print fname
f = open(fname, "rw+")
lines = f.readlines()
for i in range(0, len(lines)):
while True:
index = re.search(pattern, lines[i])
if index != None:
index = index.start()
lines[i] = lines[i][0:index] + "static_assert" + lines[i][index+len("MOZ_STATIC_ASSERT"):]
for j in range(i + 1, len(lines)):
if lines[j].find(" ", index) == index:
lines[j] = lines[j][0:index] + lines[j][index+4:]
else:
break
else:
break
f.seek(0, 0)
f.truncate()
f.write("".join(lines))
f.close()
argc = len(sys.argv)
for i in range(1, argc):
replaceInPlace(sys.argv[i])
--HG--
extra : rebase_source : 4b4a4047d82f2c205b9fad8d56dfc3f1afc0b045
2013-07-18 13:59:53 -04:00
Ehsan Akhgari
ef4b479714
Bug 872127 - Part 2: Replace mozilla/StandardInteger.h with stdint.h; r=Waldo,ted
2013-07-30 10:25:31 -04:00
Mike Hommey
378ab5094e
Bug 898916 - Properly align statically allocated classinfo objects. r=bsmedberg
2013-07-30 08:57:28 +09:00
Trevor Saunders
108b7dd046
backout bug 886526 because it probably made us use a lot more memory to link on windows
2013-07-29 11:03:21 -04:00
Christian Holler
8cf183b552
Bug 895845 - Temporary ASan workaround in NS_IsMainThread. r=mccr8
...
--HG--
extra : rebase_source : 25d692141c3e609c59a3f1eaf81f317f08cb6e43
2013-07-27 01:37:19 +02:00
Paul Adenot
53a2f501c5
Bug 882543 - Retain storage for media streams accross iterations instead of reallocating. r=jlebar,roc
2013-07-19 16:40:56 +02:00
Paul Adenot
85bccc71ae
Bug 894941 - Move SSE.{h,cpp} and arm.{h,cpp} to mozglue/build/. r=glandium
...
--HG--
rename : xpcom/glue/SSE.cpp => mozglue/build/SSE.cpp
rename : xpcom/glue/SSE.h => mozglue/build/SSE.h
rename : xpcom/glue/arm.cpp => mozglue/build/arm.cpp
rename : xpcom/glue/arm.h => mozglue/build/arm.h
rename : xpcom/tests/ShowSSEConfig.cpp => mozglue/tests/ShowSSEConfig.cpp
2013-07-26 18:46:31 +02:00
Ms2ger
45a72b59e3
Bug 896385 - Use nsInterfaceHashtable for nsXBLPrototypeBinding::mInterfaceTable; r=mrbkap
2013-07-24 09:39:56 +02:00
Ryan VanderMeulen
9a1a3a0658
Merge m-c to inbound on a CLOSED TREE.
2013-07-23 16:14:26 -04:00
Viral Wang
3ef8873243
Bug 890144 - Add copedCloseFile to reduce memory leak. r=jlebar
2013-07-23 08:30:55 -04:00
Arnaud Sourioux
38d6c0d455
Bug 883360 - Remove bool operator and nsMainThreadPtrHolder conversion. r=bsmedberg
2013-07-19 12:53:12 -04:00
Ryan VanderMeulen
d2482ea688
Backed out 5 changesets (bug 882543) for crashtest orange on a CLOSED TREE.
...
Backed out changeset b36516aab389 (bug 882543)
Backed out changeset 07550003a24a (bug 882543)
Backed out changeset f4045c40afb4 (bug 882543)
Backed out changeset 1b87e0bd2858 (bug 882543)
Backed out changeset 8d76a3440800 (bug 882543)
2013-07-19 12:00:48 -04:00
Paul Adenot
63bc0bcbc6
Bug 882543 - Retain storage for media streams accross iterations instead of reallocating. r=jlebar,roc
2013-07-19 16:40:56 +02:00
Ehsan Akhgari
192bc42d5e
Bug 895141 - Remove useless prlong.h inclusions from the tree; r=jcranmer
2013-07-18 12:06:38 -04:00
Benoit Girard
41b1df67ba
Bug 838803 - Remove HAVE_STDCALL to work around clang bug. r=glandium
...
--HG--
extra : rebase_source : e1cdb524a4f7f0742f2051e5915e5e21db4c0423
2013-07-16 22:01:50 -04:00
Joshua Cranmer
b82a7849fb
Bug 884061 - Part 4: Remove nsAtomicRefcnt.h, r=jlebar
...
--HG--
extra : rebase_source : ce24ab345baa48104328e3c101b7266a31e81870
2013-07-11 15:21:45 -05:00
Joshua Cranmer
1a6dffc73f
Bug 884061 - Part 3y: Use NS_DECL_THREADSAFE_ISUPPORTS in xpcom/, r=bsmedberg
...
--HG--
extra : rebase_source : d54f6973e3ff859207115013e8361781769ffc76
2013-07-18 21:31:26 -05:00
Joshua Cranmer
c0c97c389f
Bug 884061 - Part 2: Add NS_DECL_THREADSAFE_ISUPPORTS, r=jlebar.
...
--HG--
extra : rebase_source : 70514a7fc7760cadf8608e038d686ad5b2542571
2013-07-13 20:28:54 -05:00
Joshua Cranmer
96bb0c3a50
Bug 884061 - Part 1: Use mozilla::Atomic in NS_DECL_INLINE_THREADSAFE_REFCOUNTING, r=jlebar
...
--HG--
extra : rebase_source : a3a987a2a4a52603e0461f40396cca06b6cbe989
2013-07-13 20:18:03 -05:00
Mike Hommey
d01870f66f
Bug 892401 - Remove NEW_H. r=ted
2013-07-12 09:16:41 +09:00
Ryan VanderMeulen
d806e1e244
Merge m-c to inbound.
2013-07-10 09:45:16 -04:00
Olli Pettay
b002b30b2a
bug 789919, (snow-white) make addref/release of CCable objects faster by removing indirect refcnt increase/decrease, r=mccr8, test changes r=ehsan
...
--HG--
extra : rebase_source : 2a3b22425c14d6daedc91d62a652c34431acd2fb
2013-07-09 13:30:58 -04:00
Ms2ger
1a40020bdd
Bug 213324 - Remove getter_AddRefs(T*); r=ehsan
2013-07-10 11:56:21 +02:00
Steve Workman
881c09835a
Bug 497003 - Support delivery of OnDataAvailable on the HTML5 parser thread r=hsivonen r=bholley r=bz
2013-07-08 18:45:26 -07:00
Emanuel Hoogeveen
e32590ca0d
Bug 890714 - Fix mixed line endings. r=joe, r=jesup
2013-07-08 16:33:15 -04:00