1926 Commits

Author SHA1 Message Date
brendan%mozilla.org
ddf1166154 Saner ReportReadOnlyScope message names the sealed object, not an undefined property that can't be created in its scope (94693, r=me).
git-svn-id: svn://10.0.0.236/trunk@139833 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-20 11:27:33 +00:00
brendan%mozilla.org
8f59258858 Fix JSOP_BINDNAME to have JOF_SET (which is now the same as JOF_ASSIGNING, so use that where it's a clearer name; 94693, r=me).
git-svn-id: svn://10.0.0.236/trunk@139832 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-20 11:05:10 +00:00
brendan%mozilla.org
7cc2d1c1ff Fix broken left-associativity and constant folding for + chains involving some string terms (196290, r=shaver by telepathy).
git-svn-id: svn://10.0.0.236/trunk@139787 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-19 19:33:33 +00:00
bzbarsky%mit.edu
cb5f836162 Fix some spelling errors in comments. Bug 106386, patch by Nicholas Bebout
<nb@ipnode.info>, r=doron, sr=dmose


git-svn-id: svn://10.0.0.236/trunk@139745 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-19 04:35:08 +00:00
brendan%mozilla.org
7d9dc98de7 Don't override a prototype property iff it is JSPROP_SHARED (not also if it's a JSPROP_SETTER; 197940, r=rogerl).
git-svn-id: svn://10.0.0.236/trunk@139739 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-19 02:25:39 +00:00
brendan%mozilla.org
4d94340532 Move readonly pre-ECMA error report down to new place peculiar to sealed
scopes, and share it via downward goto from the old place (which should go
away when a bug on khanson's list whose # I forget is fixed).  This fixes
the hole in sealed scope support mentioned in bug 94693 (r=rogerl/shaver).


git-svn-id: svn://10.0.0.236/trunk@139729 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-19 00:53:45 +00:00
seawood%netscape.com
f5e8ff6134 Fix --enable-xpctools post-minimo bustage
git-svn-id: svn://10.0.0.236/trunk@139629 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-17 23:40:16 +00:00
dougt%netscape.com
fed2927b2c Create a new xpcom obsolete library (and component library).
Moved nsFileSpec and related classes into this obsolete library.
  Moved nsRegistry and related libreg functionality into the obsolete library.

Updated many callers using the obsolete nsFile spec to use nsIFile and Necko to do file IO.

Combined the following DLLs (source -> dest)
  uriloader -> docshell
  shistory -> docshell
  jsurl -> jsdom
  gkview -> gklayout

Moved nsAdapterEnumerator out of xpcom/ds and into mailnews, since they're the only consumer

Modifed the xpt_link tool so that you can specify a “only include” cid list that can mask CID’s that you are not interested in.

Added build options:
Prevent the building of xpinstall (--disable-xpinstall)
Prevent the building js component loader (--disable-jsloader)
A build option to only build a single profile (--enable-single-profile)
A build flag to only built the required xpfe components (--disable-xpfe-components).

Removal or hiding of unused functions and classes including nsEscape*, nsDequeIterator, nsRecyclingAllocatorImpl, nsDiscriminatedUnion, nsOpaqueKey, nsCRT::strlen, NS_NewCommandLineService

Bug 194240, r/sr = darin, alec.


git-svn-id: svn://10.0.0.236/trunk@139480 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-15 01:04:32 +00:00
brendan%mozilla.org
d62cd7ab7c Implement SCOPE_IS_SEALED, JS_SealObject, JS_UnsealObject, etc. to support
sealed standard object graphs, as well as to pave the way for optimizations
to object literals (94693, r=shaver).


git-svn-id: svn://10.0.0.236/trunk@139434 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-14 05:24:58 +00:00
beard%netscape.com
23e5da2ba1 Fix for bug #53593, sr=brendan, r=beard
git-svn-id: svn://10.0.0.236/trunk@139372 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-13 05:37:07 +00:00
brendan%mozilla.org
d6a5cd1a9f Fix JS_[GS]etContextThread return type; add JSCLASS_NEW_RESOLVE_GETS_START (196966, r=shaver).
git-svn-id: svn://10.0.0.236/trunk@139345 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-12 20:29:16 +00:00
dbradley%netscape.com
dc703ab238 bug 196241 - Refactors script evaluation pre and post logic into a class. r=timeless, sr=brendan
git-svn-id: svn://10.0.0.236/trunk@139344 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-12 20:26:21 +00:00
dbradley%netscape.com
63ca81d64d bug 188229 - [AxPlugin] Security policy should be per-domain configurable r=adamlock, sr=alecf NOTE: these changes are not part of the regular build.
git-svn-id: svn://10.0.0.236/trunk@139341 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-12 20:05:54 +00:00
dbradley%netscape.com
92efcb5438 Bug 194043 - Refactor exception logic between IDispatch and XPConnect. r=adamlock@netscape.com, sr=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@139327 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-12 15:21:06 +00:00
brendan%mozilla.org
d282bac114 Give JSScope a proper flags member, without increasing its size (part of 196097, r=shaver).
git-svn-id: svn://10.0.0.236/trunk@139287 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-11 20:30:55 +00:00
cls%seawood.org
3e1e711a04 Adding mingw support to js.
Bug #134113 r=brendan


git-svn-id: svn://10.0.0.236/trunk@139249 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-11 03:27:07 +00:00
seawood%netscape.com
c0d2295c8f Remove unneeded local win32 jsinterop.obj target that's causing dependency issuees.
Thanks to John Morrison <jrgm@netscape.com> for the patch.
Bug #196633 r=cls sr=brendan


git-svn-id: svn://10.0.0.236/trunk@139235 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-11 00:13:44 +00:00
seawood%netscape.com
e420e5df5d Fix dependency problems with local targets.
Bug #196633 r=jrgm


git-svn-id: svn://10.0.0.236/trunk@139185 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-10 05:16:06 +00:00
brendan%mozilla.org
22dc15707d [Second check-in attempt; last night's was backed out, but I claim it was because of bad dependencies or timestamp problems in the Win32 builds. /be] Add cx->lastAtom, a long overdue addition to the per-context GC root set (196461, r=shaver).
git-svn-id: svn://10.0.0.236/trunk@139175 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-09 18:16:27 +00:00
jrgm%netscape.com
7073103e1a backout changes for bug 196461, due to startup crash on win32
git-svn-id: svn://10.0.0.236/trunk@139164 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-09 05:57:23 +00:00
brendan%mozilla.org
a1be04d6cb Add cx->lastAtom, a long overdue addition to the per-context GC root set (196461, r=shaver).
git-svn-id: svn://10.0.0.236/trunk@139163 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-09 03:12:56 +00:00
cls%seawood.org
dac8d1a090 Adding mingw makefile changes.
Bug #134113 r=bryner


git-svn-id: svn://10.0.0.236/trunk@139140 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-08 05:57:15 +00:00
brendan%mozilla.org
1e6fa1298d Reorder static and const to match tradition; reomve DEBUG_brendan cruft.
git-svn-id: svn://10.0.0.236/trunk@139130 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-08 01:28:02 +00:00
cls%seawood.org
609a196b54 XP code changes required for mingw landing.
Add NS_STDCALL macros for functions that require stdcall declarations.
Add NS_STDCALL_FUNCPROTO macro for stdcall function prototype typedefs.
Bug #134113 r=dougt sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@139083 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-07 06:07:56 +00:00
brendan%mozilla.org
7ca23cd385 Infrastructure for bug 92773, r=shaver@mozilla.org:
- call the JSRuntime's checkObjectAccess callback, if configured, for each
  get or set that invokes a user-defined function (a user-defined function is
  a scripted or native function object, not a native JSPropertyOp C function).
  The value passed as an in-out parameter in *vp is the function object, so
  the callback could, e.g., clone function objects and configure them with
  different parent objects, if that helped import them into a trust domain.
- Fix a long-standing bug that broke the deprecated, old-style, and rarely-
  used top-level getter/setter function declaration form:

    getter function f()  { return ++x; }
    setter function f(y) { return x = y; }

  We want js_CheckRedeclaration to complain only if a permanent getter is
  being redefined by another getter, likewise for a setter -- but not when
  (as above) a setter is being added to a top-level object for the same id
  as a pre-existing getter (or vice versa).


git-svn-id: svn://10.0.0.236/trunk@139038 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-06 19:45:18 +00:00
dougt%netscape.com
17b4467f60 removing NS_MT_SUPPORTED define. b=186494, r=dougt, r=seawood
git-svn-id: svn://10.0.0.236/trunk@138992 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-05 23:30:22 +00:00
dougt%netscape.com
f177f9378c backing out js changes which may have caused tbox test failures
git-svn-id: svn://10.0.0.236/trunk@138926 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-05 05:05:39 +00:00
timeless%mozdev.org
aa19f479ed Bug 195289 Enable people to use DumpJSStack and friends from nondebug builds if they list themselves as xpc_hackers
r=dbradley sr=jst


git-svn-id: svn://10.0.0.236/trunk@138912 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-05 03:12:04 +00:00
brendan%mozilla.org
5dd4c1fa6f Infrastructure for bug 92773, r=shaver@mozilla.org:
- call the JSRuntime's checkObjectAccess callback, if configured, for each
  get or set that invokes a user-defined function (a user-defined function is
  a scripted or native function object, not a native JSPropertyOp C function).
  The value passed as an in-out parameter in *vp is the function object, so
  the callback could, e.g., clone function objects and configure them with
  different parent objects, if that helped import them into a trust domain.
- Fix a long-standing bug that broke the deprecated, old-style, and rarely-
  used top-level getter/setter function declaration form:

    getter function f()  { return ++x; }
    setter function f(y) { return x = y; }

  We want js_CheckRedeclaration to complain only if a permanent getter is
  being redefined by another getter, likewise for a setter -- but not when
  (as above) a setter is being added to a top-level object for the same id
  as a pre-existing getter (or vice versa).


git-svn-id: svn://10.0.0.236/trunk@138898 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-05 01:33:19 +00:00
brendan%mozilla.org
8acc5df2d8 Quick followup to patch for 174341.
git-svn-id: svn://10.0.0.236/trunk@138816 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-04 00:01:21 +00:00
brendan%mozilla.org
b3048a359d My take on a patch and great idea from igor@icesoft.com (Igor Bukanov) for bug 195385, r=shaver.
git-svn-id: svn://10.0.0.236/trunk@138753 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-01 06:39:51 +00:00
timeless%mozdev.org
3629507ac7 Bug 136264 HTMLCollection Object wrapped by XPConnect has members whose names shadow each other
r=jst sr=jst


git-svn-id: svn://10.0.0.236/trunk@138710 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-28 19:07:51 +00:00
brendan%mozilla.org
d162180fd1 Fix typo in old comment.
git-svn-id: svn://10.0.0.236/trunk@138698 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-28 07:18:40 +00:00
brendan%mozilla.org
e35c8b596b Constipation of (JS|PL)DHashTableOps (195298, r/sr=shaver/alecf).
git-svn-id: svn://10.0.0.236/trunk@138697 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-28 07:17:59 +00:00
timeless%mozdev.org
62339cf898 Bug 136260 ChromeWindow Object wrapped by XPConnect has members whose names shadow each other
r=jst sr=jst


git-svn-id: svn://10.0.0.236/trunk@138671 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-28 02:34:01 +00:00
brendan%mozilla.org
452ecec045 - Move left-associative binary tree flattening from the post-order position
in js_FoldConstants where it was added (suboptimally: it worked, but it ran
  so late that js_FoldConstants recursion was not reduced, only js_EmitTree
  recursion), to NewBinary, where it avoids JSParseNode allocations up front
  and reduces recursion in all parse-tree walking.
- This change enables js_FoldConstants to see a very long concatenation of
  string literals as a PN_LIST node, so it can quickly concatenate without
  running afoul of O(n^2) problems inherent in js_ConcatStrings applied to
  two atomized strings (the old way of folding string concatenations, still
  used for any pairwise string literal concatenation).
- Further optimize the first change for the second by having NewBinary set a
  new pn_strcat flag (overlaying the pn_extra field) of the PN_LIST arm of
  the JSParseNode.pn_u union, whenever it sees at least one string literal in
  a concatenation that might be folded (whose operands might all be constants
  of string or number type).
- Notes:
  - only string and number constants are folded (not boolean or null
  constants);
  - only all-constant left-associated binary expression chains are folded,
    so 2 * foo * 3 is not folded using commutativity of * over numbers, nor
    is "hi" + " there" + foo folded to "hi there" + foo.
  - gcc3.2 -O and objdump -x say I added 708 bytes of instructions with this
    change.  I tried to keep it down to what was necessary for common script;
    I don't think JS needs an optimizing-compiler-strength constant folder,
    and I don't think this 1K bloat is too high a price to pay for this fix.
    But I'll certainly work on reducing footprint elsewhere, if I can.
- Bug 174341, r=shaver.


git-svn-id: svn://10.0.0.236/trunk@138638 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-27 23:04:46 +00:00
pschwartau%netscape.com
ea9dc79cc0 Get JS standalone building with Makefile.ref on Mac OSX (195134, r=cls). Not part of browser build.
git-svn-id: svn://10.0.0.236/trunk@138627 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-27 21:52:13 +00:00
brendan%mozilla.org
12f0b8252d Checking in heap-sort speedup from Igor Bukanov <igor@icesoft.no> (bug 181828, r=me).
git-svn-id: svn://10.0.0.236/trunk@138577 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-27 01:43:44 +00:00
mkaply%us.ibm.com
b2bae05129 #156505
r=dbradley, sr=brendan
If you ask for input, you should fflush after the fprintf


git-svn-id: svn://10.0.0.236/trunk@138544 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-26 15:22:03 +00:00
brendan%mozilla.org
4d9fdd04df Optimize the foo = '' + bar; case in js_ConcatStrings to do foo = bar -- patch from Tim Lundeen <tlundeen@webcrossing.com>, r=me.
git-svn-id: svn://10.0.0.236/trunk@138501 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-26 01:49:32 +00:00
brendan%mozilla.org
dd8fb1a973 Fix misspelling in comment.
git-svn-id: svn://10.0.0.236/trunk@138496 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-26 01:29:55 +00:00
mkaply%us.ibm.com
bbacb99561 Overzealous -removed a paren
git-svn-id: svn://10.0.0.236/trunk@138429 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-25 05:59:50 +00:00
mkaply%us.ibm.com
4f9d4b9cf9 IRIX bustage - for anyone blaming this code in the future, checkin was Bug 146873 by mstoltz
git-svn-id: svn://10.0.0.236/trunk@138428 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-25 05:58:21 +00:00
timeless%mozdev.org
cf5137d786 Bug 131275 JS_AddRoot could provide a default root name if you define NAME_ALL_GC_ROOTS
r=brendan


git-svn-id: svn://10.0.0.236/trunk@138415 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-25 03:29:24 +00:00
mstoltz%netscape.com
d154fba3a0 Bug 146873 - Check JS Enabled status before calling from java into JS. r=jst, sr=heikki.
git-svn-id: svn://10.0.0.236/trunk@138404 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-25 01:37:47 +00:00
timeless%mozdev.org
f7ef5f09c3 Bug 140031 Change jstypes.h to use __declspec instead of _declspec
r=rogerl


git-svn-id: svn://10.0.0.236/trunk@138375 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-24 21:37:54 +00:00
timeless%mozdev.org
f9040a0aec Bug 186937 JSLL_UCMP missing from !JS_HAVE_LONG_LONG builds
patch by scole@planetweb.com r=brendan


git-svn-id: svn://10.0.0.236/trunk@138373 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-24 21:37:23 +00:00
timeless%mozdev.org
5996495cab Bug 188398 JavaScript Engine doesn't work well for dates after 2038 on Windows
r=rogerl


git-svn-id: svn://10.0.0.236/trunk@138355 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-24 19:20:24 +00:00
timeless%mozdev.org
6e5c6bbae3 Bug 134728 mozJSComponentLoader::UnloadAll => JSCLAutoContext::JSCLAutoContext Getting service @mozilla.org/js/xpc/ContextStack;1 on shutdown.
r=dbradley sr=brendan


git-svn-id: svn://10.0.0.236/trunk@138287 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-23 07:03:11 +00:00
seawood%netscape.com
e084af4726 Use va_copy if available for VARARGS_ASSIGN
Bug #187180 r=blizzard sr=brendan


git-svn-id: svn://10.0.0.236/trunk@138284 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-23 06:59:39 +00:00