1735 Commits

Author SHA1 Message Date
khanson%netscape.com
ae857abf6a patch to speed up array.sort of strings by 40% r=brendan, sr=shaver
git-svn-id: svn://10.0.0.236/trunk@122195 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-27 05:53:57 +00:00
brendan%mozilla.org
ce6cc88b16 Don't emit JSOP_DEF{VAR,CONST} unless at top-level or in a heavyweight function (146596, r=jband, sr=shaver).
git-svn-id: svn://10.0.0.236/trunk@122176 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-26 00:33:23 +00:00
shaver%mozilla.org
b676ad258e 146210: Add Date.now to mirror JS_Now in script. r=rginda, sr=brendan.
git-svn-id: svn://10.0.0.236/trunk@122121 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-24 01:55:15 +00:00
dbaron%fas.harvard.edu
1feee5c8c0 Fix Mac bustage from brendan's checkin.
git-svn-id: svn://10.0.0.236/trunk@121994 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-22 00:53:12 +00:00
brendan%mozilla.org
0d99c56ee7 Don't fail to call OBJ_CHECK_ACCESS for o.__proto__ = x, with enough mode bits to say what's happening (143369, r=shaver, sr=jst).
git-svn-id: svn://10.0.0.236/trunk@121981 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-22 00:06:40 +00:00
bratell%lysator.liu.se
86074cf594 Bug 85267 - clear internal jsdtoa caches when closing down the js engine. Patch by steve.taylor@ndsuk.com r=khanson@netscape.com, sr=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@121884 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-20 20:07:48 +00:00
bratell%lysator.liu.se
40adde0ec3 Followup to checkin for bug 120992. It asserted in an edge case which this fixes. r=mozbot
git-svn-id: svn://10.0.0.236/trunk@121844 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-18 17:33:37 +00:00
bratell%lysator.liu.se
76194315c8 Bug 120992 - avoid expensive locking when converting numbers to strings. Now we look once for the whole operation instead of over and over again any time we access a shared structure. r=khanson@netscape.com, sr=brendan@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@121841 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-18 06:21:49 +00:00
jst%netscape.com
01d39954de Checking in jband's fix for bug 143853. Make sure to refresh the cached prototype JSObject when a context is reinitialized and a global object is reused between pages in a window. r=dbradley@netscape.com, sr=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@121790 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-17 22:36:54 +00:00
brendan%mozilla.org
479af8befa Checking in khanson@netscape.com's patch fixing GMT offset day-overflow (65671, r=mccabe, sr=jband).
git-svn-id: svn://10.0.0.236/trunk@121539 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-15 19:44:34 +00:00
dougt%netscape.com
d6cc711878 Fixes mozilla/strings requiring unfrozen nsCRT class. patch by scc, r=dougt, sr=jag, b=136756
git-svn-id: svn://10.0.0.236/trunk@121534 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-15 18:55:21 +00:00
seawood%netscape.com
69f92b071e Because js uses static data structures and is linked into other shared libraries, js must be built as a shared library.
Thanks to Colin Blake <colin@theblakes.com> for the original patch.
Bug #127442 r=bryner


git-svn-id: svn://10.0.0.236/trunk@121509 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-15 01:37:07 +00:00
darin%netscape.com
24feadaaed fixes bug 142870 "nsIFile should use UCS-2 instead of UTF-8"
r=dougt sr=alecf


git-svn-id: svn://10.0.0.236/trunk@121010 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-07 23:07:19 +00:00
brendan%mozilla.org
1fd017c5ae Avoid toSource bloat in e.stack; fix related crash due to unrooted errObject in js_ErrorToException (139316, r=rginda, sr=shaver).
git-svn-id: svn://10.0.0.236/trunk@120925 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-07 08:34:51 +00:00
brendan%mozilla.org
b39de47648 Fix old bogus static dollarStr thread-safety bug (142651, r=jband, sr=shaver).
git-svn-id: svn://10.0.0.236/trunk@120923 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-07 08:29:39 +00:00
bryner%netscape.com
870e2e8bf7 Adding the functions JS_LockGCThingRT and JS_UnlockGCThingRT, which are variants that only require a JSRuntime, not a JSContext. Converted some internal callers to use the new interface. Bug 141356, patch from shaver, r=bryner, sr=brendan.
git-svn-id: svn://10.0.0.236/trunk@120782 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-04 05:28:09 +00:00
darin%netscape.com
a8839fa81b fixes build bustage with --enable-xpctools
patch=dmose r/sr=darin


