Commit Graph

3279 Commits

Author SHA1 Message Date
brendan%mozilla.org
928b5dc750 Fix orange balsa by landing mrbkap's patch for 326497, plus other fixes (340340, r=mrbkap). 2006-06-05 07:18:02 +00:00
brendan%mozilla.org
ba5b32f242 Coroutine generators, a la Python 2.5 (326466, r=igor). 2006-06-04 02:19:09 +00:00
dbaron%dbaron.org
5d00219a4f Add a comment, rs=brendan. 2006-06-03 02:40:02 +00:00
brendan%mozilla.org
9f083bbd2b Better failover to js_DefaultIterator if __iterator__ comes back primitive (340199, r=mrkbap). 2006-06-03 02:30:39 +00:00
brendan%mozilla.org
ff7cbca64a Get value from original object when enumerating prototype objects via for-each-in (339169, r=mrbkap). 2006-06-02 06:30:05 +00:00
mrbkap%gmail.com
8bbb081e9b Fixing some failures that were not being properly propagated. no bug, r=brendan 2006-06-02 00:51:56 +00:00
igor.bukanov%gmail.com
22783e41c9 Bug 338653: Check for JSRuntime.gcMaxMallocLimit on each allocation in js_NewGCThing to trigger GC sooner to prevent accumulation of garbage with large allocations. r=brendan 2006-06-01 22:13:56 +00:00
bryner%brianryner.com
996fc94731 Write out an inline version of isdigit() for ASCII characters - it seems to be a performance win for MSVC, and gcc is already inlining it (bug 339868) r+a=brendan 2006-06-01 20:04:29 +00:00
pedemont%us.ibm.com
3565ee7081 Bug 339871 - Scriptable nsIXPCFunctionThisTranslator uses non-scriptable nsIInterfaceInfo. r/sr=jst. 2006-06-01 19:31:39 +00:00
brendan%mozilla.org
b390867301 Fix to cope with null __proto__ (339685, r=mrbkap). 2006-05-31 21:41:54 +00:00
igor.bukanov%gmail.com
997bc7e12b Bug 339785: When reporting errors about unknown entities in XML literals, do not include append an extra ';' to token buffer as it would not be included in the error message in any case. 2006-05-31 19:11:52 +00:00
brendan%mozilla.org
7aab66ac5a Oops, s/NULL/JS_FALSE/. 2006-05-26 18:01:41 +00:00
brendan%mozilla.org
39933ad5a8 Avoid bad old valueOf call attempt for object-to-object conversion (339256, r=mrbkap). 2006-05-26 17:34:08 +00:00
brendan%mozilla.org
337e318004 Fix off-by-one and logic bugs conspiring against catch blocks (339262, r=mrbkap). 2006-05-25 22:23:37 +00:00
gavin%gavinsharp.com
b581167b49 Bug 265871: rename JavaScript console to Error console, patch by Kurt <supernova_00@yahoo.com>, r=mconnor, ui-r=beltzner, sr=neil/bzbarsky 2006-05-25 21:22:32 +00:00
mrbkap%gmail.com
19bfba4f52 Fix MSVC warnings about assigning a wider variable into a narrower one resulting from the checkin for bug 338678. r=brendan 2006-05-24 21:07:55 +00:00
mrbkap%gmail.com
a42278ba05 Use the correct scope chains when creating iterator objects and StopIteration exceptions to prevent weird object from breaking iteration. bug 338307, r=brendan 2006-05-24 20:26:54 +00:00
benjamin%smedbergs.us
4b0b5e50d7 Bug 339008 - Static string in xpconnect makes libxul builds crash, r=mrbkap with a nit by timeless 2006-05-24 13:35:37 +00:00
bclary%bclary.com
e6c2bf9b97 Bug 336686 - js shell - add pdb files for debugging on windows, r=mrbkap 2006-05-24 05:51:22 +00:00
igor%mir2.org
3df7a16da3 Bug 338804: Making rooting bulletproof. r=mrbkap,sr=brendan 2006-05-23 07:54:17 +00:00
brendan%mozilla.org
267d7d8156 Make anonymous classes really anonymous given self-identified global objects (326466, r=mrbkap). 2006-05-22 23:36:32 +00:00
mrbkap%gmail.com
44ffcbf617 Instead of having a source note per variable type, use a single source note with an immediate operand. bug 336378, r=brendan 2006-05-22 23:33:57 +00:00
igor%mir2.org
65028a8035 Bug 338678: For source compatibility fields "uint16 extra,spare" in JSFunctionSpec are replaced by singe "uint32 extra". In this way we do need to update the current sources that list just 5 fields to include the additional ",0" corresponding to "spare" field. To quell GCC warnings all sources that list less then 5 fields of JSFunctionSpec are updated to explicitly list all 5 fields. r=mrbkap, s=brendan 2006-05-22 22:58:31 +00:00
mrbkap%gmail.com
5b7def9e09 fp->thisp can point to a primitive tagged jsval now, so test that before treating it as a GC thing. bug 336804, r=brendan 2006-05-22 22:46:07 +00:00
mrbkap%gmail.com
9de0c9222c Look before we leap: check to make sure that we don't overwrite readonly properties on catch variables. bug 338709, r=brendan 2006-05-22 21:54:54 +00:00
brendan%mozilla.org
bcf6aea253 First big wave of js1.7 changes (326466, 336376, r=mrbkap). 2006-05-20 22:27:28 +00:00
igor%mir2.org
3d11ecfc91 Bug 312238: using thread-local pool to speedup the allocation of GC things. This is a version of the original patch from Feng Qian <feng.qian.moz@gmail.com> with changes by Brendan and my tunings. r=feng.qian.moz,sr=brendan 2006-05-19 10:25:36 +00:00
igor%mir2.org
c5ae726feb Bug 312238: reverting untill build problems will be sort out. 2006-05-19 09:35:11 +00:00
igor%mir2.org
7a46b5ba6f Bug 312238: using thread-local pool to speedup the allocation of GC things. This is a version of the original patch from Feng Qian <feng.qian.moz@gmail.com> with changes by Brendan and my tunings. r=feng.qian.moz,sr=brendan 2006-05-19 09:31:32 +00:00
brendan%mozilla.org
24ab9e005f Beef up sanity checking (338121, r=mrbkap). 2006-05-18 17:12:14 +00:00
mrbkap%gmail.com
0fa46c65df Avoid going through js_LookupProperty for well-known access checks (in particular, __parent__ and __proto__) both for perf wins and to make sure that we check the value that we're asking for. bug 336875, r=brendan 2006-05-16 14:47:28 +00:00
brendan%mozilla.org
70f1347e9f Add integer overflow checking (338001, r=mrbkap). 2006-05-16 09:22:55 +00:00
igor%mir2.org
278c093be5 Bug 312238: Move GC arena initialization/cleanup code to NewGCArena/ DestroyGCArena to simplify js_NewGCThing/js_GC. r=brendan r=feng.qian.moz 2006-05-12 08:21:44 +00:00
igor%mir2.org
9c172158d2 Bug 337407: Make sure that js_NewGCThing initializes the flag byte even after js_PushLocalRoot failure. r=brendan 2006-05-11 22:48:51 +00:00
mrbkap%gmail.com
e7695293dd Temporarily backing this change out to fix bug 336100, r=brendan approval for the closed-tree checkin from bz 2006-05-11 02:43:38 +00:00
darin%meer.net
0318b8c707 landing patch for bug 326273 "Implement nsIThreadManager" (Mac portions by Mark Mentovai) with reviews from bienvenu, bsmedberg, bzbarsky, josh, roc, and ssieb 2006-05-10 17:30:15 +00:00
brendan%mozilla.org
ccc85b3ed6 iteration protocol + simple generators (after PEP-255), v6 (326466). 2006-05-10 01:50:12 +00:00
igor%mir2.org
dc82ea8c0e Bug 336376: I reverted the commit as the tree is closed! 2006-05-09 03:01:30 +00:00
igor%mir2.org
544353a33f Bug 336376: Keywords are treated as identifiers in object literals or after '::', '.', '..' unless they are part of namespace prefix. I.e. now {try: 1}, obj.delete(), xml..in, ns::new are valid while xml.try::elem is not allowed and xml.function::child continues to refer to the method named child. r=brendan 2006-05-09 02:26:27 +00:00
timeless%mozdev.org
36a8d6a84e Bug 334196 nsXPCWrappedJSClass::GetNamedPropertyAsVariant returns an unitialized value when JS_ValueToId fails
r=jst sr=jst
2006-05-06 22:37:05 +00:00
timeless%mozdev.org
3d2bf4ae10 Bug 334194 XPC_WN_Helper_Mark returns unitialized value
r=jst sr=jst
2006-05-06 22:34:46 +00:00
timeless%mozdev.org
ce1d6f5c30 Bug 334204 XPCConvert::JSValToXPCException is too cautious
r=mrbkap sr=jst
2006-05-06 22:26:39 +00:00
cbiesinger%web.de
51a89a8b1e bug 335180 Remove win32.order, mozilla-bin.order, --enable-reorder, and
associated code. These options do not really work anymore.

