dbradley%netscape.com
2cc0fd8b50
Bug 102294 - printf has an extra parameter. r=jband
...
git-svn-id: svn://10.0.0.236/trunk@104514 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-03 02:48:40 +00:00
dbaron%fas.harvard.edu
c7ecd0425e
Bug 45797: replace remaining uses of deprecated macros NS_IMPL_QUERY_INTERFACE and friends with NS_IMPL_QUERY_INTERFACE1 and friends and remove the deprecated macros. r=jag sr=alecf
...
git-svn-id: svn://10.0.0.236/trunk@104396 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-02 03:18:08 +00:00
brendan%mozilla.org
2f43b8afc7
Check in patch for bug 94580, thanks to Bernard Alleysson <balleysson@bigfoot.com> for researching and writing it (r=me, sr=shaver).
...
git-svn-id: svn://10.0.0.236/trunk@104229 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-29 21:30:26 +00:00
jaggernaut%netscape.com
51e0dc7a6c
Bug 100476: Convert uses of member functions ToNewUnicode, ToNewCString and ToNewUTF8String to their global versions and remove support from nsCString and nsString. r=dbaron, rs=scc
...
git-svn-id: svn://10.0.0.236/trunk@104212 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-29 08:28:41 +00:00
bryner%netscape.com
cd62b14ed9
Fixing xpctools build on win32. r=cls.
...
git-svn-id: svn://10.0.0.236/trunk@104210 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-29 06:24:41 +00:00
dbradley%netscape.com
48879a26b5
Items moved to bugzilla or have already been addressed
...
git-svn-id: svn://10.0.0.236/trunk@104173 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-29 00:13:34 +00:00
dbradley%netscape.com
c66456bb8f
Bug 97967 - leak of nsLocalFile on failure. Patch by dbaron, r=dbradley, sr=jband
...
git-svn-id: svn://10.0.0.236/trunk@104135 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-28 21:49:00 +00:00
gerv%gerv.net
13afb6d0f9
Relicensing Round 1, Take 2. Most C-like NPL files -> NPL/GPL/LGPL. Bug 98089.
...
git-svn-id: svn://10.0.0.236/trunk@104119 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-28 20:14:13 +00:00
shaver%mozilla.org
4b9d50f0ba
Bug 94506: parameter named "arguments" is not accessible in JavaScript method.
...
Now we check for the magic "arguments" name after var-and-arg slot
optimizations. r=rogerl, sr=brendan
git-svn-id: svn://10.0.0.236/trunk@103943 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-27 14:52:14 +00:00
brendan%mozilla.org
81ba8bd9b7
Don't report uncaught exceptions unless returning to native code (97646, r=jband, sr=shaver).
...
git-svn-id: svn://10.0.0.236/trunk@103924 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-27 05:04:45 +00:00
dbradley%netscape.com
852b750761
Bug 94859 silence compiler warning about unused variable r=rginda, sr=jband
...
git-svn-id: svn://10.0.0.236/trunk@103806 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-26 04:11:54 +00:00
brendan%mozilla.org
d5ee6f816f
Report uncaught exceptions from all JS_Compile* APIs (97646, sr=jband&shaver).
...
git-svn-id: svn://10.0.0.236/trunk@103707 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-25 06:43:33 +00:00
dbradley%netscape.com
203b5a336d
patch from bug 99838 - Changes to remove xpconnects dependency on DOM r=jband, sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@103654 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-24 22:57:47 +00:00
dbradley%netscape.com
3223174017
patch from bug 99838 - Changes to remove xpconnects dependency on DOM r=jband, sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@103649 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-24 22:48:35 +00:00
cls%seawood.org
2ac62745b5
Use default EXPORTS rules instead of installing headers by hand.
...
Bug #98371 sr=alecf
git-svn-id: svn://10.0.0.236/trunk@103567 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-23 03:34:32 +00:00
jband%netscape.com
7e37012cad
I'm tired of this warning: '*/' found outside of comment. This was much discussed. But no one ever bothered to actually check in the trivial fix. r=rginda rs=jband.
...
git-svn-id: svn://10.0.0.236/trunk@103556 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-22 17:42:36 +00:00
timeless%mac.com
bab5dc4c87
Bug 100873 JS Hard Codes JS_HAVE_LONG_LONG to the detriment of FreeBSD
...
r=cls sr=shaver
git-svn-id: svn://10.0.0.236/trunk@103448 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-21 14:09:54 +00:00
jband%netscape.com
f20e03b41b
fix bug 100222. Fix crash by only releasing other objects in xpcwrappedjs dtor if xpconnect has not yet shutdown. r=dbradley sr=jst.
...
git-svn-id: svn://10.0.0.236/trunk@103247 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-20 00:51:38 +00:00
gerv%gerv.net
ae1d5501a1
Oops.
...
git-svn-id: svn://10.0.0.236/trunk@103236 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-20 00:02:59 +00:00
scc%mozilla.org
2281a4d137
bug #98089 : ripped new license
...
git-svn-id: svn://10.0.0.236/trunk@103230 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-19 22:39:41 +00:00
jband%netscape.com
09fde32fce
fix bug 100260. xpconnect should not hold a weak reference to a classinfo object after the xpcwrappednativeproto that was holding a strong ref is destroyed. sr=jst, r=dbradley,markh.
...
git-svn-id: svn://10.0.0.236/trunk@103184 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-19 06:22:17 +00:00
rogerl%netscape.com
a01fa23e32
Fix bug #98306 , ParseAtom crash for "/[/]/" r=jst, r/sr=be.
...
git-svn-id: svn://10.0.0.236/trunk@103121 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-18 22:36:14 +00:00
jaggernaut%netscape.com
8a87c13848
One module per line for REQUIRES. r=/sr=alecf
...
git-svn-id: svn://10.0.0.236/trunk@103116 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-18 22:01:13 +00:00
jaggernaut%netscape.com
8b71ae9c91
Bug 73353: splitting the modules on the REQUIRES lines in Makefile.in across multiple lines to more clearly show the changes made. sr=alecf
...
git-svn-id: svn://10.0.0.236/trunk@103093 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-18 13:41:47 +00:00
brendan%mozilla.org
c5ed6660bd
Use the maximum of fp->argc and fp->fun->nargs to bound fp->argv (97921, sr=jband&shaver).
...
git-svn-id: svn://10.0.0.236/trunk@103055 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-18 01:47:41 +00:00
alecf%netscape.com
e28607491e
Final REQUIRES changes for bug 98371, adding support for MOZ_TRACK_MODULE_DEPS to win32. r=cls (and tested by cls!)
...
git-svn-id: svn://10.0.0.236/trunk@102999 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-17 19:06:35 +00:00
brendan%mozilla.org
c1e6be1826
Fix unsafe JS_DHashTableRawRemove usage; unoverload cx->resolving into a counter and a JSDHashTable pointer (94422, r/sr=jband,waterson with dbaron sanity checks).
...
git-svn-id: svn://10.0.0.236/trunk@102898 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-14 03:37:15 +00:00
brendan%mozilla.org
9457b2de04
1. Fix jsdhash/pldhash.[ch] so that add/remove cycles for a given k do not
...
create a long chain of removed sentinels. Also, when adding k to a table
where k is not mapped, but where k hashes to a chain that includes removed
sentinels, recycle the first removed sentinel in the chain for k's entry.
2. Cache cx->resolving till js_DestroyContext, to avoid high JSDHashTable
new/destroy overhead in js_LookupProperty.
3. Add NS_TraceStack to nsTraceMalloc.[ch] and clean the .c file up a bit.
git-svn-id: svn://10.0.0.236/trunk@102796 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-12 06:39:31 +00:00
cls%seawood.org
6d47ac1557
Make generated header use common install rules.
...
Bug #59454 r=bryner sr=alecf
git-svn-id: svn://10.0.0.236/trunk@102795 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-12 06:35:50 +00:00
blizzard%redhat.com
3afe7411a3
Checking in for Ulrich Drepper. Bug #99246 . r=beard, sr=brendan
...
git-svn-id: svn://10.0.0.236/trunk@102789 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-12 03:19:08 +00:00
alecf%netscape.com
d0766d027e
add REQUIRES support to jpeg, sun-java, db, etc.. b=98371 r=cls
...
git-svn-id: svn://10.0.0.236/trunk@102664 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-10 20:48:38 +00:00
rginda%netscape.com
086a4d9e61
bug 95534, r=brendan, sr=jband
...
fix semantics of JSTRAP_CONTINUE to prevent a debugger client from telling the engine to continue when we all know it'll proobably just crash.
git-svn-id: svn://10.0.0.236/trunk@102465 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 21:46:18 +00:00
jband%netscape.com
2416ed1694
fix bug 96511. Meant #ifdef not #if. sr=brendan r=jband
...
git-svn-id: svn://10.0.0.236/trunk@102425 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 19:01:17 +00:00
jband%netscape.com
870c86ceaf
fix bug 98450. We need to be calling OBJ_DROP_PROPERTY after OBJ_LOOKUP_PROPERTY. Also, this was refactored on dbradley's suggestion. sr=brendan r=dbradley
...
git-svn-id: svn://10.0.0.236/trunk@102391 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 06:29:19 +00:00
jband%netscape.com
453d5271bf
fix bug 97444. It is not good to patch a different fun into the frame. Let's safely shunt aside the callee frame instead. r=rogerl sr=brendan
...
git-svn-id: svn://10.0.0.236/trunk@102325 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 21:25:09 +00:00
brendan%mozilla.org
802990f0a6
Ignore property found in non-native prototype (12367, sr=jband&shaver, a=asa).
...
git-svn-id: svn://10.0.0.236/trunk@102198 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-03 22:29:12 +00:00
brendan%mozilla.org
4a1d0f0899
Fix toSource on exception objects so it uses toSource to generate properly-quoted, embedded string literals for message and filename (bug 96284, r=jband, sr=shaver, a=asa).
...
git-svn-id: svn://10.0.0.236/trunk@102191 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-03 19:36:24 +00:00
rginda%netscape.com
d95b9a0aca
bug 88130, patch=jband, r=me,dbradley, sr=jst, a=brendan
...
clear exception state before and after calling out via xpconnect.
remove redundant exception clear from CallQueryInterfaceOnJSObject.
git-svn-id: svn://10.0.0.236/trunk@102170 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-01 22:47:47 +00:00
jband%netscape.com
25a16ec622
fix bug 97555. Need to get the correct value of staep into the iterator object when we fail during enumeration init. r=jst sr=brendan a=asa
...
git-svn-id: svn://10.0.0.236/trunk@102105 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 21:48:18 +00:00
brendan%mozilla.org
a30fcf3fcb
Fix 97540, r=rginda, sr=jband, a=asa:
...
- The most significant fix, to keep JSStackFrame.spbase, the operand stack base pointer for an active frame, null except when there is an operand stack allocated and in use by js_Interpret. Previously, spbase would point after args and local vars (if any), then advance upon allocation of the (possibly discontiguous) operand stack space. This made for a fatal ambiguity: js_AllocStack, called by XPConnect, could not tell when there was allocated operand stack space above the frame's sp, which needs to be set to a known (JSVAL_VOID) state for exact GC to work. Now, the GC doesn't have to mark any operand stack space for a frame whose spbase is null, and js_AllocStack doesn't need to void any unused space for such a frame.
- Fixes to reload the JSRuntime's callHook or executeHook after calling or executing, in case the debugger removes the hook. In which case, it must clean up any dynamic memory held by hookData, but in any event, in which case the engine must not call the post-call or post-execute hook.
- While debugging with rginda, I was horrified to see his trivial testcase function, expressed as a lambda, fail to be invoked using the "inline_call" machinery in js_Interpret (which avoids js_Interpret recursion through js_Invoke for most JS functions). The problem was a test of fun->flags == 0 conditioning the /* inline_call: */ code. Since that test was written, at least one JSFUN_* flag (JSFUN_LAMBDA, used only for pretty-printing or accurate decompilation) has been added. But all along, that test was an over-optimization (testing against 0 without &'ing certain flags), making for an accident waiting to happen -- which did happen. The relevant flags are JSFUN_HEAVYWEIGHT (set by the compiler when a function calls eval, uses with, or otherwise needs an activation object for its scope; if lightweight, the compiler can see the function's scope and eliminate it via specialized bytecodes) and JSFUN_BOUND_METHOD (for Java method calls, where |this| binds statically to the instance, not dynamically to the calling expression reference's base object, as in JS).
git-svn-id: svn://10.0.0.236/trunk@102100 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 21:25:26 +00:00
jband%netscape.com
3311deca71
fix bug 96725. Avoid infinite recursion in call to QI'd xbl binding by avoiding the mutation of the interface set when the object implementing the interface is a wrappedJS around our wrappedNative's own JSObject. r=dbradley sr=hyatt a=brendan,hyatt,jband
...
git-svn-id: svn://10.0.0.236/trunk@101910 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-28 21:52:10 +00:00
rjesup%wgate.com
288182f644
Bug 94243: VoidArray usage patch. a=asa sr=brendan r=waterson r=bienvenu
...
r=pierre r=jband/dbradley Also fixes some whitespace issues.
git-svn-id: svn://10.0.0.236/trunk@101822 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-27 06:15:54 +00:00
brendan%mozilla.org
d72ef6fca0
Check keyword version when scanning, not by installing different keywords on version selection (when starting to compile; bug 96562, r=rogerl, sr=shaver&jband, a=dbaron).
...
git-svn-id: svn://10.0.0.236/trunk@101736 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 03:32:31 +00:00
brendan%mozilla.org
a76cace18d
Avoid corrupting backpatch chains by checking for jump offset operand overflow (90445, khanson's patch with minor changes, sr=shaver&me, a=asa).
...
git-svn-id: svn://10.0.0.236/trunk@101681 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 02:07:07 +00:00
brendan%mozilla.org
5bd9bfb18a
Checking in khanson's patch for bug 85112, based on joemansh@interl.net's algorithm (r=beard, sr=me).
...
git-svn-id: svn://10.0.0.236/trunk@101635 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 05:42:16 +00:00
brendan%mozilla.org
8404f27930
Forget to include jsopcode.h.
...
git-svn-id: svn://10.0.0.236/trunk@101633 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 05:33:32 +00:00
brendan%mozilla.org
97dea81da0
Support ref()++ etc. for native ref (75688) and fix exn_toSource (96284); sr=shaver&jband.
...
git-svn-id: svn://10.0.0.236/trunk@101627 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 04:59:28 +00:00
brendan%mozilla.org
5f91bd99d8
Checking in shaver's patch for bug 78100, adding JS_GetExternalStringGCType (sr=brendan&jband).
...
git-svn-id: svn://10.0.0.236/trunk@101473 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 02:53:19 +00:00
dbaron%fas.harvard.edu
3485888237
Replace uses of deprecated NS_IMPL_ISUPPORTS and NS_IMPL_QUERYINTERFACE macros with NS_IMPL_{ISUPPORTS,QUERYINTERFACE}{1,0}. r=jag rs=brendan b=45797
...
git-svn-id: svn://10.0.0.236/trunk@101462 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 01:48:11 +00:00
brendan%mozilla.org
f6e26a3367
Don't resolve standard classes if JSRESOLVE_ASSIGNING (NOT PART OF BUILD).
...
git-svn-id: svn://10.0.0.236/trunk@101295 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-17 10:40:15 +00:00