Граф коммитов

6248 Коммитов

Автор SHA1 Сообщение Дата
brendan%mozilla.org 6439d93504 Propagate a flag induced by JSOPTION_XML into script and context version fields, for proper run- and compile-time consistency (275742, r=shaver). 2004-12-24 00:03:59 +00:00
brendan%mozilla.org 103bb84226 Turn off the old, funky, unused HTML string helpers (s.blink(), etc.); turn on E4X (246441, r=shaver). 2004-12-23 00:19:38 +00:00
brendan%mozilla.org 0911cb963b Comment fixes/tweaks. 2004-12-21 01:54:53 +00:00
brendan%mozilla.org 1ca016dec8 Twiddle TSF_OPERAND when peeking after switch case label, to scan regexp literal at start of labeled statement (275378, tachyonal r=shaver). 2004-12-21 01:47:52 +00:00
dbaron%dbaron.org 1cc6b3262a Fix misspellings of 'pseudo' in comments. Bug 106386. Patch by Alex Vincent <ajvincent@gmail.com>. r=timeless sr=peterv 2004-12-19 21:45:51 +00:00
brendan%mozilla.org c6a065457b Remove #if 0'd E4X debugging code I forgot to remove earlier. 2004-12-18 23:02:11 +00:00
brendan%mozilla.org 2d994cfc26 Followup checkin to reset foreach flag when catching an exception thrown partway thru the for-in code. 2004-12-18 22:55:12 +00:00
brendan%mozilla.org b5420bd5c2 Tighten up js_IsXMLName error-suppressing logic a bit. 2004-12-18 20:31:38 +00:00
brendan%mozilla.org 797c77790d Eliminate some stupid GCC warnings, tighten up code at label out. 2004-12-18 03:10:58 +00:00
brendan%mozilla.org 52912f1b36 - Added strict warning "reference to undefined XML name {0}" to cope with
ECMA-357 botch where * or @b or (given valid namespace reference n) n::id
  results in undefined, instead of a TypeError.

- Lazily bootstrap AnyName and AttributeName classes, instead of leaving the
  former uninitialized, and initializing the latter only if QName is init'ed.
  These classes, representing ECMA-357 internal types, must be initialized
  in order to string conversion and default value on them to return useful
  results.  So this change also requires the shared qname_toString to cope
  with these classes, which ape QName in having a JSXMLQName as private data.

- Revise Filtering Predicate Expressions bytecode schema to avoid bogo-script
  creating in js_FilterXMLObject.  With a new JSOP_ENDFILTER bytecode acting
  in lieu of JSOP_POPV, but also exiting the nested js_Interpret() call, the
  runtime can avoid trying to fake a JSScript for the subsequence of script
  bytecode in parens in x.(e), that contains the bytecode for e plus the pop
  or endfilter op.

  This requires a historic reparameterization of js_Interpret to take the
  starting pc!  I cleaned up order of declaration, use, and useless init nits
  for a few variables while messing with it.

- Based on the above change, fix the decompiler to handle filtered predicate
  expressions -- that code was stubbed out till now, and I forgot to go back.
  All better now, especially thanks to JSOP_ENDFILTER.

- Also while fixing filtered predicates, eliminate the useless TOK_RP parse
  node above the parenthesized expression, to avoid a JSOP_GROUP bytecode.

- Fix js_GetAttributeNameObject so it doesn't take over its QName parameter's
  object and rebind it to an object of class AttributeName -- instead, clone
  the qn if necessary.  This is important to cope with the errata, noticed a
  while ago but finally recorded:

9.2.1.2 Step 2(e)(i, ii),
9.2.1.2 Step 7(e)(i),
9.2.1.3 Step 2(b)(ii)(1)(a)
        All uses of a.[[Name]] for an attribute a in these sections that pass
        that QName object to [[Delete]] must pass an AttributeName cloned from
        a.[[Name]].  The [[Name]] internal property is always a QName instance
        and never an AttributeName or AnyName instance.  But [[Delete]] will
        not operate on x.[[Attributes]] when given a QName by these sections,
        so a child could be wrongly deleted instead of the attribute of the
        same name.

  This rework exposed a bug in the XML.prototype.name() impl, where it was
  returning an AttributeName, not a QName, for attribute-class XML objects.
  Clearly wrong -- the E4X spec makes plain early on that [[Name]] is always
  a QName -- but the spec and e4x testsuite seemed to require it due to the
  above-noted errata.
