1696 Commits

Author SHA1 Message Date
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
khanson%netscape.com
2a691ad4e6 bug #130711, r=khanson, sr=brendan, a=asa, memory leak in JS_dtoa
git-svn-id: svn://10.0.0.236/trunk@116601 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-15 00:11:44 +00:00
brendan%mozilla.org
97643dca16 Remove bogus assertion, tripped by js_ChangeScopePropertyAttrs calling js_AddScopeProperty (130970, r=shaver, sr=jband, a=shaver).
git-svn-id: svn://10.0.0.236/trunk@116580 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-14 21:59:16 +00:00
brendan%mozilla.org
45a2cddc1c Fix JS/PL_DHashTableEnumerate to compress or shrink the table after enumeration using the same logic as ADD and REMOVE use (120953, r=dbaron, sr=shaver, a=asa).
git-svn-id: svn://10.0.0.236/trunk@116579 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-14 21:55:08 +00:00
timeless%mac.com
95ef008f42 Bug 61314 Makefile rules for "jsmath.o" and "jsmathtemp.o" cause stale object files, obscure bugs
patch by mang@subcarrier.org r=rogerl sr=brendan a=asa


git-svn-id: svn://10.0.0.236/trunk@116577 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-14 21:41:09 +00:00
brendan%mozilla.org
66979b2420 No strict warnings without the strict option, and other js1.5/mozilla1.0 tidying (129972, r=shaver, sr=jband, a=asa).
git-svn-id: svn://10.0.0.236/trunk@116505 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-14 00:14:48 +00:00
brendan%mozilla.org
6c6f3b2ee3 Fix Array.prototype.sort to follow ECMA and win perf by not (re-)defining length on the 'this' object (130451, r=shaver, sr=jband, a=asa).
git-svn-id: svn://10.0.0.236/trunk@116504 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-14 00:10:31 +00:00
brendan%mozilla.org
c4c296cdeb khanson@netscape.com's patch to switch from QuickSort to heap-sort, plus a crucial ECMA-purity/property-tree-perf fix to InitArrayObject (to SET rather than DEFINE; bug 99120, r=waldemar, sr=shaver&brendan, a=asa).
git-svn-id: svn://10.0.0.236/trunk@116457 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-13 01:50:13 +00:00
brendan%mozilla.org
580199465b Missing JSFunction API (129545, r=shaver, sr=jband, a=asa).
git-svn-id: svn://10.0.0.236/trunk@116427 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-12 21:58:27 +00:00
brendan%mozilla.org
86689bb73e Don't forget to lock obj in js_AddNativeProperty and js_ChangeNativePropertyAttrs (130137, r=jband, sr=shaver, a=roc+moz).
git-svn-id: svn://10.0.0.236/trunk@116378 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-12 07:17:30 +00:00
jband%netscape.com
56b0628feb fix bug 129697. Don't leave a dangling (to crash later) JS root if JS_NewObject fails while creating a wrapped native. r=beard sr=jst a=asa (for trunk and 0.9.9 branch).
git-svn-id: svn://10.0.0.236/trunk@116255 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-09 03:02:10 +00:00
brendan%mozilla.org
8ca8b078fd Avoid MSVC bogo-warning.
git-svn-id: svn://10.0.0.236/trunk@116242 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-09 00:56:29 +00:00
brendan%mozilla.org
58df9f1560 Fix longstanding bug where watchpoints didn't work with JSPROP_SETTER (127243, r=rginda, sr=shaver, a=dbaron).
git-svn-id: svn://10.0.0.236/trunk@116216 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-08 22:46:58 +00:00
beard%netscape.com
3be28a0bec Fix for bug #123920, prevents reentering the JS engine during Java object JS wrapper finalization, by deferring calls into Java at the end of the garbage collection cycle and storing the wrappers in a linked list, which gets processed by a GC callback.
r=jband, sr=brendan, a=asa


