211 Commits

Author SHA1 Message Date
brendan%mozilla.org
2adc8e4a6b Add missing first [ in CDATA literal generator (312064, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@182068 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-12 05:50:51 +00:00
brendan%mozilla.org
dea8133b7b Use local roots in XMLToXMLString (311580, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@181889 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-10 03:28:14 +00:00
mrbkap%gmail.com
f4d284ad5b bug 311024: Make sure eval grabs the right scope object. r=brendan sr=jst
git-svn-id: svn://10.0.0.236/trunk@181803 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-08 00:28:45 +00:00
brendan%mozilla.org
6a3c02122b Force XML option on inside a literal list or element, to allow comments and CDATA (311157, r/sr=mrbkap/shaver).
git-svn-id: svn://10.0.0.236/trunk@181670 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-05 19:58:58 +00:00
mrbkap%gmail.com
1cd6ddfd2e bug 309897: Make sure to not shrink XML arrays when doing so would shrink the capacity to less than the needed size. Patch from Brendan. r/sr=mrbkap/shaver
git-svn-id: svn://10.0.0.236/trunk@181235 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-29 23:31:36 +00:00
brendan%mozilla.org
4923287c8d Oops.
git-svn-id: svn://10.0.0.236/trunk@180690 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-20 21:53:17 +00:00
brendan%mozilla.org
69e961c489 Enable E4X while preserving the HTML script tag content 'comment hiding hack' of yore (309242, r/sr=mrbkap/shaver).
git-svn-id: svn://10.0.0.236/trunk@180689 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-20 21:48:26 +00:00
brendan%mozilla.org
27933f94c0 Fix two GC scanning holes: local root stack gaffe (only top scope was marked), E4X filtering predicate operand stack hiding (fixed to share instead of push; both from bug 308111, r/sr=mrbkap/shaver).
git-svn-id: svn://10.0.0.236/trunk@180266 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-15 01:48:16 +00:00
mrbkap%gmail.com
51a7e8ecba bug 305583: Toggle on the XML option, even if the script wasn't invoked with it when the XMLList constructor is used. r=brendan
git-svn-id: svn://10.0.0.236/trunk@178705 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-23 17:10:47 +00:00
brendan%mozilla.org
306d9c4922 Have to check this instanceof XML in natives after all (305335, r/sr=mrbkap/shaver, a=me).
git-svn-id: svn://10.0.0.236/trunk@178641 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-22 22:20:35 +00:00
brendan%mozilla.org
a5ee8dc118 Forgot this fix to the fix for 301956 -- wahhhh!
git-svn-id: svn://10.0.0.236/trunk@178315 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-19 23:30:47 +00:00
jst%mozilla.jstenback.com
792744ce69 Landing the split window work, bug 296639. This change doesn't have full reviews yet, bzbarsky@mit.edu and shaver@mozilla.org have done partial reviews, but there's still more to look at. Given the current time constraint this is landed with reviews and followup changes that result to come after the initial checkin. a=drivers
git-svn-id: svn://10.0.0.236/trunk@176884 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-30 20:57:07 +00:00
mrbkap%gmail.com
c5486f21c2 bug 301574: Allow XML mode to be enabled explicitly by the XML constructor. r+a=brendan
git-svn-id: svn://10.0.0.236/trunk@176462 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-22 20:22:28 +00:00
brendan%mozilla.org
b3dc50ae81 Fix js_FilterXMLList to save and restore fp->spbase (301596, r+a=shaver).
git-svn-id: svn://10.0.0.236/trunk@176404 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-21 19:14:30 +00:00
brendan%mozilla.org
8e2a6eb316 Fix * and function:: magic object management (299593, r+sr=bz/shaver).
git-svn-id: svn://10.0.0.236/trunk@175675 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-06 04:49:35 +00:00
brendan%mozilla.org
e39a1d917e Nits picked for 294893 (thanks to bz for reminding me).
git-svn-id: svn://10.0.0.236/trunk@175470 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-01 04:45:11 +00:00
brendan%mozilla.org
6efbc91649 Fix regression from 292903's first patch, which results in JS_DEFAULT_XML_NAMESPACE_ID being enumerated! Thanks to bc for noticing.
git-svn-id: svn://10.0.0.236/trunk@174722 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-16 20:27:11 +00:00
brendan%mozilla.org
fd99a24062 Add JS_EnumerateResolvedStandardClasses, and fix a few lazy-standard-class-init glitches hindering it (292903, r=shaver, a=me).
git-svn-id: svn://10.0.0.236/trunk@174675 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-16 04:24:03 +00:00
bzbarsky%mit.edu
71e216d36e Better version of last patch -- don't pin the atoms, and clean up nicely when
they're finalized so as not to crash.  Bug 294893, assumed future r=brendan,
a=drivers


git-svn-id: svn://10.0.0.236/trunk@173787 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-26 17:21:29 +00:00
bzbarsky%mit.edu
b683cb9ca0 Backing out to fix orange till I can sort it out.
git-svn-id: svn://10.0.0.236/trunk@173785 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-26 14:41:34 +00:00
bzbarsky%mit.edu
3413d8b3ce Don't pin object atoms, since those can entrain all sorts of other stuff. Bug
294893 some more, r=brendan, sr=jst, a=brendan


git-svn-id: svn://10.0.0.236/trunk@173784 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-26 13:27:57 +00:00
brendan%mozilla.org
b00be2c34e Use 64-bit-friendly ptr/int macros.
git-svn-id: svn://10.0.0.236/trunk@172374 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-17 18:17:23 +00:00
brendan%mozilla.org
34f783aecc Fast followup to uninitialized ok blunder in last checkin.
git-svn-id: svn://10.0.0.236/trunk@172360 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-17 04:30:30 +00:00
brendan%mozilla.org
d39010e14b Finish implementing Descendants, handle the neglected XMLList case (290481, r/a=me).
git-svn-id: svn://10.0.0.236/trunk@172308 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-15 20:32:15 +00:00
brendan%mozilla.org
dcec8e9b6a Fix bugs due to errata in ECMA-357 10.2.1, 13.4.4.35 and 13.4.4.36 (290056, r/a=me).
git-svn-id: svn://10.0.0.236/trunk@172048 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-12 22:42:57 +00:00
brendan%mozilla.org
c72802fb50 Fix to late-night goof in xml_contains (289790, r/a=me).
git-svn-id: svn://10.0.0.236/trunk@171925 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-10 15:21:47 +00:00
brendan%mozilla.org
2302371c63 Fix incomplete/buggy Equals (278706, reporter=Martin.Honnen@arcor.de, r/a=me).
git-svn-id: svn://10.0.0.236/trunk@171912 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-09 17:59:21 +00:00
brendan%mozilla.org
d5d9fd7006 Fix property lookup so function::name can be found in a filtering predicate expression.
git-svn-id: svn://10.0.0.236/trunk@171502 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-02 06:37:45 +00:00
brendan%mozilla.org
9e7ea0c918 Fix unique attribute {uri, localName} bug (283972) and follow the spec on escaping > (264369).
git-svn-id: svn://10.0.0.236/trunk@171459 18797224-902f-48f8-a5cc-f745e15eee43
2005-04-01 17:23:12 +00:00
brendan%mozilla.org
9634bd6656 - Fix longstanding goof in js_PushLocalRoot, where m (n % local-root-chunk)
was returned rather than n (the index of lrs->scopeMark).  I'm mortified.
- Followup fix to GC local rooting fix in ParseNodeToXML -- missed a few
  early returns from what used to be no-local-roots switch cases.


git-svn-id: svn://10.0.0.236/trunk@171301 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-29 01:40:30 +00:00
brendan%mozilla.org
3afd105310 - Revert recent change to js_NewXMLSpecialObject API, it was based on me
misreading the spec.
- Improve XML constant folding by decompiling CDATA, comments, and PIs in
  non-constant XML literals -- those containing {embedded-expressions}.
- Fix GC local rooting in ParseNodeToXML, it was pretty broken.


git-svn-id: svn://10.0.0.236/trunk@171290 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-28 23:12:42 +00:00
brendan%mozilla.org
15dded316e Make top-level PIs and comments respect their XML.ignore* flags (246441 cont'd).
git-svn-id: svn://10.0.0.236/trunk@171250 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-27 20:18:51 +00:00
brendan%mozilla.org
2a5109d847 Deal with undefined as well as empty namespace prefix in GetNamespace (283349, r=igor, sr=shaver).
git-svn-id: svn://10.0.0.236/trunk@169808 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-25 01:19:35 +00:00
brendan%mozilla.org
79703d738d Implement specialized Deutsch-Schorr-Waite under js_MarkXML to avoid stack overflow (280844, r=igor, sr=shaver).
git-svn-id: svn://10.0.0.236/trunk@169743 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-24 05:24:26 +00:00
brendan%mozilla.org
f28b3a67cf Fix GC_MARK_DEBUG-#ifdef'd code for E4X (timeless private bug).
git-svn-id: svn://10.0.0.236/trunk@168606 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-01 02:35:31 +00:00
brendan%mozilla.org
75a81797dd Fix XMLToXMLString to cope with a tag name in a default namespace that is not the declared default namespace for the tag (277779, r=shaver).
git-svn-id: svn://10.0.0.236/trunk@168039 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-20 01:02:49 +00:00
brendan%mozilla.org
49bb804dd3 Disallow PIs with target name 'xml' (277683, r=shaver).
git-svn-id: svn://10.0.0.236/trunk@168037 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-20 00:56:34 +00:00
brendan%mozilla.org
e42d9e5d98 Enforce Unique Att Spec for XML in JS (277664, r=shaver).
git-svn-id: svn://10.0.0.236/trunk@168036 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-20 00:50:59 +00:00
brendan%mozilla.org
1d650f0dcd Allow xml:lang and other xml namespace ids (277650, r=shaver).
git-svn-id: svn://10.0.0.236/trunk@168035 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-20 00:46:17 +00:00
brendan%mozilla.org
a8e2a690ad Revamp the GC to fix E4X private data dueling GC bugs, to reduce malloc costs for small-ish objects and functions, and to pave the way for further GC wins (123668, r=shaver, TAKE 2).
git-svn-id: svn://10.0.0.236/trunk@167293 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-05 06:15:03 +00:00
brendan%mozilla.org
4c0635a125 Back out, broke liveconnect at least.
git-svn-id: svn://10.0.0.236/trunk@167288 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-05 03:58:19 +00:00
brendan%mozilla.org
7a816352a4 Revamp the GC to fix E4X private data dueling GC bugs, to reduce malloc costs for small-ish objects and functions, and to pave the way for further GC wins (123668, r=shaver).
git-svn-id: svn://10.0.0.236/trunk@167286 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-05 02:56:36 +00:00
brendan%mozilla.org
d4ef2cd49b Fix a bogus assertion and related bogus code that bit dmose (246441).
git-svn-id: svn://10.0.0.236/trunk@167233 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-03 23:57:56 +00:00
brendan%mozilla.org
d5179325c1 - Fix GetNamespace to conform to the NOTE in ECMA-357 13.3.5.4 Step 4(a).
- Fix XMLToXMLString bug where ancdecls was not updated with a weak ref append
  when a namespace strong ref was appended to decls.  In ECMA-357, ancdecls is
  written out as (AncestorNamespaces U namespaceDeclarations), but here where
  ancestorNSes and decls are unioned early into ancdecls, we need to update
  the unioned set whenever decls is updated.

- Fix ECMA-357 glitch (suboptimal, arguably not an erratum) in ToXMLString
  where XML that uses the default namespace only is converted via toXMLString
  into a string serialization that redeclares that namespace using generated
  prefixes, for every node in the tree.  This is verbose, inefficient, and
  unnecessary.  A trivial tweak to 10.2.1 Step 12(a), to let namespace.prefix
  be the empty string if x.[[Name]].[[Prefix]] is undefined, fixes the bug.

- Const-ipate JSXMLArray * parameters starting with XMLToXMLString's, to be
  sure no one appends a strong ref to a weak-ref-holding |in| parameter.


git-svn-id: svn://10.0.0.236/trunk@167162 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-01 17:27:41 +00:00
brendan%mozilla.org
8876e0283c Fix bogus assertion.
git-svn-id: svn://10.0.0.236/trunk@167145 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-01 05:45:55 +00:00
brendan%mozilla.org
efe8514031 Refine last checkin's change to GetNamespace in light of Erratum (246441).
git-svn-id: svn://10.0.0.236/trunk@167134 18797224-902f-48f8-a5cc-f745e15eee43
2004-12-31 08:30:01 +00:00
brendan%mozilla.org
98899e99fb Default namespace and off-by-1 GeneratePrefix fixes (246441).
git-svn-id: svn://10.0.0.236/trunk@167128 18797224-902f-48f8-a5cc-f745e15eee43
2004-12-31 05:27:50 +00:00
brendan%mozilla.org
8f105e9b3c Propagate TCF_HAS_DEFXMLNS from parser to constant folder; call js_Mark from xml_mark (246441, r=shaver).
git-svn-id: svn://10.0.0.236/trunk@167107 18797224-902f-48f8-a5cc-f745e15eee43
2004-12-30 17:44:41 +00:00
brendan%mozilla.org
1c273e83ad Comment fixes/tweaks.
git-svn-id: svn://10.0.0.236/trunk@166906 18797224-902f-48f8-a5cc-f745e15eee43
2004-12-21 01:54:53 +00:00
brendan%mozilla.org
4b542c831d Tighten up js_IsXMLName error-suppressing logic a bit.
git-svn-id: svn://10.0.0.236/trunk@166859 18797224-902f-48f8-a5cc-f745e15eee43
2004-12-18 20:31:38 +00:00