2004-12-18 02:28:21 +00:00
brendan%mozilla.org e69a601dae Implement XML NCRs, reject unknown entities (E4X code, not enabled yet). 2004-12-16 18:28:23 +00:00
brendan%mozilla.org 3d1d4c09e2 Fix for bug 244619 from aviary/1.7 branches, r=shaver. 2004-12-16 00:25:03 +00:00
brendan%mozilla.org 55a221f4d7 Robustifying followup to last checkin (244470). 2004-12-15 23:32:39 +00:00
bryner%brianryner.com 884453541b Add support for using gcc's visibility pragma to treat all function and method declarations as "hidden" unless declared otherwise. Create wrappers for system headers that cause them to be treated as default-visibility declarations. This gives a substantial code size and performance win on compilers that support it, and should show up on the gruff tinderbox. Bug 273336, r=darin sr=dbaron. 2004-12-15 05:52:44 +00:00
bsmedberg%covad.net 81a0de68d5 Bug 275605 - libxul step 3 (all of tier 9, except libmozjs.so which will remain separate indefinitely) r=darin 2004-12-15 04:07:01 +00:00
brendan%mozilla.org 47f2b6c100 Silence a DEBUG_brendan blurb. 2004-12-15 02:59:00 +00:00
brendan%mozilla.org 2558e81dca Fix JSMSG_BAD_OCTAL's type, and reword JSXML_BAD_XMLLIST_PUT to simplify. 2004-12-15 02:57:21 +00:00
brendan%mozilla.org e158b43df0 Avoid indexing into fp->vars with wrong atomIndex (244470, r=self). 2004-12-14 21:28:22 +00:00
igor%mir2.org 79d72c45df Added info on seal() 2004-12-14 14:52:40 +00:00
brendan%mozilla.org 0e46cdaae6 Protect near-newborns from GC when defining function objects, and fix stack local root management under JSOP_INITCATCHVAR for similar reasons -- to avoid last-ditch GC nesting and collecting a near-newborn (271716, r=shaver). 2004-12-12 04:46:01 +00:00
brendan%mozilla.org be60247b8c Unroot on failure exit paths from js_ReportUncaughtException (274096, r=shaver). 2004-12-11 22:00:34 +00:00
bmlk%gmx.de a7ff23242b backout of shavers checkin as it breaks windows build and dbradley thinks that Quit took a parameter that was to be the return value of XPCShell? 2004-12-11 06:42:39 +00:00
shaver%mozilla.org a8971ac2f3 Bug 274136: add setExitCode global function for controlling xpcshell's exit
status.  Somewhere out there, the god of automated tests cracked a smile.
r=dmose
2004-12-11 03:32:10 +00:00
timeless%mozdev.org 5e5ca307bb Bug 241171 Add error reporting and handling to PerlConnect
r=shaver
2004-12-11 00:50:53 +00:00
brendan%mozilla.org 954c8c338e Fix SetFunctionSlot to use mutating change-property-attrs call (273963, r=jband). 2004-12-10 04:07:49 +00:00
nboyd%atg.com f1c0b03cde Add HttpUnit and HtmlUnit 2004-12-10 01:52:18 +00:00
nboyd%atg.com 05d23643bb remove stale link 2004-12-10 01:35:05 +00:00
brendan%mozilla.org db7df47478 Null, not false (fix copy-paste error). 2004-12-10 01:31:16 +00:00
bsmedberg%covad.net 7ccf6e4965 Bug 273876 - libxul step 2 (everything through widget, except spidermonkey) r=darin; again, this should not affect non-xulrunner trees. 2004-12-09 19:28:35 +00:00
brendan%mozilla.org 41a1c558bb Report uncaught Error with proper message, filename, lineno (243869, r=shaver). 2004-12-09 02:19:53 +00:00
brendan%mozilla.org 8e09b90acd Expand tabs. 2004-12-09 01:32:19 +00:00
nboyd%atg.com 1ba0d7e788 Conform to style guide 2004-12-08 03:45:55 +00:00
shaver%mozilla.org 3c456cc17f Bug 272294: use backstage pass in xpcshell, for higher-fidelity reproduction
of the environment that privileged JS runs in when in the browser, etc.
r=dbradley.
2004-12-07 18:13:02 +00:00
igor%mir2.org fa9d55e2a1 Patch from Daniel Gredler <danigredler@charter.net> to address bug 271401 :
JS prototypes for superclasses with ScriptableObject.defineClass
2004-12-07 00:10:31 +00:00
brendan%mozilla.org 32e7a4bde1 Implement Deutsch-Schorr-Waite, plus related GC metering improvements, to avoid stack overflow crashes when marking very deep object lists (203278, r=igor@fastmail.fm and Igor wrote the tail-recursion elimination code). 2004-12-06 23:17:19 +00:00
brendan%mozilla.org fadc8f54dc Fix bug where spans of whitespace and entity refs was scanned as whitespace (bug 246441 comment 48, r=self). 2004-12-06 22:11:57 +00:00
brendan%mozilla.org 0ab5ddb4da Fiddle with comments and cosmetics. 2004-12-06 18:42:30 +00:00
gerv%gerv.net b92568bebe Bug 236613: change to MPL/LGPL/GPL tri-license. 2004-12-01 22:27:03 +00:00
igor%mir2.org d38fbd087e Link to changes.html 2004-12-01 00:07:07 +00:00
igor%mir2.org 8e8f1205cf Added release date information 2004-11-30 23:23:17 +00:00
brendan%mozilla.org 5f8cd19af3 Root the temporary vector used by array_sort via fp->vars (272336, r=shaver). 2004-11-30 17:52:29 +00:00
brendan%mozilla.org 5423bebbf0 e4x test fixes to match spec, r=igor@fastmail.fm. 2004-11-29 20:49:34 +00:00
brendan%mozilla.org 9abc199862 Scanner fixes for better diagnostics; XML/XMLList parent() fixes to match spec and fixed tests (246411, r=self). 2004-11-29 20:48:56 +00:00
nboyd%atg.com cee22090c3 Version is 1.6R1 2004-11-29 14:30:28 +00:00
igor%mir2.org a3ee5d5129 *** empty log message *** 2004-11-29 13:07:27 +00:00
timeless%mozdev.org 19f064c478 Fixing line ending 2004-11-28 19:52:48 +00:00
brendan%mozilla.org 9aecc4d32e Don't forget to call the new-script and destroy-script hooks in js_FilterXMLList, so the debugger knows about the script cloned there. 2004-11-25 06:57:17 +00:00
brendan%mozilla.org ead9cce883 Fix memcmp length gaffe, plus polish a few comments (246411). 2004-11-25 04:37:18 +00:00
brendan%mozilla.org 62a8b1accf - Add declared flag to JSXMLNamespace, to implement the intent and test-wanted
effect of ECMA-357, specifically x.namespaceDeclarations() should not include
  the default namespace inherited from the <parent> tag wrapped around a string
  argument "<x>...</x>" by ToXML, whereas x.inScopeNamespaces() should.

  This case implies errata against 10.3.1, 10.4.1, and 13.4.4.24 (at least).

