Catalin Iacob
6f4758d23e
Bug 798914 (part 5) - Use newly introduced mozilla::MallocSizeOf instead of nsMallocSizeOfFun. r=njn.
...
--HG--
extra : rebase_source : fc472490dd978d165f02f77ed37f07aed6e5bb61
2013-06-23 14:03:39 +02:00
Joshua Cranmer
dcb93daf4b
Bug 856108 - Port static analyses to clang, part 3: Remove NS_STACK_CLASS. r=bsmedberg
2013-04-11 22:22:44 -05:00
Joshua Cranmer
5765d5aec4
Bug 767563 - Add a clang static checker, part 3: Move the MOZ_MUST_OVERRIDE macro to MFBT. r=Waldo
2013-03-23 21:14:43 -05:00
Jeff Walden
d6e63dc265
Bug 836438 - Always implement nsresult using an unsigned 32-bit integer type. r=ehsan
...
--HG--
extra : rebase_source : f9d9d7772decee36a27ef09eb018b9912bf7bf6b
2013-01-30 15:32:44 -08:00
Trevor Saunders
801c9b79ba
bug 822717 - remove checks for old gcc r=glandium
2012-12-18 13:22:28 -05:00
Jacek Szpot
761b11160f
Bug 792180 - Replace NS_{UN,}LIKELY with MOZ_{UN,}LIKELY; r=ehsan
2012-10-26 15:32:10 +02:00
Aryeh Gregor
93caa9fc7e
Bug 777292 - Make nsresult an enum; r=ehsan,cjones,bsmedberg
2012-08-07 11:27:45 +03:00
Jeff Muizelaar
9d45f08968
Bug 782647. Move the nullptr workaround macros to MFBT so that it can be shared. r=waldo
...
This also changes the header to use compiler detection instead of a
configure test. This makes the header more portable because
it doesn't require the configure infrastructure.
2012-09-01 16:16:17 -04:00
Ehsan Akhgari
f4a93b7422
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
f75e672ac4
Bug 788014 - Part 1: Define nsrefcnt to be unsigned long unconditionally on Windows; r=jrmuizel
...
On Windows, IUknown::AddRef and IUnknown::Release are defined to
return ULONG, which is defined as unsigned long. The existing
code relies on the PR_BYTES_PER_LONG macro which is #defined in
prtypes.h to always be 4 on Windows. If we remove the prtypes.h
inclusion from nscore.h, in the places where prtypes.h is not
included by other things, we will fall into the other path in the
#ifdef condition which defines nsrefcnt to be unsigned int, which
causes the signature of AddRef and Release to change, which
results in linker errors.
There are a couple of reasons why this change is correct:
1. On both Win32 and Win64, the size of the long type is 4 bytes,
always. And prtypes.h doesn't detect the size of longs, it just
assumes it, so this check is really a tautology.
2. If the size of the long type changes on Windows, sometime,
the return value of AddRef and Release on Windows should change
size as well in order to maintain binary compatibility with
IUnknown, and before this change, the code would fail to hold
that promise.
--HG--
extra : rebase_source : 8333582b494aaca17c91cf35287a084083219050
2012-09-07 15:09:01 -04:00
Ehsan Akhgari
e368dc9c85
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
Aryeh Gregor
a88ffe5c80
Bug 626472 part 3 - Remove nsnull for good; r=ehsan
2012-08-12 13:43:47 +03:00
Chris Peterson
009018e502
Bug 777511 - #define nullptr __null for gcc <= 4.5. r=ehsan
...
--HG--
extra : rebase_source : dd24e15d4b271d7ae1f604b6d7e4d0e76f614f40
2012-07-26 15:29:18 -07:00
Joshua Cranmer
497e7cd9bb
Bug 773637 - Kill NS_SCRIPTABLE attributes, Part 2: Remove NS_SCRIPTABLE. r=ehsan
...
--HG--
extra : rebase_source : 83020e0a1961ed5b33d5e0599419c6b7b82caa87
2012-07-06 15:31:49 -05:00
Joshua Cranmer
a1186c1020
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
Joshua Cranmer
d539846cab
Bug 702877 - Replace NS_OVERRIDE with MOZ_OVERRIDE. r=ehsan
...
--HG--
extra : rebase_source : 1843575683c3897f96f3966cbce26140ff1a7d90
2012-07-06 13:15:45 -05:00
Aryeh Gregor
65eef91085
Bug 626472 part 1 - Define nsnull as nullptr where available; r=ehsan
2012-07-20 14:16:17 +03:00
Jeff Muizelaar
cd56fffd20
Bug 771317. Fix comment about FASTCALL and inline functions. r=espindola
...
Calling convention does not make a difference on functions that are inlined,
but that feels obvious because no call is being made. Inline functions are not
necessarily inlined so this comment is somewhat misleading.
--HG--
extra : rebase_source : f634f18d1a6669147f53162a7bc0ab08b145cc43
2012-07-05 17:38:30 -04:00
Gervase Markham
82ff7027aa
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Mark Capella
bb0cb90d39
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
Nicholas Nethercote
7559a70a04
Bug 715453 - Remove computedSize from nsMallocSizeOfFun. r=jlebar,bhackett.
...
--HG--
extra : rebase_source : a65039a407daab45360a5b375b53cbf1bc05b7f6
2012-01-25 00:52:51 -08:00
Makoto Kato
5c0c388ba9
Bug 715045 - Remove old vc support code. r=jimm
2012-01-05 16:52:22 +09:00
Makoto Kato
6134979a79
Bug 712198 - Remove NS_WIN32, NS_UNIX and NS_OS2. r=khuey
2011-12-21 14:09:17 +09:00
Andrew Quartey
6fe0fd072a
Bug 706010 - Remove NS_SPECIALIZE_TEMPLATE and HAVE_CPP_MODERN_SPECIALIZE_TEMPLATE_SYNTAX; r=khuey a=cleanup/removal
2011-12-13 14:17:59 +00:00
Jeff Walden
84471e527a
Bug 707352 - Remove NS_FINAL_CLASS completely. r=cjones
2011-12-05 17:10:05 -05:00
Nicholas Nethercote
6c6258e659
Bug 698968 - Add mallocSizeOf functions and start using them. r=jlebar,bhackett,jfkthame, sr=bz.
2011-11-27 19:03:14 -08:00
Jonathan Watt
66f54fe5a4
Bug 695303 - Add a mozilla::clamped function to replace NS_CLAMP (so side affects of args are evaluated no more than once) and NS_MIN(max, NS_MAX(val, min)) (to make code clearer). r=bsmedberg.
2011-10-28 19:33:28 +01:00
Ehsan Akhgari
92064e6d3f
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
Rafael Ávila de Espíndola
16f77da63f
Bug 682066 - Drop NS_DEFCALL. r=benjamin.
...
Having NS_DEFCALL around causes problems for clang since it uses
the regpart attribute when deciding template instantiations. In
particular, it would not use the generic method specialization of
nsRunnableMethodTraits.
2011-08-30 14:22:00 -04:00
Matheus Kerschbaum
5a0a7c6411
Bug 680625 part 0: Remove checks and workarounds for 20th century compilers. r=ted
2011-08-26 00:35:13 +01:00
Matheus Kerschbaum
8a4cb927fd
Bug 678155 - Remove NS_COM. r=bsmedberg
2011-08-18 15:46:39 +02:00
Jesse Ruderman
02491c57ba
Bug 659825 - Rename NS_DEPRECATED to MOZ_DEPRECATED to avoid conflict with Mac 10.7 SDK. r=jcranmer sr=bsmedberg
2011-06-08 09:34:02 +02:00
Matheus Kerschbaum
6eb93f7dd3
Bug 648911 - Remove support for non-libxul builds. r=ted,joedrew
2011-05-23 18:54:47 +02:00
Jacek Caban
5eafd1843f
Bug 614631 - Macros for SEH exception depending on compiler configuration r+a=benjamin
2011-01-11 10:16:59 +00:00
Walter Meinl
859a94a18d
Bug 577011 - [OS/2] make _declspec unconditionally default symbol export r=daveryeo@telus.net a=benjamin
...
--HG--
extra : rebase_source : f73a926174bd7905f177b2e914492e42b90ac8c0
2010-11-09 11:13:03 +01:00
Saint Wesonga
3a14ffd62c
Bug 581479 - Convert C++ style comment. r=benjamin, a=comment-only
2010-08-08 17:06:35 +02:00
Benjamin Smedberg
013eba5ec7
Bug 573268 - The XPTI rewrite caused an (intentional) leak at shutdown; free this data only in trace-malloc builds so that leakstats are still useful. r=dbaron
2010-07-14 13:09:42 -04:00
Jacek Caban
4bf278c5e9
Bug 569547 - fastcall useless on win64. r=benjamin
2010-06-14 12:12:48 +02:00
Philip Prindeville
94c342007d
Bug 529921 browser part. Implement core support for RFC-2597/2598/3168 Quality-of-Service (DSCP) marking. r=biesi
2010-06-02 22:25:01 -04:00
Chris Jones
ce99d8226f
Bug 557060: Interpose _Throw() on MSVC and centralize pseudo-throw code in mozalloc. r=ehsan sr=bsmedberg
2010-04-20 15:12:02 -05:00
Julian Seward
4b42858919
Bug 547964 - r=dbaron
...
--HG--
extra : rebase_source : 88834502ab1cdac1aa7dac9557ee1aa40ccc354f
2010-04-12 11:53:59 -04:00
Chris Jones
aeb1d69308
Bug 550401: Do the __declspec import/export dance in mozalloc to avoid MSVC warnings. r=bsmedberg
2010-04-08 13:05:02 -05:00
Chris Jones
f181d3cf73
Bug 441324, part 4: Enable infallible operator new (leaving malloc fallible) in Gecko, and play well with the wince shunt. r=bsmedberg r=blassey r=vlad
2010-03-03 23:02:58 -06:00
Benjamin Smedberg
80f60eef3f
Bug 526586 - XULRunner crashes on startup on Windows r=bustage fix and at least agreement on the approach from dbaron
2009-11-09 14:30:01 -05:00
Benjamin Smedberg
9a7ff08a35
Make NS_IsMainThread faster on our major platforms. (Bug 521750) r=dbaron
2009-10-28 10:28:57 -07:00
Chris Jones
708e2e04ae
Backed out changeset 8cbc47eee659
2009-10-02 18:09:08 -05:00
Chris Jones
f2df9d3504
bug 441324: implement infallible ::operator new(), malloc() and friends. make |new Foo()| infallible, but leave |malloc()| fallible for the time being. r=blassey sr=bsmedberg,vlad
2009-10-01 21:50:09 -05:00
Benjamin Smedberg
b4cc34446e
Bug 500870 - NS_OVERRIDE indicates that a method must override a base-class method, r=taras
...
--HG--
extra : rebase_source : 3dc3327030dc2cdf45bdd9170c5e9d02908c0d0c
2009-09-04 11:21:31 -04:00
Zack Weinberg
d47e0f433b
Bug 497495 part 3: Add methods to every nsFrame subclass that expose the as-allocated identity of every frame object. Also some cleanups to the QueryFrame implementation. r=dbaron sr=roc
2009-09-12 17:49:24 +01:00
Makoto Kato
152810b974
Bug 499262 - Remove Metoworks Code for OS 9. r+sr=bsmedberg
2009-07-24 19:11:23 +09:00
Henry Jia
7df96eb40c
Bug 178189 - |nsCOMPtr|: do we still care about VC++4.2? and if not, can we remove this comment; r=(scc + benjamin)
2008-09-29 00:17:30 +02:00
Ginn Chen
61f1976cbb
Bug 440714 use -xldscope for Sun Studio on Solaris r=vladimir,benjamin sr=benjamin
2008-09-08 14:21:07 +08:00
Benjamin Smedberg
29ff8b1d70
Fix stupid static-checking-only typo
2008-09-04 10:51:06 -04:00
Benjamin Smedberg
cb3eb39381
Bug 453341 - Allow stack checking to be suppressed per-function, r=dmandelin sr=jst
2008-09-03 13:00:12 -04:00
Benjamin Smedberg
e67d75888e
Bug 445570 - Mark CSSToken::mIdent heap autostring as we-know-what-we're-doing, r=dbaron
2008-08-27 10:58:50 -04:00
Robert O'Callahan
73dea772b7
Whitespace change to effectively clobber orange Windows test boxes
2008-07-30 09:55:13 -07:00
David Mandelin
f8c68d8368
Bug 431832: NS_inparams attr for outparams checker, r=bsmedberg, a=bsmedberg
2008-05-02 18:03:38 -07:00
Benjamin Smedberg
858a24815d
Bug 431677 - outparam errors in netwerk/cookie, r=dmandelin
2008-05-01 15:12:33 -04:00
David Mandelin
0da1bbdc0b
Bug 422555: outparam and inoutparam attributes
2008-04-24 15:05:06 -07:00
benjamin@smedbergs.us
0864212f35
Merge cvs-trunk-mirror -> mozilla-central
...
--HG--
rename : js/src/jsarray.c => js/src/jsarray.cpp
rename : js/src/jsnum.c => js/src/jsnum.cpp
2008-03-12 16:32:37 -04:00
reed@reedloden.com
bb454ebb6a
Bug 414063 - "annotate xpidl-generated c++ headers with attributes for scriptable and deprecated methods" [p=Pidgeot18@gmail.com (Joshua Cranmer) r=dbradley a1.9=damons]
2008-03-12 04:00:24 -07:00
benjamin@smedbergs.us
62231824a0
Bug 419624 - Build framework, basic usage, and testsuite for statically checking the codebase using gcc-dehydra, r=luser,dbaron,tglek
2008-02-27 11:28:13 -05:00
jag@tty.nl
f7413d87e3
Fix bustage from previous checkin for bug 392055. Move #define of XPCOM_GLUE_AVOID_NSPR from nsISupportsImpl.h to nscore.h. r/a=bsmedberg
2007-09-28 13:33:32 -07:00
jwalden@mit.edu
303ffaf798
Bug 348748 - Remove the NS_.*_CAST macros completely! r=bsmedberg, a=no-functionality-change
2007-09-05 15:31:12 -07:00
jwalden@mit.edu
6d7584839a
Bug 348748 - Replace all instances of NS_STATIC_CAST and friends with C++ casts (and simultaneously bitrot nearly every patch in existence). r=bsmedberg on the script that did this. Tune in next time for Macro Wars: Episode II: Attack on the LL_* Macros.
2007-07-08 00:08:04 -07:00
mats.palmgren%bredband.net
cca3292d36
Make NS_LIKELY/NS_UNLIKELY accept pointers etc and always return 0 or 1. b=340244 r+sr=darin
2006-11-18 00:48:56 +00:00
mats.palmgren%bredband.net
e5aa498240
Backing out the NS_LIKELY/NS_UNLIKELY change to see if it fixes Tinderbox orange. b=340244
2006-11-09 22:52:19 +00:00
mats.palmgren%bredband.net
c0ddcdaf16
Make NS_LIKELY/NS_UNLIKELY accept pointers etc. b=340244 r+sr=darin
2006-11-09 17:41:03 +00:00
cbiesinger%web.de
161e140b5e
bug 348748 make NS_*_CAST always use C++-style casts (in preparation for
...
removing the macros altogether)
r=bsmedberg sr=dbaron
2006-09-04 23:04:57 +00:00
benjamin%smedbergs.us
a1d0d30501
Bug 305949 - stop exporting nonfrozen XPCOM symbols when libxul is enabled, r=darin
2006-08-02 18:27:25 +00:00
benjamin%smedbergs.us
08887664c9
Bug 334038 - Separate out the frozen C stringapi and the glued C++ wrappers, fix a few bugs along the way, and move some of the utils from nsCRT into nsCRTGlue for use by frozen-linkage code. r=darin
...
CVS history for xpcom/string/public/nsXPCOMStrings.h is at xpcom/string/public/nsStringAPI.h
CVS history for xpcom/build/nsXPCOMStrings.cpp is at xpcom/build/nsStringAPI.cpp
CVS history for xpcom/glue/nsStringAPI.h is at xpcom/string/public/nsStringAPI.h
2006-05-03 16:11:14 +00:00
mkaply%us.ibm.com
1a19fc9e12
#3011064
...
r=mkaply, sr=mkaply (OS/2 only)
Patch from Andy Willis - add _declspec(dllexport/dllimport) for OS/2
2006-03-08 19:56:32 +00:00
timeless%mozdev.org
37681661b1
Bug 327997 warning C4005: 'EXTERN_C' : macro redefinition nscore.h and winnt.h
...
r=darin sr=darin
2006-03-06 01:49:10 +00:00
benjamin%smedbergs.us
8b72bb0f97
Bug 325229 part 1 - standalone glue registers exit routine which is called after module unload; also fixes bug 317481 - C API for nsTraceRefcnt; also fixes bug 318622 - Make nsTraceRefcntImpl::SetActivityIsLegal work properly and turn it on; design review by dbaron, r=darin
2006-02-10 15:00:36 +00:00
mark%moxienet.com
18681d809c
323337 Use fastcall on Mac OS X x86: __attribute__(regparm(3)). r=josh
2006-01-23 20:11:08 +00:00
bsmedberg%covad.net
8c240e5441
Bug 321847 - C++-style comments in C header (bah! this is #if 0 it shouldn't matter)
2006-01-03 16:54:26 +00:00
bsmedberg%covad.net
a4d3866df3
Bug 313309 part 1 - use __fastcall for NS_FASTCALL on windows, r=shaver
2005-11-10 14:43:22 +00:00
bsmedberg%covad.net
a7253270ad
Bug 305949 Part 1 - Separate the frozen XPCOM exports with the XPCOM_API macro; add compatibility methods to the frozen string API; convert most of the tests/tools to use the xpcom glue when appropriate r=darin This checking does not actually stop exporting the nonfrozen methods yet, pending a bunch of test cleanup throughout the tree.
2005-11-08 18:17:49 +00:00
bsmedberg%covad.net
5a3dee9942
Bug 307168 - Add configure test for GCC bug that prevent the pragma-visibility stuff from working properly on some configurations, and also clean up usages of HAVE_VISIBILITY_PRAGMA which should really be HAVE_VISIBILITY_ATTRIBUTE r=roc+wolfiR, previous revisions reviewed by bryner
2005-11-02 14:14:18 +00:00
joshmoz%gmail.com
275e8624be
don't use regparm on i386 Mac OS X. Patch by Apple Computer, Inc. r=josh r=smfr sr=bsmedberg a=bsmedberg
2005-07-21 19:02:52 +00:00
shaver%mozilla.org
63a3c5efc3
Bug 269823: invalid casts prevent compilation on 64-bit platforms with gcc4.
...
Patch from falk@debian.org , r=darin, sr+a=shaver.
2005-07-20 13:12:13 +00:00
bsmedberg%covad.net
c212b869b8
Bug 298047 - Drop the dependencies of the XPCOM standalone glue on NSPR, try #2 - Re-landing this in such a way that we're not going to break non-xulrunner builds on mac with xcode < 1.5 until we have the tinderboxen and official build instructions upgraded properly (see the XXXNote in xpcom/sample/Makefile.in, and the continued ifdef MOZ_ENABLE_LIBXUL hack in config/autoconf.mk.in around MOZ_FIX_LINK_FLAGS). r=darin a=asa
2005-07-01 12:24:07 +00:00
bsmedberg%covad.net
9b68fa2754
Backout bug 298047 per Chase as it breaks some downrev mac systems unexpectedly.
2005-06-30 02:04:23 +00:00
bsmedberg%covad.net
d7b586a56b
Bug 298047 - Drop the dependencies of the XPCOM standalone glue on NSPR (this patch covers everything except dynamic linking) r=darin a=asa (The file xpcom/sample/nsTestSample.cpp moved to xpcom/sample/program/nsTestSample.cpp)
2005-06-29 18:53:30 +00:00
joshmoz%gmail.com
f2954af59f
remove XP_MAC code from xpcom/base. r=josh r=dougt a=bsmedberg
2005-06-24 00:24:42 +00:00
bzbarsky%mit.edu
205abaab34
Don't use C++ comments in a file included from C code. r+sr+a=dbaron
2005-04-28 20:57:42 +00:00
dbaron%dbaron.org
5d312ec4b3
Make it possible for apps, extensions, and vendors to all add tokens to the User-Agent string (using default preferences) without overwriting each other. b=274928 r+sr=darin a=mkaply
2005-04-07 18:11:59 +00:00
bsmedberg%covad.net
7e03c0b224
Bug 288626 - Switch the strict API from opt-in (MOZILLA_STRICT_API) to opt-out (MOZILLA_INTERNAL_API) r=darin
2005-04-06 03:35:24 +00:00
darin%meer.net
a87b534479
fixes bug 286147 "switch from .xulapp to application.ini" r=bsmedberg
2005-03-28 19:36:24 +00:00
bryner%brianryner.com
d9626f6746
Add support for using gcc's visibility pragma to treat all function and method declarations as "hidden" unless declared otherwise. Create wrappers for system headers that cause them to be treated as default-visibility declarations. This gives a substantial code size and performance win on compilers that support it, and should show up on the gruff tinderbox. Bug 273336, r=darin sr=dbaron.
2004-12-15 05:52:44 +00:00
darin%meer.net
abcd15ca39
fixes bug 266006 "xpcom/glue should not declare methods with NS_COM" r=bsmedberg
2004-10-29 19:43:51 +00:00
mkaply%us.ibm.com
ae6ca1e908
This stuff doesn't work on OS/2 and is causing thousands of warnings errors
2004-07-22 20:27:48 +00:00
dbaron%dbaron.org
13588951d2
Only use __attribute__ on gcc 3 or higher. Fixing bustage.
2004-07-14 23:43:15 +00:00
bryner%brianryner.com
23089547be
Add a NS_FASTCALL macro that specifies regparm(3) and stdcall on gcc/x86 to improve performance (passing up to 3 arguments in registers instead of on the stack, and having the caller pop any stack arguments). Apply NS_FASTCALL to our most frequently called non-public methods and functions. Also add NS_CDECL to explicitly specify the default calling convention and make it part of NS_IMETHOD, since xptcall can't deal with NS_FASTCALL. Bug 249652, r=darin, sr=dbaron.
2004-07-14 22:14:34 +00:00
gerv%gerv.net
31625ba2b1
Bug 236613: change to MPL/LGPL/GPL tri-license.
2004-04-18 14:21:17 +00:00
neil%parkwaycc.co.uk
5a5283ca12
Supplementary patch to bug 227537 because some versions of gcc don't accept all placements of the visibility attribute r=bryner sr=blizzard a=asa
2004-03-25 19:55:16 +00:00
bryner%brianryner.com
146a922871
Add NS_LIKELY and NS_UNLIKELY macros that can be used to give the compiler branch probability information. Make NS_SUCCEEDED and NS_FAILED use these macros so that we optimize for the success case. Bug 236753, r+sr=dbaron.
2004-03-07 23:32:08 +00:00
bryner%brianryner.com
6e68ebaa46
Second try at enabling hidden visibility for NS_IMETHOD on ELF platforms (bug 227537). r+sr=dbaron for the changes.
2004-02-04 04:55:57 +00:00
bryner%brianryner.com
e93d497a66
Turn off visibility until I can figure out how to fix this for older gcc's that won't accept visibility=default
2004-02-03 09:09:41 +00:00
bryner%brianryner.com
0ca4d12034
Make NS_IMETHOD set hidden symbol visibility by default on ELF platforms. This is always desirable for virtual methods implemented in XPCOM component libraries, since it's impossible to reference the symbol from outside of the library. The behavior can be overridden as needed, such as a base class in a shared library that's linked against. For more details, see the comments in nscore.h and bug 227537. r=dbaron, sr=darin.
2004-02-03 08:32:33 +00:00