Commit Graph

6282 Commits

Author SHA1 Message Date
timeless%mozdev.org
38a2c35650 Bug 277887 r:\mozilla\js\src\liveconnect\jsj_JavaClass.c(549) : warning C4113: 'JSBool (__cdecl *)(JSContext *,JSObject *,jsid,JSObject ** ,JSProperty ** ,const char *,uintN)' differs in parameter lists from 'JSLookupPropOp'
fallout from bug 246441
r=brendan
2005-01-12 19:21:11 +00:00
timeless%mozdev.org
6b1df2ec98 Bug 277741 bad copy/paste of NS_ASSERT_OWNINGTHREAD(_class)
r=dbradley sr=dbaron
2005-01-12 19:20:01 +00:00
igor%mir2.org
c09d14b3ba *** empty log message *** 2005-01-12 17:44:22 +00:00
igor%mir2.org
f4c72a6056 Fixing bug 277935: now parser throws syntax error on assignments to descendants like x..y = 1 2005-01-12 14:21:06 +00:00
brendan%mozilla.org
33a75c4caa Make reserved identifiers a strict warning, not an error (240317, r=shaver). 2005-01-12 05:18:17 +00:00
igor%mir2.org
d807c55305 Added check for a..b += xxx as well 2005-01-11 15:46:51 +00:00
igor%mir2.org
e114a0bed4 Test case for Rhino bug 277935 2005-01-11 15:39:51 +00:00
igor%mir2.org
535ee87833 JavaDoc fix: refer to WrapFactory, not already removed WrapHandler 2005-01-11 10:50:36 +00:00
igor%mir2.org
8c1a6b5877 Less bloated implementation of Kit.semicolonSplit 2005-01-10 01:26:36 +00:00
igor%mir2.org
1b2509d0f0 Fix from Dave Russo <d-russo@ti.com>:
While investigating how Rhino loads Java packages I came across what
appears to be a "typo" bug in NativeJavaTopPackage.java; a missing
semicolon in a string results in minor performance degradation for
script accessing the java.lang.reflect and java.lang.io packages.
2005-01-10 01:25:26 +00:00
brendan%mozilla.org
3b52333710 Unregress default exception reporting (276061, r=shaver, a=asa). 2005-01-07 03:35:36 +00:00
brendan%mozilla.org
92552356eb 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). 2005-01-05 06:15:03 +00:00
brendan%mozilla.org
136eda6655 Always call the standard input 'typein', as xpcshell does, in error reports. 2005-01-05 04:29:35 +00:00
brendan%mozilla.org
412eb31b82 Back out, broke liveconnect at least. 2005-01-05 03:58:19 +00:00
brendan%mozilla.org
90eaa50664 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). 2005-01-05 02:56:36 +00:00
brendan%mozilla.org
98f555be58 Fix old GC hazards that bite venkman (277069, r=self). 2005-01-05 00:45:21 +00:00
brendan%mozilla.org
5d3435f4a6 Checking in shaver's patch for bug 275742: E4X for JS components, r=me. 2005-01-04 23:56:56 +00:00
cbiesinger%web.de
b233fca20b Bug 276807 add DumpJSValue helper function for debugging
r=dbradley sr=brendan
2005-01-04 22:15:09 +00:00
brendan%mozilla.org
b7db19beeb Fix a bogus assertion and related bogus code that bit dmose (246441). 2005-01-03 23:57:56 +00:00
brendan%mozilla.org
4a11eed32a - 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.
2005-01-01 17:27:41 +00:00
gerv%gerv.net
709d4de4d5 Bug 236613: change to MPL/LGPL/GPL tri-license. 2005-01-01 16:48:30 +00:00
brendan%mozilla.org
601f8d102a Fix bogus assertion. 2005-01-01 05:45:55 +00:00
brendan%mozilla.org
73314eaa9f Preserve TCF_HAS_DEFXMLNS out of FunctionBody; don't turn comments and cdata into text when folding; disable JSOP_XMLOBJECT optimization for now (246441). 2004-12-31 09:00:41 +00:00
brendan%mozilla.org
3b9a4510d8 Cope with > 65535 local root stack items (246441 fallout). 2004-12-31 08:39:04 +00:00
brendan%mozilla.org
6200e200bf Refine last checkin's change to GetNamespace in light of Erratum (246441). 2004-12-31 08:30:01 +00:00
brendan%mozilla.org
d04b609ab4 Default namespace and off-by-1 GeneratePrefix fixes (246441). 2004-12-31 05:27:50 +00:00
igor%mir2.org
4e4d678dc2 Removal of deprecated features including WrapHandler 2004-12-31 01:27:00 +00:00
igor%mir2.org
9ddca6ca8b Deprecated classes that are kept only for compatiblity is moved to a separated source tree to simplify their removal if necessary from compilation scope 2004-12-31 00:02:46 +00:00
igor%mir2.org
98401f483b Fixing JavaDoc for @deprecated methods to make documentation to look less ugly 2004-12-31 00:00:44 +00:00
brendan%mozilla.org
1b567da4f7 Propagate TCF_HAS_DEFXMLNS from parser to constant folder; call js_Mark from xml_mark (246441, r=shaver). 2004-12-30 17:44:41 +00:00
igor%mir2.org
3f3f612462 Context.toType is deprecated in favor of Context.jsToJava which throws EvaluatorException, not IllegalArgumentException.
In this way when native code implementing host objects calls Context.jsToJava the exception can be caught in JS and processed in in the same way as exceptions resulting from bad calls to LiveConnect Java objects.
2004-12-30 15:28:29 +00:00
brendan%mozilla.org
9db4d62ed6 Add JS_GetMethod to the JS API, to cope with E4X's breaking the var f=o.m;f.apply(o,arguments)===o.m() invariant; qualify bogus assert in jsemit.c to make it righteous; use JS_GetMethod from nsXPCWrappedJSClass::CallMethod (246441, r=me). 2004-12-29 03:34:26 +00:00
brendan%mozilla.org
83d1417cb3 Fix old tagify (html string helper) dependent string bug (276103, r=shaver). 2004-12-28 17:08:32 +00:00
brendan%mozilla.org
f485c83da2 Turned back on HTML helpers, they are implemented by other browsers, and people use them (276030, r=self). 2004-12-28 16:43:51 +00:00
brendan%mozilla.org
931f64581c 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
6ad6ec022b 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
3014f0bbad Comment fixes/tweaks. 2004-12-21 01:54:53 +00:00
brendan%mozilla.org
cde2e51791 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
1a43dc79c0 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
9d1be44980 Remove #if 0'd E4X debugging code I forgot to remove earlier. 2004-12-18 23:02:11 +00:00
brendan%mozilla.org
9d4a1b1f0a 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
e7eeeaea9c Tighten up js_IsXMLName error-suppressing logic a bit. 2004-12-18 20:31:38 +00:00
brendan%mozilla.org
1fb4e8ca64 Eliminate some stupid GCC warnings, tighten up code at label out. 2004-12-18 03:10:58 +00:00
brendan%mozilla.org
d1291966ce - 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
1efd42a892 Implement XML NCRs, reject unknown entities (E4X code, not enabled yet). 2004-12-16 18:28:23 +00:00
brendan%mozilla.org
91272a112c Fix for bug 244619 from aviary/1.7 branches, r=shaver. 2004-12-16 00:25:03 +00:00
brendan%mozilla.org
2688921660 Robustifying followup to last checkin (244470). 2004-12-15 23:32:39 +00:00
bryner%brianryner.com
d9626f6746 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
60567bb185 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
fc978ab89c Silence a DEBUG_brendan blurb. 2004-12-15 02:59:00 +00:00