1387 Commits

Author SHA1 Message Date
brendan%mozilla.org
bf20b1ca3d - Add a generation number to JSDHashTable that counts entryStore changes due
to grows, shrinks, and compresses.  This helps JS_DHashTableOperate callers
  who hold returned entry pointers to validate those pointers and avoid having
  to re-lookup an entry by its key.
- Balance that addition by removing JSDHashTable.sizeMask, which is induced by
  JSDHashTable.sizeLog2 at the cost of two typically single-cycle instructions.
- Use JSDHashTable.generation in jsobj.c to avoid unsafely dereferencing an
  entry pointer held across calls to JSClass.resolve from js_LookupProperty,
  which may recur and add entries to cx->resolving, growing that table and
  invalidating entry pointers held by earlier js_LookupProperty activations.
(bug 78121, r=jst@netscape.com, sr=jband@netscape.com, a=asa@mozilla.org)


git-svn-id: svn://10.0.0.236/trunk@95896 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-25 03:05:38 +00:00
brendan%mozilla.org
d442d78367 Fix failure to round up in chunked realloc test in AddCharsToURI (82306, r=rginda, sr=scc).
git-svn-id: svn://10.0.0.236/trunk@95819 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-23 06:49:19 +00:00
brendan%mozilla.org
5ec88cd71a Add intern help message, caught by epstein@tellme.com (not part of build).
git-svn-id: svn://10.0.0.236/trunk@95814 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-23 06:13:13 +00:00
brendan%mozilla.org
678d939e1c Lazily pin the less likely atoms when resolving standard class names (77861, r=jst, sr=jband).
git-svn-id: svn://10.0.0.236/trunk@95787 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-23 04:02:06 +00:00
jband%netscape.com
c3c82b5b1c fix bug 82220. enumeration of Components.interfaces should only include scriptable interfaces. r=vidur sr=jst
git-svn-id: svn://10.0.0.236/trunk@95742 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-23 00:12:04 +00:00
rginda%netscape.com
6cb853ad8b create a dummy stack frame before calling out to the new-script-hook. The dummy frame prevents the script from being affected by any GC the hook may trigger. See bug 77636. author=shaver, r=me, sr=brendan
git-svn-id: svn://10.0.0.236/trunk@95736 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-22 23:57:37 +00:00
brendan%mozilla.org
0bcb3723cd Warning abatement (r=polarbear, sr=lumpy).
git-svn-id: svn://10.0.0.236/trunk@95727 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-22 23:25:18 +00:00
scc%mozilla.org
fccb53ea7f ok, but make this local bustage fix into a global one
git-svn-id: svn://10.0.0.236/trunk@95666 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-22 08:43:30 +00:00
scc%mozilla.org
e1841460d5 Fixing AIX/BeOS bustage. The statically determined length of the string was |0|, and on these ports, that was erroneously considered a candidate for conversion to a pointer, which made selection of the appropriate constructor for |nsDependentString| ambiguous ... go figure.
git-svn-id: svn://10.0.0.236/trunk@95664 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-22 08:02:58 +00:00
scc%mozilla.org
1b7f52f09f Fixing AIX/BeOS bustage. The statically determined length of the string was |0|, and on these ports, that was erroneously considered a candidate for conversion to a pointer, which made selection of the appropriate constructor for |nsDependentString| ambiguous ... go figure.
git-svn-id: svn://10.0.0.236/trunk@95659 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-22 07:25:25 +00:00
jband%netscape.com
cfb2c4ef41 - Fix bug 81341. Force creation of a WrappedJS around the JSObject of
aWrappedNative when doing aggregation. r=dradley sr=jst.
- Fix bug 81877. Avoid infinite recursion when reporting threadsafety
error. r=perterv,dradley sr=jst.
- Fix bug 81882. Use JS_AddNamedRootRT in XPCWrappedNative::AddRef to avoid
the unnecessary cost of creating an XPCCallContext in this frequently called
method. r=dbaron,dbradley sr=jst.


git-svn-id: svn://10.0.0.236/trunk@95624 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-21 22:45:14 +00:00
jst%netscape.com
535c86019d scc checking in from jst's account. bug #75220: sr=jst, rs=brendan. renaming |nsPromiseC?Concatenation| to |nsDependentC?Concatenation|; |nsPromiseC?Substring| to |nsDependentC?Substring|; |nsLiteralC?String| and |nsLocalC?String| to |nsDependentC?String|, as these new names better reflect clients obligations to instances.
git-svn-id: svn://10.0.0.236/trunk@95533 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-19 11:27:30 +00:00
jband%netscape.com
c70bc4bbd4 fix bug 49017. This extends our mapping of idl [function] interfaces so that they will try to treat the JSObject as a callable function (as before), but if the JSObject is *not* a function object then xpconnect will fall back to the non-[function] behaviour of trying to lookup a named function on the JSObject and then call that. r=jst sr=brendan,vidur,jst,(and everyone else I guess)
git-svn-id: svn://10.0.0.236/trunk@95468 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-18 23:35:03 +00:00
jband%netscape.com
dba2f210f3 fix bug 81542. Reorder interface methods so that they do not break compatibility with previously deployed plugins that work with previous versions of our software. The error was that I moved some around at all rather than just adding them to the end of the interfaces! Also, I added back in one method and marked it deprecated. r=dbradley sr=jst
git-svn-id: svn://10.0.0.236/trunk@95467 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-18 23:30:28 +00:00
jband%netscape.com
dd0e8f1737 fix bug 81436. Some Solaris compilers screwup symbol resolution if there is a file scope var that is also declared as extern. So we'll just make it not declare these two static (thses are not names that is going to conflict with anything!) r=timeless rs=jband
git-svn-id: svn://10.0.0.236/trunk@95464 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-18 23:24:19 +00:00
rogerl%netscape.com
8396238b82 Fix bug #76054. sr=brendan, r=beard. Generate lower case tags for all the
string tagify'ing helper functions like 'big()' etc. to be XHTML compliant.


