2402 Commits

Author SHA1 Message Date
brendan%mozilla.org
fb50c7e7f0 Unregress 1.73's breakage of NS_COMFALSE return from a JS method (287107, r=dbradley, sr=jst).
git-svn-id: svn://10.0.0.236/trunk@171032 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-23 02:39:47 +00:00
cbiesinger%web.de
540aa06c74 270224 create nsIPropertyBag2 for easier getting of values from a propertybag
r=shaver sr=darin


git-svn-id: svn://10.0.0.236/trunk@170990 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-22 18:16:53 +00:00
brendan%mozilla.org
1125e72c7b Remove dead code pointed out by njaguar@gmail.com.
git-svn-id: svn://10.0.0.236/trunk@170923 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-20 05:00:15 +00:00
brendan%mozilla.org
e8f09edf25 Kludge tracing code (DEBUG only) to cope with JSOP_FORELEM oddment (286216).
git-svn-id: svn://10.0.0.236/trunk@170737 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-15 22:22:45 +00:00
bryner%brianryner.com
d73c7fa274 Inline access to XPCWrappedNative's nsISupports pointer, with do_QueryWrappedNative nsCOMPtr helper (bug 285404). r=jst, sr=darin.
git-svn-id: svn://10.0.0.236/trunk@170483 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-10 00:39:28 +00:00
brendan%mozilla.org
0208315b2a Propagate special and compile-n-go flags from top frame when pushing a compiler frame, EXCEPT when pushing a frame for a function body -- there, propagate compile-n-go (285219, r=shaver).
git-svn-id: svn://10.0.0.236/trunk@170416 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-09 01:02:27 +00:00
brendan%mozilla.org
b24874a832 Back out last change, reopening bug 285219 (see bug 285244).
git-svn-id: svn://10.0.0.236/trunk@170399 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-08 22:35:30 +00:00
dmose%mozilla.org
510f73fbfa Fix MinGW build bustage. Thanks to sharparrow1@yahoo.com for the patch. r=dbradley, sr=dmose.
git-svn-id: svn://10.0.0.236/trunk@170398 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-08 22:24:08 +00:00
brendan%mozilla.org
1bf8d08dbf Propagate special and compile-n-go flags from top frame when pushing a compiler frame (285219, r=shaver).
git-svn-id: svn://10.0.0.236/trunk@170368 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-08 06:23:10 +00:00
brendan%mozilla.org
fce64ac33d When converting from list to hashtable in js_IndexAtom, arrange to preallocate the table's buckets array to the list length, and set table->nentries (buglet reported by tellme.com folks).
git-svn-id: svn://10.0.0.236/trunk@170168 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-04 18:23:58 +00:00
timeless%mozdev.org
ba9ee9a838 Bug 284549 crash if nsIClassInfo.getInterfaces includes a null interface [@ HashIIDPtrKey]
r=shaver sr=shaver


git-svn-id: svn://10.0.0.236/trunk@170150 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-03 23:41:12 +00:00
mrbkap%gmail.com
5360a50700 bug 274888: Use the correct type for indexing into the input so that backtracking works when it is longer than 65535 characters. r=brendan
git-svn-id: svn://10.0.0.236/trunk@169950 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-27 18:32:57 +00:00
brendan%mozilla.org
084327b80b Cosmetic tweak.
git-svn-id: svn://10.0.0.236/trunk@169896 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-26 18:29:00 +00:00
brendan%mozilla.org
902225985e Fix from Igor Bukanov <igor@mir2.org> for 283064 (r=me).
git-svn-id: svn://10.0.0.236/trunk@169895 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-26 18:28:14 +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
f22bc60ebf Fix almost-10-year-old lastIndex bug reported by Sjoerd Visscher <sjoerd@w3future.com> (283477, r=me).
git-svn-id: svn://10.0.0.236/trunk@169775 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-24 18:59:41 +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
ca88bf8234 Fix instanceof to throw a TypeError if the RHS doesn't have a [[HasInstance]] internal method, per ECMA-262 Ed. 3 (r=shaver).
git-svn-id: svn://10.0.0.236/trunk@169701 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-24 00:06:43 +00:00
brendan%mozilla.org
8b30a8b2aa Fix from Juergen Kreileder <jk@blackdown.de> for 32-bit processes on 64-bit OSes that map the heap up against the 0x100000000 wall (279273, r=shaver).
git-svn-id: svn://10.0.0.236/trunk@169677 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-23 21:36:10 +00:00
brendan%mozilla.org
7581ead5f5 Avoid recycling an overlarge arena from the evil arena_freelist, in case the new consumer is itself oversized and therefore owns the entire allocation (283234, r=shaver).
git-svn-id: svn://10.0.0.236/trunk@169676 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-23 21:31:58 +00:00
brendan%mozilla.org
dc77a335e5 Specialize for QARG and QVAR types within JOF_NAME format in js_DecompileValueGenerator (281487, r=shaver).
git-svn-id: svn://10.0.0.236/trunk@169629 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-23 02:40:40 +00:00
brendan%mozilla.org
2403194810 Null |obj| VM register for correct |this| binding (281930, r=shaver).
git-svn-id: svn://10.0.0.236/trunk@169623 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-22 23:25:49 +00:00
shaver%mozilla.org
c99743074c Bug 273931: pop With objects from scope chain as appropriate, when resetting
stack depth due to exception-handling flow control jumps. r=brendan.