git-svn-id: svn://10.0.0.236/trunk@120709 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-03 19:04:14 +00:00
brendan%mozilla.org
c57adad168 Fix js_SetProtoOrParent to handle non-native and native-but-incompatible-class-change proto-setting scenarios (140164, r=khanson, sr=jband).
git-svn-id: svn://10.0.0.236/trunk@120570 18797224-902f-48f8-a5cc-f745e15eee43
2002-05-02 20:59:35 +00:00
brendan%mozilla.org
fa2530c123 Don't 'constant-fold' if(false)var foo=42 into nothing (140974, r=khanson, sr=shaver).
git-svn-id: svn://10.0.0.236/trunk@120354 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-30 23:28:34 +00:00
darin%netscape.com
824def02af fixes bug 129279 "nsIFile unicode/utf8/ascii task"
r=dougt sr=alecf


git-svn-id: svn://10.0.0.236/trunk@120092 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-27 05:33:09 +00:00
jband%netscape.com
3d5443b5d6 fix bug 139243. Remove reference count based rooting of JS objects of wrapped natives and replace it with GC-time marking. This is a pretty good DOM performance win. r=dbradley sr=jst.
git-svn-id: svn://10.0.0.236/trunk@119944 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-26 06:08:35 +00:00
brendan%mozilla.org
c51fbdc476 Purge the deflated string cache entry, if any, before finalizing external strings (140070, r=jband, sr=shaver).
git-svn-id: svn://10.0.0.236/trunk@119900 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-25 22:55:03 +00:00
khanson%netscape.com
fe8d0add83 Reverse of Patch 66477 for bug #121744. Bug #131348, r=shaver, sr=brendan.
git-svn-id: svn://10.0.0.236/trunk@119848 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-25 20:33:33 +00:00
khanson%netscape.com
4289421167 fixes memory leak in jsdtoa.c bug 138666, sr=brendan, r=khanson
git-svn-id: svn://10.0.0.236/trunk@119780 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-24 23:36:48 +00:00
seawood%netscape.com
26389cf685 Add make -j support to win32 gmake builds.
Bug #132848 r=bryner


git-svn-id: svn://10.0.0.236/trunk@119345 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-19 02:42:28 +00:00
brendan%mozilla.org
e1859a4360 Forgot to #ifdef JS_THREADSAFE last change (no effect on Mozilla build; fixes broken standalone/single-threaded JS builds, sanity-sr=shaver).
git-svn-id: svn://10.0.0.236/trunk@118128 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-04 18:02:59 +00:00
brendan%mozilla.org
35a8120be9 Followup fix to synchronize with a nt-last-destroy-context racing GC when unpinning pinned atoms (133773, r=shaver, sr=jband, a=rjesup).
git-svn-id: svn://10.0.0.236/trunk@118031 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-03 20:38:39 +00:00
beard%netscape.com
8c4539ece0 Fixes an installer crash on pre-PCI PowerMacs, bug # 125411. sr=sfraser, r=sdagley, a=asa
git-svn-id: svn://10.0.0.236/trunk@117964 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-02 23:27:55 +00:00
seawood%netscape.com
8ad6fabd48 More cruft removal. Remove platform.h xp_debug.h xpassert.h & xp_trace.h from the build.
Replace currently unused references to XP_ASSERT with one of NS_ASSERTION & friends.
Bug #38061 r=bryner sr=alecf a=tor/drivers a=putterman/adt