git-svn-id: svn://10.0.0.236/trunk@116212 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-08 22:41:49 +00:00
seawood%netscape.com
bf34327dff This patch replaces the bogus USE_AUTOCONF ifdef + platform ifdef tests with a
simple HAVE_LOCALTIME_R test.  -DHAVE_LOCALTIME_R has been added to the
js/src/config/<platform>.mks as necessary.
bug #128556 r=brendan sr=shaver a=asa


git-svn-id: svn://10.0.0.236/trunk@116119 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-08 01:42:32 +00:00
rginda%netscape.com
344465fc39 bug 128057, r=brendan, sr=shaver, a=asa
check for JS_GetPropertyDesc failure in JS_GetPropertyDescArray


git-svn-id: svn://10.0.0.236/trunk@115980 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-06 22:15:39 +00:00
darin%netscape.com
04849998e1 fixes bug 124042 "support internationalized URIs" r=dougt, sr=alecf, a=asa
git-svn-id: svn://10.0.0.236/trunk@115936 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-06 07:48:55 +00:00
brendan%mozilla.org
884ceb2a0e Not part of build, for the js testsuite only: add clone shell function to clone a function object (for 127557 regression testing, a=shaver).
git-svn-id: svn://10.0.0.236/trunk@115931 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-06 04:45:32 +00:00
beard%netscape.com
9d0f870c8d Universal config file for Darwin.
git-svn-id: svn://10.0.0.236/trunk@115829 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-05 15:52:37 +00:00
beard%netscape.com
4c3bac27cf fix for bug #59686, a=asa@mozilla.org, r=rogerl, sr=shaver.
git-svn-id: svn://10.0.0.236/trunk@115821 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-05 15:09:05 +00:00
shaver%mozilla.org
0913674a48 Bug 106864: xptcall support for the ARM platform, and mild jsnum.h arm-define
tweaks. Patches from Mark Crichton <crichton@gimp.org>, Russell King
<rmk@arm.linux.org>, Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>.
r=brendan on jsnum.h, sr=shaver, a=asa for trunk and branch.


git-svn-id: svn://10.0.0.236/trunk@115801 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-05 06:35:50 +00:00
nisheeth%netscape.com
9872daecf4 Fix for bug 125465. r=jag, sr=jband, a=asa. Add AString, ACString, and AUTF8String support to XPCOM's variant data type. Also, add forward declarations of AString and ACString to nsrootidl.idl.
git-svn-id: svn://10.0.0.236/trunk@115789 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-05 02:22:02 +00:00
beard%netscape.com
e5ac95f0ec Needed for Mac OS X 10.1.3 / Darwin 5.3
git-svn-id: svn://10.0.0.236/trunk@115723 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-04 16:14:41 +00:00
brendan%mozilla.org
76d47b021c Runaway recursion safety for Exception and js_ErrorToException.
The latter no longer calls the former via js_ConstructObject, to
minimize failure opportunities when converting an error into an
exception.  Also, the 'stack' property of exception objects
faithfully preserves Unicode in function names and decompiled
actual argument sources.

Also, fun_xdrObject was reversing property order when encoding;
fixed to maximize property tree compression gain.

Also^2, js_ConstructObject was not handling success+not-found
return from FindConstructor.

bug 127136, r=rginda, sr=shaver, a=chofmann


git-svn-id: svn://10.0.0.236/trunk@115662 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-03 01:01:04 +00:00
brendan%mozilla.org
a72d288b1a Fix topcrash regression from bug 62164: keep track of duplicate kids below the root ply of the property tree, so we can fix up each dup's parent link (128258, r=shaver, sr=jband, a=asa).
git-svn-id: svn://10.0.0.236/trunk@115593 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-01 23:30:33 +00:00
brendan%mozilla.org
3d69a522d5 Fix call_enumerate to reflect compiler-created properties from function to its call object (127557, r=jband, sr=shaver, a=asa).
git-svn-id: svn://10.0.0.236/trunk@115592 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-01 23:26:09 +00:00
brendan%mozilla.org
ceae945ef2 Fix GC_MARK_DEBUG #ifdef'd code (not part of default build; r=polarbear, sr=shaver, a=dbaron).
git-svn-id: svn://10.0.0.236/trunk@115553 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-01 05:22:26 +00:00
rginda%netscape.com
af78329b48 part of bug 109652, "Venkman needs to profile"
sr=brendan, r=peterv, a=shaver
add JS_Now to the jsapi, and JS_GetScriptVersion to jsdbgapi