r=bsmedberg
2006-05-06 17:53:51 +00:00
mrbkap%gmail.com
e8c803bd1e Expand the checks to more cases. bug 336601, r+a181=brendan a=dveditz 2006-05-05 23:29:37 +00:00
mrbkap%gmail.com
9fa33e3770 Expand the checks to more cases. bug 336601, r+a181=brendan a=dveditz 2006-05-05 23:17:22 +00:00
mrbkap%gmail.com
00f677e640 OBJ_CHECK_ACCESS on call objects will return v = JSVAL_VOID since call objects don't have Object.prototype in their prototype. bug 336560, r=brendan 2006-05-05 08:08:56 +00:00
mrbkap%gmail.com
d807f17350 Create a safe version of js_ComputeThis that does access checks up the scope chain and bails if there's a failure. Use js_SafeComputeThis in places where its needed. bug 319263, r+a181=brendan 2006-05-04 06:46:27 +00:00
brendan%mozilla.org
a0b076d854 Keep cached class objects coherent with global properties mapping same (336054, r=shaver). 2006-05-02 05:50:28 +00:00
mrbkap%gmail.com
27b5f3a944 Tab patrol 2006-05-02 00:20:31 +00:00
brendan%mozilla.org
538e9fb7b0 Tab and style policing. 2006-05-01 22:25:19 +00:00
mrbkap%gmail.com
fc083d22f5 Don't assume that mWrapper is non-null, since it can be null when we're dealing with a wrapped prototype. bug 335731, r+sr=jst 2006-04-29 01:02:37 +00:00
dbaron%dbaron.org
3df5f58ee9 Fix recently introduced reference leak. b=335785 r=mrbkap sr=jst 2006-04-29 00:23:45 +00:00
brendan%mozilla.org
07e73ba791 Avoid strict warning set-up costs if strict option is off (335700, r=mrbkap). 2006-04-28 18:50:40 +00:00
brendan%mozilla.org
ec58ef8486 Fixed another JSVERSION_1_2 removal botch that broke splice (325951 regression, but see 326466 for the report). 2006-04-28 00:20:44 +00:00
mrbkap%gmail.com
1e7cde7835 Make typeof (0, undef) throw a reference error. bug 333728, r=brendan 2006-04-27 23:49:51 +00:00
mrbkap%gmail.com
f952f6ded0 Finish checking in bug bug 331429 (r=brendan). I forgot to check this in. 2006-04-27 20:50:28 +00:00
brendan%mozilla.org
2e05c97889 Awesome patch from Andreas <mqmq87@web.de> to avoid creating unnecessary objects for primitives being operated on via methods (334261, r=me). 2006-04-27 17:58:55 +00:00
igor%mir2.org
3f2ce53374 Bug 325951: All keywords are JSVERSION_DEFAULT as we no longer support JS < 1.5. r=mrbkap 2006-04-27 08:04:40 +00:00
brendan%mozilla.org
c0cd5cc0b5 js_MarkStackFrame prototype, for bug 326466 pre-patch that already landed. 2006-04-27 00:46:30 +00:00
brendan%mozilla.org
0667cc1d4c Prep patch for iterators and generators (326466, r=mrbkap). 2006-04-27 00:39:43 +00:00
brendan%mozilla.org
3595b88dc7 Foopy 2006-04-26 23:31:54 +00:00
brendan%mozilla.org
45adb0b200 Oops. 2006-04-26 22:34:00 +00:00
mrbkap%gmail.com
0cf9f4ba99 Protect against an overly-large length. Patch from brendan, bug 335535, r=mrbkap 2006-04-26 21:46:53 +00:00
mrbkap%gmail.com
05a259f259 Comments should match reality. 2006-04-26 21:44:27 +00:00
brendan%mozilla.org
916f80bcda Major simplification to jsconfig.h, dropping support for all ancient bug config and almost all pre-ECMA-Edition-3 feature config (325951, r=mrbkap). 2006-04-26 21:33:01 +00:00
mrbkap%gmail.com
fcb69da993 When a document's scope object changes (e.g., for a call to document.open), actually change the scope object and move all of the wrappers in the old scope into the new one. bug 333697, r+sr=jst 2006-04-26 19:53:27 +00:00
brendan%mozilla.org
c0afb8d783 Fix eager standard class init to control recursion through lazy paths, and re-enable the dreaded XXXMLM assertion in JS_InitClass (334834, r=mrbkap). 2006-04-25 21:00:36 +00:00
mrbkap%gmail.com
d5be5a4723 Backing out bug 326497 again to see if it fixes the problems that we're seeing with us not recognizing functions set on [classname].prototype. 2006-04-24 19:27:25 +00:00
igor%mir2.org
5759cafb55 Bug 324278: Set by default the stack limit quota to 500000 for js shell. r=brendan 2006-04-23 19:23:53 +00:00
igor%mir2.org
c96d4c8210 Bug 334929: tuning JS_MaybeGC so it would trigger GC less often on the browser start-up to match the behaviors before I committed patched from bug 312238 to change nature of rt->gc(Private)?Bytes. r=brendan 2006-04-23 14:45:10 +00:00
bzbarsky%mit.edu
c5f4268fcb Fix leak. Bug 334898, patch by Ryan Flint <rflint@dslr.net>, r=mrbkap, sr=bzbarsky 2006-04-21 21:23:46 +00:00
brendan%mozilla.org
b9727d2b3d Fix 334807 (r=mrbkap). 2006-04-21 11:08:18 +00:00
neil%parkwaycc.co.uk
13b0235496 --disable-xpcom-fastload breaks JS component loader b=334849 r=shaver sr=brendan 2006-04-21 09:46:00 +00:00
brendan%mozilla.org
3e30b0dbae Revert to comment out the XXXMLM mystery assert. 2006-04-21 07:47:06 +00:00
brendan%mozilla.org
8259bdb3cd Remove non-standard and not-for-public-use With (304376 followup). 2006-04-21 07:14:29 +00:00
igor%mir2.org
f63b1ca6f0 Bug 312238: gcBytes and gcPrivateBytes from JSRuntime now means the total
amount of memory allocated by GC arenas, not the size of allocated things
which does not include the memory taken by free GC cells. This simplified
accounting and allows to implement lock-less allocation of GC things.
2006-04-20 15:33:35 +00:00
brendan%mozilla.org
3164d9ab80 Final (I hope) followup patch (304376, r=mrbkap). 2006-04-20 05:18:09 +00:00
brendan%mozilla.org
da86244695 Fix brain-damaged code from last checkin (r=mrbkap). 2006-04-20 01:17:06 +00:00
brendan%mozilla.org
1734f2c734 Second half of fix for 304376 (r=mrbkap). 2006-04-19 23:36:16 +00:00
dbaron%dbaron.org
4fd4c8fc7c Call SetName so we don't have an XPCCallContext in a bad state. b=334104 r=dbradley sr=jst 2006-04-19 22:00:31 +00:00
gavin%gavinsharp.com
c8c5efd97f Bug 334180: backport pldhash -> jsdhash of win32 fastcall support, rev. 1, patch by bsmedberg, r=brendan 2006-04-19 20:34:56 +00:00
brendan%mozilla.org
dcf53bc38a Oops. 2006-04-19 00:57:03 +00:00
brendan%mozilla.org
705725e02f Memoize standard class.prototype bindings, per ECMA-262 (304376, r=mrbkap). 2006-04-19 00:22:43 +00:00
dbaron%dbaron.org
c6e5aec25e Make JSDHashTable/PLDHashTable assert when ops or enumeration callbacks mutate the table. b=334180 r=brendan 2006-04-18 18:30:50 +00:00
igor%mir2.org
624cae247a Bug 331598: The tail recursion elimination in MarkGCThingChildren is simplified.r=brendan 2006-04-18 07:25:37 +00:00
brendan%mozilla.org
f423f359b1 Random trailing space search. 2006-04-18 04:41:24 +00:00
brendan%mozilla.org
10cbbda3cf Patch from Feng Qian <feng.qian.moz@gmail.com> with assist from Igor, based on ancient patch from me, to factor per-thread state from JSContext into JSThread to support per-thread lock-free GC allocation (312238, r=me). 2006-04-18 01:41:54 +00:00
mrbkap%gmail.com
2d7096065f Fix use of uninitialized fp. 2006-04-18 01:34:38 +00:00
mrbkap%gmail.com
e343a97818 Fix off-by-one error while parsing control escape sequences. bug 334158, patch by Andreas <mqmq87@web.de>, r=mrbkap 2006-04-18 00:10:27 +00:00
mrbkap%gmail.com
45f0829287 Split out construction code from the interpreter proper and share it between the js_Interpret and a new Narcissus-only function on Function.prototype (__applyConstructor__). This allows Narcissus to call a native constructor with an array of arguments, like Function.prototype.apply. bug 331429, r=brendan 2006-04-17 23:36:31 +00:00
dbaron%dbaron.org
849f97dd03 Fix mismatched allocators. b=334162 r+sr=jst 2006-04-17 23:03:51 +00:00
brendan%mozilla.org
66aaeb15a5 Fix int constant precedent (333541, r=mrbkap). 2006-04-16 05:10:10 +00:00
mrbkap%gmail.com
3fda3a292b -- Allow the DOM script object factory to turn XPConnect return values into proper nsIException objects.
-- Make nsDOMClassInfo::ThrowJSException never throw null as an exception.
-- Make XPCException::ToString grab the description of the result as well as the name.