git-svn-id: svn://10.0.0.236/trunk@117909 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-02 07:57:02 +00:00
brendan%mozilla.org
26633b1aa8 Fix next-to-last vs. last context GC race, plus ClaimScope vs. js_DestroyContext race; removed js_ForceGC from the FRIEND JS API (133773, sr=jband&shaver, a=asa).
git-svn-id: svn://10.0.0.236/trunk@117899 18797224-902f-48f8-a5cc-f745e15eee43
2002-04-02 04:23:21 +00:00
dbaron%fas.harvard.edu
772b5b8c58 Convert users of nsAReadable[C]String and nsAWritable[C]String typedefs to [const] nsA[C]String. b=131899 r=scc sr=jag a=asa
git-svn-id: svn://10.0.0.236/trunk@117354 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-24 00:16:18 +00:00
brendan%mozilla.org
e6d087a0c4 Fix JSOP_DEFFUN to define functions in global code permanently, and not permanently in eval code (131964, r=khanson, sr=shaver, a=scc).
git-svn-id: svn://10.0.0.236/trunk@117325 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-23 17:34:24 +00:00
brendan%mozilla.org
f5b3ad417e Cope with OOM creating rt->atomState.table (131246, r=scole@planetweb.com, sr=jband, a=scc, thanks to scole for finding these OOM recovery bugs).
git-svn-id: svn://10.0.0.236/trunk@117298 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-23 07:38:08 +00:00
khanson%netscape.com
3aa931270e patch #75132 changes for bug#132230 (str_unescape and js_str_escape in jsstr.c ignore OOM errors) Written by Steven Cole, sr=bendan, r=khanson, a=asa. Handles an out of memory conditions more gracefully.
git-svn-id: svn://10.0.0.236/trunk@117219 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-22 21:24:46 +00:00
pschwartau%netscape.com
c9655cd559 Updating JS_GetImplementationVersion() to date of latest JS release (67111).
git-svn-id: svn://10.0.0.236/trunk@117211 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-22 20:43:47 +00:00
jband%netscape.com
4f83b37d05 fix bug 132713. Use the iid for nsIException to detect exceptions rather than nsIXPCException. This allows for better error reporting of natively implemented exceptions. r=dbradley sr=jst a=scc.
git-svn-id: svn://10.0.0.236/trunk@117198 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-22 19:14:57 +00:00
dougt%netscape.com
a288cd7893 130405. Makes the xpcom glue library usable. Updates XPCOM Samples. Adds requires lines to a few implict string/category consumers sr=alecf, sr=brendan@mozilla.org a=asa@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@117113 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-21 23:43:21 +00:00
jband%netscape.com
57faa09874 fix bug 125084. Add support for empty arrays in nsIVariant. This is expressed as atype id rather than as a regular array with no elements. Includes changes to xpconnect to support mapping to empty JSArrays, xpconnect tests, and SOAP. Patches are from jcorwin@us.ibm.com and rayw@netscape.com. r=jband sr=brendan a=asa
git-svn-id: svn://10.0.0.236/trunk@117098 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-21 23:21:54 +00:00
brendan%mozilla.org
04bffdc779 Fix js_FinalizeStringRT so it doesn't depend on a dependent string's base, which may already be finalized (132088, r=scole, sr=shaver, a=asa).
git-svn-id: svn://10.0.0.236/trunk@117042 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-21 09:06:00 +00:00
khanson%netscape.com
79891be530 Patch 74900 for bug #131817 (OOM in AllocSrcNote causes crash in js_NewSrcNote). The patch was contributed by Steven Cole (scole@planetweb.com), sr=brendan, r=khanson, a=scc
git-svn-id: svn://10.0.0.236/trunk@116956 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-20 05:45:12 +00:00
brendan%mozilla.org
ff87dae2bd Defend against early OOM when finishing JSDHashTables (131815, r=scole, sr=jband, a=asa).
git-svn-id: svn://10.0.0.236/trunk@116941 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-20 02:22:50 +00:00
brendan%mozilla.org
686853c41c Fix ChangeScopeTable gross dimensioning bug (131904, r=scole&khanson, sr=jband, a=asa).
git-svn-id: svn://10.0.0.236/trunk@116915 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-19 23:25:17 +00:00
brendan%mozilla.org
2e938ed0a9 Fix 'var arguments;' in a function by specializing to JSOP_ARGUMENTS properly (131510, r=khanson, sr=jband, a=asa).
git-svn-id: svn://10.0.0.236/trunk@116910 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-19 22:51:48 +00:00
timeless%mac.com
69ae314807 Bug 106386 rid source of misspellings
r=db48x sr=blake a=asa


git-svn-id: svn://10.0.0.236/trunk@116832 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-19 04:30:17 +00:00
brendan%mozilla.org
c6ea6491a9 Forgot to check this in yesterday: fix all engine-defined getters and setters to have no slot [to be JSPROP_SHARED] (130970, r/sr=shaver&jband, a=asa).
git-svn-id: svn://10.0.0.236/trunk@116746 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-17 11:01:34 +00:00
brendan%mozilla.org
917f8658bb Null test to handle recovery from OOM under js_NewContext reported by scole@planetweb.com (r/sr=jband, a=me).
git-svn-id: svn://10.0.0.236/trunk@116728 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-16 23:19:35 +00:00
brendan%mozilla.org
b9d4528238 Restore non-bogus assertion removed in last rev, and fix the case that tripped it in js_ChangeScopeProperty, by not removing [and maybe freeing sprop->slot] before re-adding sprop; also fix all engine-defined getters and setters to have no slot [to be JSPROP_SHARED] (130970, r/sr=shaver&jband, a=asa).
git-svn-id: svn://10.0.0.236/trunk@116696 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-16 04:51:29 +00:00
rginda%netscape.com
fe7a5ec2b5 bug 129519, "JS_GetPropertyDesc gives up too easily", r=jband, sr=shaver, a=bren
dan
Make JS_GetPropertyDesc degrade gracefully instead of fail outright when we run
into a problem fetching the property value.


git-svn-id: svn://10.0.0.236/trunk@116675 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-16 01:56:19 +00:00
khanson%netscape.com
4ff6898f69 bug #130991 (Out-of-Memory in jsshell causes assertion failure in jsobj.c)
patch by Brendan, sr=jband, r=khanson, a=asa


git-svn-id: svn://10.0.0.236/trunk@116632 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-15 06:22:00 +00:00
jband%netscape.com
0a33474113 fix bug 130139. We are iterating an array of pointers not an array of objects. r=dbradley sr=brendan a=asa.
git-svn-id: svn://10.0.0.236/trunk@116621 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-15 04:10:25 +00:00