14 Commits

Author SHA1 Message Date
bryner%brianryner.com
e372b2e9a3 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.
git-svn-id: svn://10.0.0.236/trunk@159199 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-14 22:14:34 +00:00
roc+%cs.cmu.edu
4806a9a5d3 fixing bustage.
git-svn-id: svn://10.0.0.236/trunk@157454 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-06 03:38:35 +00:00
roc+%cs.cmu.edu
4e7229eafc Bug 226439. Add ASCII and Literal versions of Append, EqualsIgnoreCase, and Assign. r+sr=darin
git-svn-id: svn://10.0.0.236/trunk@157452 18797224-902f-48f8-a5cc-f745e15eee43
2004-06-06 02:17:00 +00:00
roc+%cs.cmu.edu
2358f9e55e Bug 226439. Add EqualsASCII(char*) string method that compares with a null-terminated char* in a single pass. Have the non-templated EqualsLiteral use it. r+sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@155747 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-30 12:05:14 +00:00
roc+%cs.cmu.edu
17142e8782 Fix btek bustage ... I hope.
git-svn-id: svn://10.0.0.236/trunk@155646 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-28 19:23:58 +00:00
roc+%cs.cmu.edu
f8ae3111a6 Bug 226439. Some small conversion to use EqualsLiteral to see effect on code size, r+sr=dbaron. Additionally, some comments to clarify that EqualsLiteral is only for actual literals, and to properly credit Corey Kosak who showed me the template trick. Also re-enabled the template for MSVC++ 7.1, which can apparently handle it.
git-svn-id: svn://10.0.0.236/trunk@155642 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-28 17:48:02 +00:00
roc+%cs.cmu.edu
b4797c2050 Bug 226439. Use templates for ultra-efficient EqualsLiteral string method. r=darin,sr=dbaron. THIS MAY CAUSE BUSTAGE. DO NOT BE ALARMED.
git-svn-id: svn://10.0.0.236/trunk@155463 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-24 22:02:22 +00:00
pkw%us.ibm.com
22b87651a6 Bug 237682 - AIX: Warnings about missing nsACString copy constructor
r/sr=darin@meer.net, a=asa@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@154164 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-22 20:25:36 +00:00
darin%meer.net
496ffefa34 fixing a comment typo
git-svn-id: svn://10.0.0.236/trunk@154026 18797224-902f-48f8-a5cc-f745e15eee43
2004-03-16 18:34:25 +00:00
darin%meer.net
db842ded77 adding brackets to correct last checkin (r=gisburn)
git-svn-id: svn://10.0.0.236/trunk@153106 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-23 19:57:18 +00:00
darin%meer.net
eda37ab870 Checking in bustage fix for SUNPRO_CC (Sun Workshop/Forte), bug=235273
Thanks to timeless and gisburn for their help.


git-svn-id: svn://10.0.0.236/trunk@153104 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-23 19:24:41 +00:00
darin%meer.net
0310ccfb9e correcting bustage fix per dbaron: "reenable that for non-gcc compilers"
git-svn-id: svn://10.0.0.236/trunk@152914 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-19 06:29:08 +00:00
darin%meer.net
df67ab40c6 bustage fix for gcc-2.95.3 (speedracer) and egcs-2.91.66 (btek+monkeypox) r=bz
git-svn-id: svn://10.0.0.236/trunk@152912 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-19 05:54:04 +00:00
darin%meer.net
55688e6410 landing string defragmentation patch for bug 231995, r/sr=dbaron,jst,dougt
git-svn-id: svn://10.0.0.236/trunk@152905 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-19 02:44:03 +00:00