r+sr=jst
2006-04-15 00:37:51 +00:00
jst%mozilla.jstenback.com
f4f7012c0b Fixing bug 321299. Make sure XPConnect wrappers get properly reparented when moving nodes from document to document. r=mrbkap@gmail.com, sr=bzbarsky@mit.edu 2006-04-11 03:49:44 +00:00
mrbkap%gmail.com
7970a7888a Try fixing bug 326497 again, this time allowing DOM constructors to be wrapped in cross-domain settings, since some of them can be used (e.g., Location). r+sr=jst for the DOM bits, r=brendan sr=shaver for the XPConnect bits. 2006-04-10 21:40:28 +00:00
brendan%mozilla.org
2c653c4861 Duh... (333398, r=mrbkap). 2006-04-10 05:35:12 +00:00
silver%warwickcompsoc.co.uk
a7f77479db Bug 332514 - Don't allow null argument to Sandbox constructor. r=brendan sr=jst 2006-04-08 22:04:40 +00:00
bclary%bclary.com
95ccbc1e1d Update JS_GetImplementationVersion() date string (bug 67111, r=brendan) 2006-04-07 16:04:45 +00:00
brendan%mozilla.org
73ab09a55c Fix thread- and GC-safety bugs in js_GetAnyName and its evil twin (331782, 325526, r=mrbkap). 2006-04-06 20:24:24 +00:00
brendan%mozilla.org
d911007cfc Fix uneval on E4X objects (327534, r=mrbkap). 2006-04-06 20:15:24 +00:00
gavin%gavinsharp.com
c1c8fbfcac Bug 314529: E4X: delete operator misses some descendants - e4x/Types/9.1.1.3.js, patch by Erik Fabert <jerfa@email.it>, r=brendan 2006-04-06 13:04:54 +00:00
gavin%gavinsharp.com
d0dee808f7 Bug 330319: Remove duplicate string constants in jsnum.c, patch by Erik Fabert <jerfa@email.it>, r=brendan 2006-04-06 13:02:03 +00:00
gavin%gavinsharp.com
0ce6c36fee Bug 331203: Result of Math.pow(NaN, 0) should be 1, patch by Erik Fabert <jerfa@email.it>, r=brendan 2006-04-06 04:49:20 +00:00
dbaron%dbaron.org
e94b49b6af Root across calls to JS_SetElement and JS_SetProperty. b=331667 r=jst,dbradley sr=brendan 2006-04-05 21:34:16 +00:00
dbaron%dbaron.org
04b8c33eda Remove uses of MOZ_DECL_CTOR_COUNTER, which is always defined to nothing. b=332745 rs=roc,bzbarsky 2006-04-05 00:00:44 +00:00
timeless%mozdev.org
905303609b Bug 332689 js.mak clean targets fail to clean up pch's
also fixes up a few glitches in the jskwgen work and makes make clean zap its generated file
the clean target for js now cleans fdlibm+jskwgen too
the clean target for jsshell now cleans js too
2006-04-04 15:50:15 +00:00
timeless%mozdev.org
ef483b51d5 Bug 328479 Building the jsshell on VC++ 6 fails because jsautokw.h is missing
spidermonkey only fix for nmake. not part of any build that works since this hasn't worked in a long time.
2006-04-04 13:09:50 +00:00
mrbkap%gmail.com
c4f9fa3841 Backing out my changes from bug 326497 to fix tinderbox orange. 2006-04-03 21:18:41 +00:00
mrbkap%gmail.com
60b589ae77 Don't ignore any errors returned by PostCreate. Also, don't override an exception if one is already reported, as the further away from the original problem we get, the less precise the error message will be. bug 326497, r=brendan sr=shaver 2006-04-03 18:10:38 +00:00
bzbarsky%mit.edu
25ab5fffef Create a powerless non-principal and start using it. Bug 326506, r=mrbkap,
sr=dveditz
2006-04-02 20:58:26 +00:00
brendan%mozilla.org
daee041a64 Undepend regexp source string so error message formatted arg refs into it work (332472, r=mrbkap). 2006-04-02 19:07:49 +00:00
brendan%mozilla.org
b7aec0251e Fix double-destroy on js_SetLastIndex failure in js_NewRegExpObject (332415, r=mrbkap). 2006-04-01 00:00:38 +00:00
brendan%mozilla.org
7f55e01fd4 Don't optimize special (eval and debugger) global frames (332199, r=mrbkap). 2006-03-31 01:32:19 +00:00
brendan%mozilla.org
439fdaacf8 Fix 331787 by atomizing declared function object early (r=mrbkap). 2006-03-31 01:27:23 +00:00
darin%meer.net
20837f71e1 fixes bug 328925 "Replace NS_WARN_IF_FALSE with NS_ASSERTION (where appropriate)" r=dbaron 2006-03-30 18:40:56 +00:00
igor%mir2.org
a5fdadc191 Bug 331770: Extending JS_GCMETER to include average free list density and free list recycle/new allocation ratio. 2006-03-28 08:41:40 +00:00
dbaron%dbaron.org
90bc11aa89 Root the new string across the call to js_NewObject, etc. b=331793 r=brendan 2006-03-27 23:45:56 +00:00
dbaron%dbaron.org
c7844c2cd8 Root the result of js_NewXML across js_GetXMLObject. b=331786 r=brendan 2006-03-27 23:43:40 +00:00
brendan%mozilla.org
a69a747947 MIPS little-endian porting fix from Ian Jackson and Thiemo Seufer, via Mike Hommey <mh@glandium.org> (331820, r=me). 2006-03-27 05:54:51 +00:00
brendan%mozilla.org
2350ba344e Home sp (and pc) before allocating call-outs (331719, r=mrbkap). 2006-03-26 03:50:34 +00:00
igor%mir2.org
dc37a48f53 Bug 331456: Cache of deflated string bytes is per runtime now. To preserve
API compatibility JS_GetStringBytes(JSString *str) calls newly introduced
js_GetGCStringRuntime(JSString *str) to extract JSRuntime* instance based
on the layout of GC structures. r=brendan
2006-03-25 22:55:00 +00:00
brendan%mozilla.org
12081a43a3 Rooting fixes courtesy dbaron (331678, r=mrbkap). 2006-03-25 21:51:57 +00:00
igor%mir2.org
373a0e0bf8 Bug 331598: Cleanup/simplifications after landing of patch for recursion-free GC from bug 324278. 2006-03-25 20:21:31 +00:00
brendan%mozilla.org
c0c2ef84b1 Fix silly null ptr deref (331664, r=mrbkap). 2006-03-25 19:24:44 +00:00
mrbkap%gmail.com
bd2900305a Fix a silly typo decompiling the setting of the default xml namespace. bug 331558, patch by Erik Fabert <jerfa@email.it>, r=mrbkap 2006-03-24 18:32:11 +00:00
dbaron%dbaron.org
d8b42e96fc Fix C++ comments that I introduced. 2006-03-24 08:32:09 +00:00
dbaron%dbaron.org
ace148d610 Workaround brokenness of __builtin_frame_address(0) on gcc 4.1 (as shipped with FC5, at least). b=331436 r=brendan 2006-03-23 23:21:27 +00:00
brendan%mozilla.org
b22355da41 Missing OBJECT_TO_JSVAL to fix warning introduced by last checkin. 2006-03-23 21:02:43 +00:00
igor%mir2.org
dadb71b144 Bug 330692: GC_MARK_DEBUG-only arguments are removed when GC_MARK_DEBUG is not defined. r=brendan 2006-03-23 11:50:30 +00:00
mrbkap%gmail.com
7a4858081c Don't add unnecessary quotes to the rhs of the descendant operator. bug 321547, r=brendan 2006-03-23 05:36:20 +00:00
mrbkap%gmail.com
cb3b07a687 Continue to create an exception even when we're unable to convert a function passed as an argument to a string. This fixes some cases where an exception would become uncatchable. bug 328443, r=brendan 2006-03-23 05:16:39 +00:00
mrbkap%gmail.com
c29adb7907 Root the new function across XDR operations to make sure it doesn't get garbage collected. bug 327708, r=brendan 2006-03-23 05:12:27 +00:00
mrbkap%gmail.com
0f68c9e245 Protect against scripts setting __proto__ to null. bug 317250, hopeful-r=brendan 2006-03-23 02:24:45 +00:00
mrbkap%gmail.com
7685d1b7e0 Create the PropertyIterator object with a default parent so that when we attempt to find the PropertyIterator constructor, we look up the default scope chain and not one that we might not have access to. bug 328012, r=brendan 2006-03-23 01:25:21 +00:00
mrbkap%gmail.com
f9460f5c90 Always innerize the variables object to ensure that random properties don't get stuck on the outer object. bug 317250, r=brendan 2006-03-22 21:44:31 +00:00
igor%mir2.org
bd61ffbe63 Bug 324278: Implementation of GC marking algorithm that uses constant space for
any kind of GC things. r=brendan