git-svn-id: svn://10.0.0.236/trunk@115414 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-27 09:17:21 +00:00
sfraser%netscape.com
d13290489f Fixing Mac bustage; add a bunch of casts between PRUnichar* and jschar* (why isn't jschar a wchar_t?). r=nisheeth
git-svn-id: svn://10.0.0.236/trunk@115348 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-26 03:01:03 +00:00
nisheeth%netscape.com
c01441892a Fix for bug 84186. r=dbradley, jag. sr=jband. Added support for CStrings, UTF8String, and AStrings to XPIDL. Also added the -t cmd line flag to XPIDL and XPTLINK that allows us to generate output for a specific XPT version. The XPT version number is being upped from 1.1 to 1.2 with this checkin.
git-svn-id: svn://10.0.0.236/trunk@115344 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-26 01:41:42 +00:00
brendan%mozilla.org
64c95321b5 Fix stale comment about duplicate formal params (a=drivers, comment-only followup to 62164's big patch).
git-svn-id: svn://10.0.0.236/trunk@115288 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-24 00:26:57 +00:00
brendan%mozilla.org
57c47d6829 Comment change only, quick followup to last humongous checkin.
git-svn-id: svn://10.0.0.236/trunk@115272 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-23 04:44:40 +00:00
brendan%mozilla.org
f780c9a84e Major footprint/perf win: share property state using a tree whose root represents empty scopes, and whose non-root nodes represent scopes with properties added in order from the root to that node; to use double hashing to map these tree-paths for per-scope property lookup; and avoid locking where possible through immutability and mostly-benign&rare race tolerance (62164, r=shaver, sr=jband).
git-svn-id: svn://10.0.0.236/trunk@115266 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-23 03:49:27 +00:00
jband%netscape.com
bded77e04f fix bug 126333. reduce shutdown leakage by releaseing Components object members. r=dbradley sr=alecf
git-svn-id: svn://10.0.0.236/trunk@115082 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-20 07:03:27 +00:00
rogerl%netscape.com
00f1179b87 r=thesteve, sr=brendan, bug @119909 - crashing RegExp with > 10 backrefs.
git-svn-id: svn://10.0.0.236/trunk@115050 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-20 05:43:26 +00:00
dbradley%netscape.com
4c972e2fbe Bug 119382 - attribute nsIIDPtr IID considered harmful - This patch makes it an error to declare an attribute named IID or a method named getIID. r=jband, sr=jst
git-svn-id: svn://10.0.0.236/trunk@114932 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-19 14:48:00 +00:00
dbradley%netscape.com
11a6c0c0fe Bug 121938 - XPCWrappedJS::GetNewORUsed does not look for inherited interfaces when matching interfaces. r=jband, sr=jst
git-svn-id: svn://10.0.0.236/trunk@114922 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-19 11:24:21 +00:00
brendan%mozilla.org
d8e62cd414 Fix bad old js_ValueToInt32 to have an int-jsval fast path, to avoid f.p. inaccuracy (126159, r=shaver, sr=jband).
git-svn-id: svn://10.0.0.236/trunk@114850 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-19 00:02:29 +00:00
jband%netscape.com
1c7ae7ac8d bug 123770. extend xpconnect to use dynamic 'additional' interface info managers to support dynamic type info. Also, abstract out the Components.interfaces object and make the items use a bit less memory. r=dbradley sr=vidur
git-svn-id: svn://10.0.0.236/trunk@114847 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-18 23:47:30 +00:00
brendan%mozilla.org
4df920fc3b Followup fix for ECMA-262 15.10.6.2 step 6, plus warning fixes (76717, r/sr=shaver&jband).
git-svn-id: svn://10.0.0.236/trunk@114843 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-18 23:43:28 +00:00