- Consolidate common code in an XMLArrayInsert function, renaming the misnamed
  precursor to XMLArrayAddMember.  XMLArrayInsert properly notifies any cursors
  iterating over the array, fixing for/in and for-each/in bugs such as this:

    var l = <><a/><c/><d/></>;
    var i = 0;
    for each (var x in l) {
        print(x.toXMLString());
        if (i == 1) l[0] += <b/>;
        i++;
    }

- Fix the bug induced by this erratum from ECMA-357:

9.2.1.2 step 2(c)(ii) sets _y.[[Parent]] = r_ where _r_ is the result of
        [[ResolveValue]] called on _x.[[TargetObject]] in 2(a)(i).  This can
        result in text parenting text:

        var MYXML = new XML();
        MYXML.appendChild(new XML("<TEAM>Giants</TEAM>"));

        (testcase from Werner Sharp <wsharp@macromedia.com>).

        To match insertChildAfter, insertChildBefore, prependChild, and
        setChildren, we should silently do nothing in this case.

- Fix PN2X_OUTERMOST not to overlay XSF_CACHE_VALID, causing it to appear to be
  set when cx->xmlSettingFlags were "translated" into ParseNodeToXML flags.  To
  avoid further such stupidity, consolidated all similar flags into XSF_* bits
  and eliminated the PN2X_* duals.

- Redo the way the default namespace is inherited by parsed XML from the
  <parent> tag under ToXML and ToXMLList, and implicitly inherited in the
  js_ParseNodeToXMLObject alternative path to ToXML.

- Handle null prefix (meaning undefined in ECMA-357, that is, no prefix was
  passed to the Namespace constructor) and empty prefix (which is normalized
  from null for the empty URI "no namespace" case) better in the parsing and
  ToXMLString code.

- Fixed a bug in PutProperty where it implements 9.2.1.2 2(c)(vii)(1) (whew!).
  Fixed another bug near that which stupidly assumed all XML nodes have names,
  leading to an obvious null pointer crash.

This should be the final round of work for bug 246411.  With the appropriate
testsuite patches, this passes all tests except e4x/Regress/regress-264369.js
(which probably should be invalidated by a correction to the ECMA-357 spec).
2004-11-25 03:07:22 +00:00
brendan%mozilla.org 04872cc3c9 Avoid recursive death due to JS1.2 toString=>toSource combined with after-the-fact, heretofore unversioned reflection of string chars as enumerable elements (271477, r=jband). 2004-11-25 00:55:01 +00:00