The main idea is to put a GC thing to a special "unscanned bag" instead of recursively calling GC_MARK on thing's children when C stack is slow. Then later the code loops through the bag marking the children until the bag is empty.

The unscanned bag is implemented as a linked list of GC arenas where things that belongs to the bug marked with GCF_MARK|GCF_FINAL combination. To avoid long scanning of arenas on the list, the code uses a bitmask per arena to indicate which pages within the arena contains unscanned things and an extra bitmask per page to indicate offset range withing the page of the unscanned things.
2006-03-22 15:38:43 +00:00
mrbkap%gmail.com
309575af1a I didn't mean to check this in. 2006-03-22 07:29:49 +00:00
mrbkap%gmail.com
45b704978a Used standard IO functions in snarf so that things work equally well on Linux and Windows. No bug, patch by Brendan, r=mrbkap 2006-03-22 07:26:31 +00:00
brendan%mozilla.org
1d810ceadf More Windows warning fixes. 2006-03-22 01:39:40 +00:00
brendan%mozilla.org
c37c9150ee Warning fix for MSVC. 2006-03-22 01:37:27 +00:00
cls%seawood.org
0828b79df3 Fix mingw cross-compile bustage.
Bug #322578 r=mark sr=bsmedberg
2006-03-21 03:04:54 +00:00
dbaron%dbaron.org
4a829838f0 Use __builtin_frame_address instead of setjmp to get the frame pointer. b=323853 r=brendan 2006-03-19 01:27:17 +00:00
igor%mir2.org
cdc28d9089 Bug 330951: Patch from Pawel Chmielowski to fix a regression that I introduced in bug 311515. 2006-03-18 23:36:04 +00:00
igor%mir2.org
a254e22506 Bug 330951: Asserting that string arguments str1 and str2 arguments are not NULLs in js_CompareStrings and js_EqualStrings.
Previously passing str1 and str2 set to NULL did not crash as str1 and str2 compared equals as pointers and the functions returned true without accessing *str1 or *str2. In turn it allowed for the regression from bug 311515 causing this bug to survive much longer then it should. r=brendan.
2006-03-18 23:29:15 +00:00
igor%mir2.org
14a2473a5d Bug 330812: In array_sort clear only those elements of temporary vector that
would be included in the rooted set. It provides better performance for huge
mostly spare arrays. r=mrbkap
2006-03-17 22:09:46 +00:00
igor%mir2.org
5f57130e34 Bug 311515: Fixing misspellings in comments from the previous commit. 2006-03-16 08:04:28 +00:00
igor%mir2.org
cba34b6b55 Bug 311515: array_sort sorts undefined value and holes via counting them as according to the Ecma standard holes are bigger then undefined values which are bigger then anything else. This allows to simplify sort_compare and shrink jsarray.c code while making sorting of spare arrays faster. r=mrbkap 2006-03-15 20:49:09 +00:00
igor%mir2.org
6f1486e3be Bug 328664: In js_DecompileValueGenerator search the stack for the value to decompile from the top to bottom to pick up the copy and corresponding code that was pushed to the stack most recently. r=brendan 2006-03-15 16:44:24 +00:00
daumling%adobe.com
d5cca305bd Bug 330169: Replaced early exits in ParseNodeToXML() with a jump to skip_child so js_LeaveLocalRootScope() can be called correctly. r=mrbkap 2006-03-15 09:23:36 +00:00
bryner%brianryner.com
4cd1e2b280 Remove dependency on nsIClassInfo.h from nsISupports.h (bug 330420). This adds a new nsIClassInfoImpl.h file which can be included to get the CI implementation macros. Also, removes unneeded inclusion of nsIProgrammingLanguage.h from nsIClassInfo.h. r=darin. 2006-03-15 04:59:42 +00:00