git-svn-id: svn://10.0.0.236/trunk@95312 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-17 21:37:33 +00:00
jband%netscape.com
cb8d49d560 fix bug 81117. allow unsecure access to creating xpconnect wrappers around nsXPCException objects and expose the 'code' property. This saves us from cryptic errors in the JSConsole and DOMExceptions that don't work. r=mstoltz sr=jst
git-svn-id: svn://10.0.0.236/trunk@95266 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-17 18:25:06 +00:00
beard%netscape.com
33f6e00f51 bug #77856, r/sr=brendan.
git-svn-id: svn://10.0.0.236/trunk@95225 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-17 05:45:51 +00:00
beard%netscape.com
c214d9131c bug #77247, r/sr=brendan
git-svn-id: svn://10.0.0.236/trunk@95224 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-17 05:42:18 +00:00
vidur%netscape.com
46bb7a6e6f Reverting bogus assert. r/sr=brendan,jband
git-svn-id: svn://10.0.0.236/trunk@95209 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-17 04:55:49 +00:00
brendan%mozilla.org
0c0e5d9a7b Unified resolve recursion damping (70358) and resolve-from-js_SetProperty (72354), r/sr=jband,jst,shaver.
git-svn-id: svn://10.0.0.236/trunk@95183 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-17 01:43:58 +00:00
brendan%mozilla.org
152f495269 STORE_NUMBER's final param must be a jsdouble; fix INTEGER_OPs (81245, r=rogerl, sr=jband).
git-svn-id: svn://10.0.0.236/trunk@95182 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-17 01:40:32 +00:00
brendan%mozilla.org
8425d31606 Fix ChangeTable and how it's called (74883, r=gordon, sr=waterson, mcafee approved).
git-svn-id: svn://10.0.0.236/trunk@95146 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-16 21:41:52 +00:00
Xiaobin.Lu%eng.Sun.com
5f83020d4c r=timeless sr=shaver
bug 72807 "c++ style comment warning"


git-svn-id: svn://10.0.0.236/trunk@95089 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-16 02:24:44 +00:00
brendan%mozilla.org
d5037366b0 Add optional JSDHashTableOps.initEntry hook, spruce up comments (74883, r=waterson, sr=shaver).
git-svn-id: svn://10.0.0.236/trunk@95050 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-15 21:07:10 +00:00
brendan%mozilla.org
0abf3306e0 Re-init pinned atoms after 1=>0=>1 contexts-in-runtime transition (80619, sr=jband&shaver).
git-svn-id: svn://10.0.0.236/trunk@95024 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-15 19:39:16 +00:00
jband%netscape.com
e8ee3b88c6 remove commented out code
git-svn-id: svn://10.0.0.236/trunk@95022 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-15 19:15:30 +00:00
jband%netscape.com
a537ae5c5c bug 80062. Various post xpcdom branch landing fixes. r=dbradley sr=jst
git-svn-id: svn://10.0.0.236/trunk@94729 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-12 02:56:47 +00:00
pschwartau%netscape.com
8c29047265 Updated JS_GetImplementationVersion() to date of latest JS release (67111).
git-svn-id: svn://10.0.0.236/trunk@94678 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-11 20:05:34 +00:00
jband%netscape.com
244e7df40b fix bug 79907.r=rginda sr=jst
git-svn-id: svn://10.0.0.236/trunk@94473 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-10 09:45:28 +00:00
shaver%mozilla.org
ef2688e613 76659: make JSRegExps use JSClass.mark instead of GCThing locking, sr=brendan, r=rogerl
git-svn-id: svn://10.0.0.236/trunk@94468 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-10 08:05:45 +00:00
cls%seawood.org
223305e2e8 Do not attempt to compile lock_SunOS.s on Solaris Intel. (Native compiler only)
Bug #79598


