Nicholas Nethercote
a58025002f
Bug 1375392 - Tweak the PROFILER_LABEL* macros. r=mstange.
...
This patch makes the following changes to the macros.
- Removes PROFILER_LABEL_FUNC. It's only suitable for use in functions outside
classes, due to PROFILER_FUNCTION_NAME not getting class names, and it was
mostly misused.
- Removes PROFILER_FUNCTION_NAME. It's no longer used, and __func__ is
universally available now anyway.
- Combines the first two string literal arguments of PROFILER_LABEL and
PROFILER_LABEL_DYNAMIC into a single argument. There was no good reason for
them to be separate, and it forced a '::' in the label, which isn't always
appropriate. Also, the meaning of the "name_space" argument was interpreted
in an interesting variety of ways.
- Adds an "AUTO_" prefix to PROFILER_LABEL and PROFILER_LABEL_DYNAMIC, to make
it clearer they construct RAII objects rather than just being function calls.
(I myself have screwed up the scoping because of this in the past.)
- Fills in the 'js::ProfileEntry::Category::' qualifier within the macro, so
the caller doesn't need to. This makes a *lot* more of the uses fit onto a
single line.
The patch also makes the following changes to the macro uses (beyond those
required by the changes described above).
- Fixes a bunch of labels that had gotten out of sync with the name of the
class and/or function that encloses them.
- Removes a useless PROFILER_LABEL use within a trivial scope in
EventStateManager::DispatchMouseOrPointerEvent(). It clearly wasn't serving
any useful purpose. It also serves as extra evidence that the AUTO_ prefix is
a good idea.
- Tweaks DecodePool::SyncRunIf{Preferred,Possible} so that the labelling is
done within them, instead of at their callsites, because that's a more
standard way of doing things.
2017-06-22 17:08:53 +10:00
Liang-Heng Chen
21c607a6f6
Bug 624837 - use calculated string length instead of magic number; r=bagder
...
The original magic number is incorrect.
MozReview-Commit-ID: LtdnINTONHq
2017-06-14 18:47:58 +08:00
Liang-Heng Chen
ab019fbd70
Bug 1366133 - Part 1: make nsISystemProxySettings::GetPACURI happen in another thread; r=bagder
...
MozReview-Commit-ID: FyiNM8KX0gk
2017-05-24 14:36:53 +08:00
Liang-Heng Chen
a55810daae
Bug 1366133 - Part 0: remove support for Windows Vista and earlier versions; r=bagder
...
In Windows Vista or earlier versions of Windows, it requires to call
InternetOptionQuery again with INTERNET_PER_CONN_FLAGS (see [1] for more
information). Since we're not going to support those Windows versions,
it is safe to remove this query.
[1] https://msdn.microsoft.com/en-us/library/windows/desktop/aa385145(v=vs.85).aspx
MozReview-Commit-ID: DQFxYZsb3MW
2017-05-24 11:06:07 +08:00
Liang-Heng Chen
c974104639
Bug 1028195 - make proxy bypass rule consistent; r=bagder
...
MozReview-Commit-ID: CMAUt1p3L3u
2017-02-08 15:10:02 +08:00
Liang-Heng Chen
79df15ca74
Bug 1258977 - Part 1: separate match function; r=bagder
...
MozReview-Commit-ID: J4DVAzI0bZm
2016-05-26 14:34:51 +08:00
David Rajchenbach-Teller
323ccee44c
Bug 1224374 - Profiler labels for the top 26-100 chrome hangs;r=BenWa
2016-01-15 11:38:03 +01:00
Sebastian Hengst
2e241e7e5e
Backed out 2 changesets (bug 1224374) for Windows bustage. r=bustage on a CLOSED TREE
...
Backed out changeset 5f458e6e4997 (bug 1224374 )
Backed out changeset 0dc02cb0b604 (bug 1224374 )
2016-01-19 21:30:41 +01:00
David Rajchenbach-Teller
f7045cd073
Bug 1224374 - Profiler labels for the top 26-100 chrome hangs;r=BenWa
2016-01-15 11:38:03 +01:00
Dragana Damjanovic
f5e3e71a6d
Bug 905127 - Part 2 - remove unnecessary nsNetUtil.h includes r=jduell
2015-07-06 07:55:00 +02:00
Emanuel Hoogeveen
b30abdc582
Bug 905127 - Part 1 - Make some functions from nsNetUtil not inline. r=jduell
2015-07-07 04:17:00 +02:00
Ehsan Akhgari
ea41d8de48
Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
...
This patch was automatically generated using the following script:
function convert() {
echo "Converting $1 to $2..."
find . \
! -wholename "*/.git*" \
! -wholename "obj-ff-dbg*" \
-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 MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04: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
Birunthan Mohanathas
88a0348924
Bug 713082 - Part 2: Rename Util.h to ArrayUtils.h. r=Waldo
2013-12-08 21:52:54 -05:00
Birunthan Mohanathas
b902f0393c
Bug 784739 - Switch from NULL to nullptr in toolkit/; r=ehsan
2013-10-10 16:36:42 -04:00
Joshua Cranmer
4c1f2d0784
Bug 884061 - Part 3v: Use NS_DECL_THREADSAFE_ISUPPORTS in toolkit/, r=Mossop
2013-07-18 21:24:15 -05:00
Masatoshi Kimura
77f4c4a730
Bug 817568 - Enclose more API calls with __try...__except. r=mcmanus
2013-01-31 21:47:58 +09:00
Jacek Caban
038aa5769c
Bug 829518 - Use MOZ_SEH_* macros for SEH exceptions
2013-01-14 13:27:33 +01:00
Masatoshi Kimura
9a8e04dbb1
Bug 829518 - Enclose InternetQueryOptionW in __try...__except to suppress crash. r=mcmanus
2013-01-13 05:30:15 +09:00
Trevor Saunders
5f4dc421fd
bug 829288 - fix some toolkit/ warnings r=ehsan
2013-01-10 06:44:15 -05:00
Patrick McManus
6331337694
bug 769764 move proxy resolution to separate thread and remove sync api r=biesi sr=josh
2012-09-14 16:27:46 -04:00
Ed Morley
7263dd5913
Backout 6d71ff5b4b36 (bug 347307), 75a3c47a3fe7 (bug 507578), 828f91de7143 (bug 769764) for near permaorange OS X 10.8 leaks
2012-09-17 16:54:09 +01:00
Patrick McManus
3d609df83a
bug 769764 move proxy resolution to separate thread and remove sync api r=biesi sr=josh
2012-09-14 16:27:46 -04:00
Ed Morley
e768620be8
Backout 3182f9d08c2d (bug 347307), 2a30593cca79 (bug 507578), b87b27f5a417 (bug 769764) for m-oth permaorange in browser_463205.js
2012-09-13 22:42:29 +01:00
Patrick McManus
7bc21b4fdf
bug 769764 move proxy resolution to separate thread and remove sync api r=biesi sr=josh
2012-09-13 15:22:56 -04:00
Masatoshi Kimura
058bd25789
Bug 787757 - Use INTERNET_PER_CONN_FLAGS_UI if available. r=jimm
2012-09-12 22:24:00 -04:00
Randell Jesup
3b4961b603
Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg
2012-09-01 22:35:17 -04: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
Masatoshi Kimura
ae5660eaa6
Bug 771115 - Get System Proxy Settings from the active Internet connection. r=jimm
2012-07-09 20:53:17 -04:00
Masatoshi Kimura
00b2bc2f93
Bug 563169 - Use WinInet function instead of reading registry. r=jmathies
2012-06-13 21:12:36 -04:00
Gervase Markham
cb6a072c2a
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Ehsan Akhgari
478ad1a412
Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron
...
Landing on a CLOSED TREE
2011-10-17 10:59:28 -04: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
Benjamin Smedberg
0e824d90bb
Bug 568691 part A - register static and binary components using data tables rather than programmatic nsIComponentRegistrar methods. This part contains the important needs-review bits of the change: part B contains the mechanical changes to each module in order to actually get a working build. Part C will contain changes necessary to register JS components from .manifest files
2010-06-10 14:11:11 -04:00
Josh Aas
49e9a5edb0
Improve proxy exception parsing on Mac OS X and Windows. b=470207 sr=roc
2009-05-06 16:44:11 -04:00
Mitchell Field
dd1f743cae
Bug 485764. Implement system proxy settings module for Windows. r+sr=roc
2009-04-25 20:29:32 +12:00