Commit Graph

1676 Commits

Author SHA1 Message Date
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
seawood%netscape.com
789a127d29 Removing unneeded LIBS setting. LIBS isn't used to link libraries.
git-svn-id: svn://10.0.0.236/trunk@114834 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-18 23:19:49 +00:00
jband%netscape.com
8ed52839ab fix bug 125430. Unbust Components.returnCode by not setting the JSPROP_READONLY bit on the read/write property. r=bzbarsky sr=jst
git-svn-id: svn://10.0.0.236/trunk@114569 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-15 03:33:37 +00:00
dbradley%netscape.com
fdd1846921 Bug 121526 - Need to expose the security info pointer from the nsIXPConnectWrappedNative interface. r=jst, sr=jband
git-svn-id: svn://10.0.0.236/trunk@114568 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-15 03:11:15 +00:00
rginda%netscape.com
3902d6df27 bug 124474, "JS_IsNativeFrame should return !fp->script"
also includes typo fix from bug 124474
sr=shaver, r=jband


git-svn-id: svn://10.0.0.236/trunk@114495 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-14 07:52:02 +00:00
brendan%mozilla.org
86e25935ba Construct error objects to consolidate their default property setting; this entails adding JS_ConstructObjectWithArguments (123177, r=rginda, sr=shaver).
git-svn-id: svn://10.0.0.236/trunk@114493 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-14 07:25:34 +00:00
jband%netscape.com
c3462e03e5 add regression test for bug 125430. NOT PART OF THE BUILD
git-svn-id: svn://10.0.0.236/trunk@114485 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-14 06:01:54 +00:00
dbradley%netscape.com
4541c66d72 Bug 124251 - Fix for some DOMStrings leaking when using -mail. r=dbaron, sr=jst
git-svn-id: svn://10.0.0.236/trunk@114449 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-14 00:12:44 +00:00
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