git-svn-id: svn://10.0.0.236/trunk@94461 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-10 06:40:58 +00:00
jband%netscape.com
37e50deb64 fix linux startup assertion due to null PRLock. Trying to cleanup the xpcdom landing! r=dbaron
git-svn-id: svn://10.0.0.236/trunk@94275 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 21:40:00 +00:00
dbaron%fas.harvard.edu
923585dfda Attempt to fix AIX and OS/2 bustage by changing nsAReadableString (which is const) to nsAString. r=jband
git-svn-id: svn://10.0.0.236/trunk@94268 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 20:54:53 +00:00
dbaron%fas.harvard.edu
4af734d3cf Fix gcc 2.7.2.3 bustage (conditional with enumerated values from different anonymous enums). r=jband
git-svn-id: svn://10.0.0.236/trunk@94248 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 19:11:51 +00:00
jst%netscape.com
43eee52859 Landing the XPCDOM_20010329_BRANCH branch, changes mostly done by jband@netscape.com and jst@netscape.com, also some changes done by shaver@mozilla.org, peterv@netscape.com and markh@activestate.com. r= and sr= by vidur@netscape.com, jband@netscape.com, jst@netscpae.com, danm@netscape.com, hyatt@netscape.com, shaver@mozilla.org, dbradley@netscape.com, rpotts@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@94242 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 17:42:36 +00:00
brendan%mozilla.org
da4224d9bf - Fix bug 79054, AB-BA deadlock between rt->setSlotLock and one or more claimed scopes (r=shaver, sr=jband)
js_SetProtoOrParent should always have used a condvar in addition to a lock.
- Fix bug 79129, assert-botch in js_AllocSlot (r/sr=jband, sr=shaver)
  JS_INITIAL_NSLOTS is the minimum number of slots, js_FreeSlot guarantees it.


git-svn-id: svn://10.0.0.236/trunk@94190 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 01:31:02 +00:00
brendan%mozilla.org
7b329a191b Deoptimize JSOP_TABLESWITCH to JSOP_LOOKUPSWITCH upon first duplicate case label (74474, r=rogerl, sr=shaver).
git-svn-id: svn://10.0.0.236/trunk@94187 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 01:21:01 +00:00
kandrot%netscape.com
2f7e9262c9 Check in for Ron Guilmette. r=shaver, sr=waterson. For intl r=nhotta. Changes for NS_IMPL_NSGETMODULE. bug #46775.
git-svn-id: svn://10.0.0.236/trunk@94028 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-05 05:33:37 +00:00
brendan%mozilla.org
79e0885618 Fix DEBUG-only bytecode stack input/output tracing, patch from Steven C. Cole <scole@planet-nospam-web.com>.
git-svn-id: svn://10.0.0.236/trunk@94010 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-05 01:04:19 +00:00
rginda%netscape.com
7df5359714 part two of fix for bug 77081 r=rogerl, sr=brendan
git-svn-id: svn://10.0.0.236/trunk@93992 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-04 23:03:11 +00:00
rginda%netscape.com
7b58a7f6ff fix for 77081, r=rogerl, sr=brendan.
git-svn-id: svn://10.0.0.236/trunk@93969 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-04 21:48:48 +00:00
rginda%netscape.com
d7c4825284 fix for bug 76574, r=rogerl, sr=brendan.
git-svn-id: svn://10.0.0.236/trunk@93964 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-04 21:34:21 +00:00
rginda%netscape.com
de70079e56 fix for bug 77807, r=rogerl, sr=brendan
git-svn-id: svn://10.0.0.236/trunk@93962 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-04 21:31:48 +00:00
cls%seawood.org
cfeb5eff5b Set EXPORT_LIBRARY=1 in all pertinent Makefile.ins. Allows us to build the final link list as we traverse the tree. Bug #46775
git-svn-id: svn://10.0.0.236/trunk@93397 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-28 19:48:12 +00:00
brendan%mozilla.org
31f6a8d613 Restore reviewed code that should have been in the last checkin (76976, r=beard, sr=shaver, a=blizzard).
git-svn-id: svn://10.0.0.236/trunk@92875 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-21 04:37:01 +00:00
brendan%mozilla.org
f54563bd60 Restore ECMA-required Function.prototype.toString while keeping toSource/uneval fix for bug 73760 (76634, r=beard, sr=shaver, a=asa).
git-svn-id: svn://10.0.0.236/trunk@92759 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-19 21:57:25 +00:00
brendan%mozilla.org
c4f96602a8 Fix regexp object (scope) vs GC deadlock (76233, r=beard, sr=shaver, a=asa).
git-svn-id: svn://10.0.0.236/trunk@92756 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-19 21:15:40 +00:00
brendan%mozilla.org
3dbc040f94 Fix __kernel_standard prototype to match recent addition of int *err final out-param (8112, r=shaver, sr=me, prototype not used by Mozilla or embedding builds).
git-svn-id: svn://10.0.0.236/trunk@92755 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-19 21:05:52 +00:00
beard%netscape.com
4b7d52f7a7 fix for bug #8112, sr=brendan, r=beard
git-svn-id: svn://10.0.0.236/trunk@92648 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-18 03:38:58 +00:00