git-svn-id: svn://10.0.0.236/trunk@169388 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-18 16:06:49 +00:00
timeless%mozdev.org
7f9e5eff4d Bug 273953 Crash during GC after leaving page in URL
patch by dbradley@gmail.com r=jst sr=brendan


git-svn-id: svn://10.0.0.236/trunk@169360 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-18 06:39:11 +00:00
brendan%mozilla.org
31dd35c4c2 Fix off-by-one-slot bug in logic guarding mark on obj->slots - 1 (279858, r=shaver, a=dbaron).
git-svn-id: svn://10.0.0.236/trunk@169321 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-17 19:07:59 +00:00
brendan%mozilla.org
47845aaf1d Fix Detecting to cope with no active frames on cx (281984, r=jst).
git-svn-id: svn://10.0.0.236/trunk@169208 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-15 19:21:26 +00:00
gerv%gerv.net
6a53545780 Bug 236613: change to MPL/LGPL/GPL tri-license.
git-svn-id: svn://10.0.0.236/trunk@169155 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-12 20:11:18 +00:00
bryner%brianryner.com
9861051f37 Clean up unneeded REQUIRES (bug 73353). r+sr=dbaron.
git-svn-id: svn://10.0.0.236/trunk@168768 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-03 23:01:54 +00:00
brendan%mozilla.org
a120ea4d7d Update JSNewResolveOp's comment to talk about the new JSRESOLVE_ flags.
git-svn-id: svn://10.0.0.236/trunk@168767 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-03 22:25:10 +00:00
gerv%gerv.net
6ebff817cc Bug 236613: change to MPL/LGPL/GPL tri-license. This checkin does not actually change any licenses, but makes indentation and comment-formatting fixes so that the relicensing script is able to parse all the license blocks in the js/ directory. Once the smoke has cleared, I'll do the second step.
git-svn-id: svn://10.0.0.236/trunk@168736 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-02 23:52:03 +00:00
darin%meer.net
2d7214de9c applying shaver's review nit for bug 235499
git-svn-id: svn://10.0.0.236/trunk@168724 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-02 22:22:45 +00:00
darin%meer.net
6d21f36f31 landing xpconnect patch for bug 235499 "re-enable string buffer sharing between C++ and JS in xpconnect" r=shaver sr=jst
git-svn-id: svn://10.0.0.236/trunk@168723 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-02 22:20:28 +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
081c4ca5c3 Improve GC_MARK_DEBUG strings a bit, tweak a comment.
git-svn-id: svn://10.0.0.236/trunk@168598 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-01 00:54:34 +00:00
brendan%mozilla.org
69d04fdb1d Pass origobj, not obj, to OBJ_GET_PROPERTY for for-each-in on non-XML objects (bug reported by Martin Honnen, diagnosis by jband).
git-svn-id: svn://10.0.0.236/trunk@168539 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-31 07:19:07 +00:00
brendan%mozilla.org
6ecd20e4a8 Fix js_LineNumberToPC to cope with code reordering, especially in JSOP_CONDSWITCH (1113352, r=shaver).
git-svn-id: svn://10.0.0.236/trunk@168505 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-29 18:31:46 +00:00
dbaron%dbaron.org
addf0d23ab Convert CR-LF and CR linebreaks to LF.
git-svn-id: svn://10.0.0.236/trunk@168462 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-28 20:01:46 +00:00
brendan%mozilla.org
a9f1e5c102 Toggle JSOPTION_COMPILE_N_GO around compilation in JS_EvaluateUCInStackFrame (280086, r=shaver).
git-svn-id: svn://10.0.0.236/trunk@168454 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-28 18:14:05 +00:00
brendan%mozilla.org
1a6095dab1 s/DEBUG_brendan/DEBUG_notme/g
git-svn-id: svn://10.0.0.236/trunk@168312 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-25 19:39:45 +00:00
brendan%mozilla.org
8308d7af71 Fix old bug in JSOP_CONDSWITCH codegen (278873, r=shaver).
git-svn-id: svn://10.0.0.236/trunk@168309 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-25 19:34:37 +00:00
brendan%mozilla.org
d32da310a8 Followup to fix for 123668, to handle newborns and mark small object slots before checking for stack-quota-exceeded (Deutsch-Schorr-Waite).
git-svn-id: svn://10.0.0.236/trunk@168294 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-25 09:02:22 +00:00
brendan%mozilla.org
8c97ea9385 Fix js_GetArgsObject to skip debugger/eval frames (162392, r=shaver).
git-svn-id: svn://10.0.0.236/trunk@168290 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-25 05:56:37 +00:00
brendan%mozilla.org
42c33e3489 Add getpda shell function for debugging.
git-svn-id: svn://10.0.0.236/trunk@168282 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-25 03:22:16 +00:00
brendan%mozilla.org
70dd38ea13 Fix GC hole in JSOP_NAMEDFUNOBJ found by tellme.com folks (279636, r=jband).
git-svn-id: svn://10.0.0.236/trunk@168281 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-25 02:22:25 +00:00
brendan%mozilla.org
c7baf7562e Back up one token after skipping a now-tokenized (now as of E4X) comment (279483, r=shaver).
git-svn-id: svn://10.0.0.236/trunk@168217 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-24 00:02:59 +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
9254889b7c Remove bogus assert in MarkGCThing, fix order of operation in js_NewObject to avoid losing the newborn root (278725, r=shaver).
git-svn-id: svn://10.0.0.236/trunk@167965 18797224-902f-48f8-a5cc-f745e15eee43
2005-01-19 02:25:40 +00:00