1639 Commits

Author SHA1 Message Date
rogerl%netscape.com
8da67ce019 Fixing bug #103351 - using undefined as RegExp value for String.replace.
r=khanson, sr=brendan


git-svn-id: svn://10.0.0.236/trunk@114292 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-12 19:12:42 +00:00
brendan%mozilla.org
f0455a28be Hack special frame flags into fp when compiling under JS_Evaluate*InStackFrame, so useless expressions don't get optimized away (92087, r=rginda, sr=jband).
git-svn-id: svn://10.0.0.236/trunk@114268 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-12 07:44:48 +00:00
brendan%mozilla.org
8f250bac4f Add exception object stack property, string valued; clean up NULL/VOID mixup, missing OOM test, etc. (123177, r=rginda, sr=shaver).
git-svn-id: svn://10.0.0.236/trunk@114140 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-09 06:28:58 +00:00
brendan%mozilla.org
0556848e64 Remove bad old regexp object locking across huge, deadlock-prone, so-not-critical sections (123930, r=rogerl, sr=jband&shaver).
git-svn-id: svn://10.0.0.236/trunk@114098 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-09 00:14:31 +00:00
brendan%mozilla.org
e6452400a0 Fix recently-uncovered ECMA violation: lastIndex must use double storage (124339, r=rogerl, sr=shaver).
git-svn-id: svn://10.0.0.236/trunk@114095 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-08 23:59:49 +00:00
brendan%mozilla.org
78f1745c51 Make regexp.lastIndex threadsafe by multiplexing it by thread-id in each r.e. (76717, r=rogerl, sr=shaver).
git-svn-id: svn://10.0.0.236/trunk@113983 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-08 02:46:03 +00:00
brendan%mozilla.org
8fd556f620 Avoid all gc <> obj-lock deadlocks by letting the gc run lock-free, safe since all requests are suspended or ended when the gc runs (114712, r=shaver, sr=jband).
git-svn-id: svn://10.0.0.236/trunk@113976 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-08 01:55:30 +00:00
brendan%mozilla.org
70118ca998 Quick followup to last checkin -- warning fixes (d'oh!)
git-svn-id: svn://10.0.0.236/trunk@113772 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-06 07:56:29 +00:00
brendan%mozilla.org
31cf9fbeb3 Fix call and new expression parsenode beginning line number, where the arglist is on another line from the function or constructor, to avoid a bogus assertion in UPDATE_LINENO_NOTES, which is now replaced by better comments and an avoided gratuitous store to cg->currentLine (123371, r=rginda, sr=shaver).
git-svn-id: svn://10.0.0.236/trunk@113771 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-06 07:39:20 +00:00
brendan%mozilla.org
94f945ff94 Fix failure to check for JS_InitClass failure, reported by Eric Brueggemann <eric_brueggemann@yahoo.com>, r=shaver, sr=mozbot.
git-svn-id: svn://10.0.0.236/trunk@113768 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-06 07:01:37 +00:00
jband%netscape.com
bc42c1e965 Add better support to xpconnect for converting between variants and arrays. bug 120881. r=dbradley sr=vidur. Trivial fix for case where we were hitting an assert at xpcom shutdown. bug 121536. r=dbradley rs=vidur.
git-svn-id: svn://10.0.0.236/trunk@113690 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 06:45:08 +00:00
jband%netscape.com
9ce852e366 unbust XPCONNECT_STANDALONE build. No change to default build. bug 121438. rs=jband.
git-svn-id: svn://10.0.0.236/trunk@113579 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-03 20:05:22 +00:00
seawood%netscape.com
25e0750204 Do not place the .res file inthe srcdir
git-svn-id: svn://10.0.0.236/trunk@113399 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 04:50:32 +00:00
brendan%mozilla.org
7804e10cfe Fix for(i in null) and for(i in undefined) to error per ECMA, rather than iterating zero times (121744, r=khanson, sr=shaver).
git-svn-id: svn://10.0.0.236/trunk@113304 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 07:30:05 +00:00
sfraser%netscape.com
67a35c1a08 Making the nsModuleComponentInfo data const; bug 74803. r=dp, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@113225 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 21:14:20 +00:00
dougt%netscape.com
011f9b10e5 1. Converts callers of nsIComponentManagerObsolete to use
nsIComponentRegistrar.

2. Converts callers of nsComponentManager::AutoRegister to use
nsIComponentRegistrar's autoRegistrar method.

3. Add nsIComponentRegistrar implmentation to nsComponentManagerImpl.

4. Rearrange nsComponentManager.cpp so that related methods are in the same
place.

5. Added a C-style function NS_GetComponentRegistrar so that getting the
registrar is easier in some places.

6. Added a nsISimpleEnumerator interface on PLDHashTableEnumeratorImpl.  in
this way, the same base class can support both old style and new style
enumerations.

7. Fixed a nasty bug where unregistring factories will leave the contract id
hash with a dangling pointer.  Now, when unregister is called we search the
contract id hash for entries which have the given doomned cid and remove them.


Bug 115853.  r=dp@netscape.com, sr=rpotts@netscape.com


git-svn-id: svn://10.0.0.236/trunk@113143 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 21:22:13 +00:00
brendan%mozilla.org
e39800b131 Checking in rogerl's fix for double-reports of compile-time errors (120197, r=brendan, sr=shaver).
git-svn-id: svn://10.0.0.236/trunk@112984 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 04:42:37 +00:00
seawood%netscape.com
ec756d5c48 Fix "static" build support for win32 gmake builds.
Bug #58981 r=bryner


git-svn-id: svn://10.0.0.236/trunk@112825 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 03:20:51 +00:00
brendan%mozilla.org
0f5414ace6 Make 'too much recursion' errors be exceptions #if JS_HASH_ERROR_EXCEPTIONS (121658, r=rogerl, sr=shaver).
git-svn-id: svn://10.0.0.236/trunk@112790 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 00:49:52 +00:00
brendan%mozilla.org
c403c777cd Checking in patch from Daniel Bratell <bratell@lysator.liu.se>, r=khanson, sr=me.
git-svn-id: svn://10.0.0.236/trunk@112786 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 00:47:11 +00:00
rogerl%netscape.com
195936b401 Fix bug #104375. Bug in String.replace() with $n where n > # parens.
r=khanson, sr=brendan.


git-svn-id: svn://10.0.0.236/trunk@112716 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 19:27:21 +00:00
jst%netscape.com
e262b0cb89 Fixing bug 120901. Eliminating unnecessary QI call in XPCWrappedNative::GetNative(). r=dbradley@netscape.com, sr=jband@netscape.com
git-svn-id: svn://10.0.0.236/trunk@112665 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 06:03:25 +00:00
jst%netscape.com
786b4fe53a Fixing bug 120718. Making XPCReadableJSStringWrapper not allocate non-shared buffer handles, this caused a malloc to happen for every XPCReadableJSStringWrapper that was accessed in mozilla, ~400 allocations at startup. r=dbaron@fas.harvard.edu sr=jaggernaut@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@112663 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 05:59:41 +00:00
bratell%lysator.liu.se
0279313b6e Bug 120990 - make conversion from integer to string faster by not using sprintf. r=khanson, sr=brendan
git-svn-id: svn://10.0.0.236/trunk@112659 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 05:24:39 +00:00
brendan%mozilla.org
b0099ec3f6 Inline-eliminate js_Emit{Break,Continue} and move SRC_CONTINUE generation to the right place (120571, r=rogerl, sr=jst&jband, a=asa).
git-svn-id: svn://10.0.0.236/trunk@112531 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-22 22:06:10 +00:00
sfraser%netscape.com
57420a32ce Fix for bug 120451 -- clean up the sleep Q entry on quit, so that we don't leave a bad entry there and hose the machine some time later. r=sdagley, sr=beard, a=blizzard
git-svn-id: svn://10.0.0.236/trunk@112464 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 21:40:13 +00:00
beard%netscape.com
c3913452f6 Configuration to build on Mac OS X 10.1.
git-svn-id: svn://10.0.0.236/trunk@112380 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 06:39:04 +00:00
jst%netscape.com
2337395ba4 Fixing part of bug 118933. Speeding up the global resolve hook in the DOM JS helpers by eliminating the use of nsHashtable and nsStringKey in favor of pldhash. Adding global HashString(const nsA[C]String&) functions that calculate a hash code from a nsA[C]String, code by dbaron@fas.harward.edu. Also checking in brendan@mozilla.org's fix for a type error in the jsdhash/pldhash API found while working on this. sr=brendan@mozilla.org, r=peterv@netscape.com
git-svn-id: svn://10.0.0.236/trunk@112375 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 04:08:14 +00:00
dbaron%fas.harvard.edu
7211b45852 Missing part of fix for bug 117153, fixing threadsafety problems with shared empty buffer handles. b=120300 r=jag sr=alecf a=blizzard
git-svn-id: svn://10.0.0.236/trunk@112363 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 00:07:15 +00:00
rogerl%netscape.com
71667da74b Fixed RegExp bug #72964, r=khanson, sr=brendan
git-svn-id: svn://10.0.0.236/trunk@112325 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 06:47:06 +00:00
rogerl%netscape.com
3b10829097 Fixed RegExp bugs #105972 & #87231. r=khanson, sr=brendan.
git-svn-id: svn://10.0.0.236/trunk@112317 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 06:06:34 +00:00
brendan%mozilla.org
789f2defb4 Simplify #ifdefs in JS_Assert to default to fprintf (45673, debug only, r=rogerl, sr=me, patch from jband).
git-svn-id: svn://10.0.0.236/trunk@112312 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 05:17:58 +00:00
brendan%mozilla.org
d06125755d Checking in patch for rob1@rekl.yi.org, r=khanson, sr=brendan (but neither file is part of the build).
git-svn-id: svn://10.0.0.236/trunk@112311 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 05:12:53 +00:00
seawood%netscape.com
a9308f6d58 Use dynamic library & xpidl_module names from nmake build for win32 gmake builds for compatibility.
bug #58981 sr=jag


git-svn-id: svn://10.0.0.236/trunk@112307 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 05:10:09 +00:00
brendan%mozilla.org
07d1aed3b1 Checking in patch for Steven Cole <scole@planetweb.com> to fix js_DoubleToECMAInt32 (120083, r=khanson, sr=brendan).
git-svn-id: svn://10.0.0.236/trunk@112244 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 00:17:16 +00:00
dbradley%netscape.com
71da3c517b Bug 111068 - SyncXPCContextLists uses of XPCContext::Mark is not thread safe. patch by jband, r=dbradley, sr=jst
git-svn-id: svn://10.0.0.236/trunk@112208 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 22:49:46 +00:00
jband%netscape.com
d024232d2d fix bug 119387. Add a non-allocating IID version of the frequently used getIIDForParam method. r=dbradley sr=jst
git-svn-id: svn://10.0.0.236/trunk@112081 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 20:02:14 +00:00
bryner%netscape.com
edf25fe5cd Bug 119743 - autocomplete doesn't work in gcc 2.96 -O2 builds. r=hixie, sr=brendan.
git-svn-id: svn://10.0.0.236/trunk@112055 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 06:45:21 +00:00
pschwartau%netscape.com
d6aa73e274 Updating JS_GetImplementationVersion() to date of latest JS release (67111).
git-svn-id: svn://10.0.0.236/trunk@111976 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-11 23:18:39 +00:00
brendan%mozilla.org
dca9356b95 Remove Call constructor (118732) and fix old bug in Function where it failed to convert args to strings (118849; both r=timeless, sr=shaver).
git-svn-id: svn://10.0.0.236/trunk@111801 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-10 08:51:01 +00:00
bryner%netscape.com
98ad565e5d Bug 117276 - regression on gcc 2.95.x debug builds. Since we don't
understand exactly what the problem is here, and it does not seem to
happen on gcc 2.96, and 2.95 doesn't have the alias optimizations that
called for the new code in the first place, just make 2.95 use the old
code.  r=timeless, sr=brendan.


git-svn-id: svn://10.0.0.236/trunk@111719 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-09 19:23:37 +00:00
dbaron%fas.harvard.edu
5f3c1a0733 Don't use C++ comments in C files.
git-svn-id: svn://10.0.0.236/trunk@111543 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-08 02:29:11 +00:00
alecf%netscape.com
b0e0e6d031 C++ side of fix for bug 100212 - move consumers of nsIFile.URL into nsIIOService. r=dougt, sr=darin
git-svn-id: svn://10.0.0.236/trunk@111529 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-08 01:31:25 +00:00
brendan%mozilla.org
845f74be1e Checking in patch written by balleysson@bigfoot.com based on tenthumbs@cybernex.net's sketch, to avoid mallocs in js_strtod (115627, r=khanson, sr=me).
git-svn-id: svn://10.0.0.236/trunk@111510 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-07 23:42:25 +00:00
brendan%mozilla.org
83bed63477 Group date and time fields in toString's result so as to work with PR_ParseTimeString (118266, r=khanson, sr=shaver).
git-svn-id: svn://10.0.0.236/trunk@111479 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-07 11:09:04 +00:00
brendan%mozilla.org
af0418b366 Null pointer defense in FUN_CALLER fun_getProperty case (117307, r/sr skipped, trivial).
git-svn-id: svn://10.0.0.236/trunk@111220 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-01 21:12:21 +00:00
brendan%mozilla.org
83c274bf08 Fix old bug introduced by rev 3.2, where this() crashes due to uninitialized obj register (116228, r=timeless, sr=shaver).
git-svn-id: svn://10.0.0.236/trunk@111105 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-27 08:47:33 +00:00
timeless%mac.com
21c081c8bc Bugzilla Bug 106386 rid source of these misspellings: persistant persistance priviledge protocal editting editted targetted targetting
r='s from many people. sr=jst


git-svn-id: svn://10.0.0.236/trunk@111049 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-23 23:23:41 +00:00
dougt%netscape.com
a28bdb3c7a fixing dumbass error. This could should have returned null if obsoleteManager was null, not the inverse. r=jband@netscape.com
git-svn-id: svn://10.0.0.236/trunk@110827 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-20 00:26:28 +00:00
brendan%mozilla.org
c81d5d8b4b Don't double-drop a property when strict-warning about duplicate formals (115436, r=khanson, sr=jband).
git-svn-id: svn://10.0.0.236/trunk@110768 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-19 02:10:26 +00:00