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

3436 Коммитов

Автор SHA1 Сообщение Дата
igor.bukanov%gmail.com 2c1b51b706 Bug 324533: Added missed checks for bad string buffer. 2006-06-08 18:16:10 +00:00
mrbkap%gmail.com da6ba65698 Add some additional evalInSandbox functionality for PAC and use it there. bug 337389, r=shaver sr=darin 2006-06-07 20:21:40 +00:00
mrbkap%gmail.com 1110850939 Use a shiny new API for propagating uncaught exceptions. bug 328161, r=brendan sr=shaver 2006-06-07 00:19:29 +00:00
mrbkap%gmail.com 6150373aeb Protect more properties on catch variables. bug 338709, r=brendan 2006-06-05 21:07:22 +00:00
brendan%mozilla.org b5ab238f43 DEBUG_NOT_THROWING addition for new auto-rethrow-if-exception-pending code. 2006-06-05 20:54:24 +00:00
brendan%mozilla.org 8af0ac5642 Eliminate warnings, clean up assertion translation. 2006-06-05 20:35:07 +00:00
brendan%mozilla.org 156339d5b5 Missing error check/early return for TOK_RETURN refactoring (340369, r=mrbkap). 2006-06-05 18:38:14 +00:00
brendan%mozilla.org ae9bc36df7 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 0a5cd7f575 Coroutine generators, a la Python 2.5 (326466, r=igor). 2006-06-04 02:19:09 +00:00
dbaron%dbaron.org 255918f7bd Add a comment, rs=brendan. 2006-06-03 02:40:02 +00:00
brendan%mozilla.org aec6143685 Better failover to js_DefaultIterator if __iterator__ comes back primitive (340199, r=mrkbap). 2006-06-03 02:30:39 +00:00
brendan%mozilla.org 43049d281c 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 26fd7ad3a3 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 82a25c8ad3 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 4f134ccfde 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 eef41e7811 Bug 339871 - Scriptable nsIXPCFunctionThisTranslator uses non-scriptable nsIInterfaceInfo. r/sr=jst. 2006-06-01 19:31:39 +00:00
brendan%mozilla.org 829b864318 Fix to cope with null __proto__ (339685, r=mrbkap). 2006-05-31 21:41:54 +00:00
igor.bukanov%gmail.com 02ca54c2d9 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 e2728f69c2 Oops, s/NULL/JS_FALSE/. 2006-05-26 18:01:41 +00:00
brendan%mozilla.org 2256de1dce 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 12e96a89cf 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 b9b66cc05b 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 ec01528c14 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 9601eccbbb 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 01c895b408 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 292fc53d2a Bug 336686 - js shell - add pdb files for debugging on windows, r=mrbkap 2006-05-24 05:51:22 +00:00
igor%mir2.org af96cb3ee1 Bug 338804: Making rooting bulletproof. r=mrbkap,sr=brendan 2006-05-23 07:54:17 +00:00
brendan%mozilla.org 81ac6da7aa Make anonymous classes really anonymous given self-identified global objects (326466, r=mrbkap). 2006-05-22 23:36:32 +00:00
mrbkap%gmail.com af33b42abb 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 271c305869 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 f7e7729eb0 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 38b8a4600b 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 3ad6b28032 First big wave of js1.7 changes (326466, 336376, r=mrbkap). 2006-05-20 22:27:28 +00:00
igor%mir2.org 84dae69e1c 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 61f8e69bc4 Bug 312238: reverting untill build problems will be sort out. 2006-05-19 09:35:11 +00:00
igor%mir2.org afeadc35d3 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 7887f04726 Beef up sanity checking (338121, r=mrbkap). 2006-05-18 17:12:14 +00:00
mrbkap%gmail.com 18ff220579 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 a0ccaf6b0e Add integer overflow checking (338001, r=mrbkap). 2006-05-16 09:22:55 +00:00
igor%mir2.org 5292695a2a 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 a0ecd86db5 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 4192df9b36 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 7d3e7d7acd 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 4acdf3bf40 iteration protocol + simple generators (after PEP-255), v6 (326466). 2006-05-10 01:50:12 +00:00
igor%mir2.org d693ca2d40 Bug 336376: I reverted the commit as the tree is closed! 2006-05-09 03:01:30 +00:00
igor%mir2.org df64f47ccf 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 8e968261f4 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 e6823729ac Bug 334194 XPC_WN_Helper_Mark returns unitialized value
r=jst sr=jst
2006-05-06 22:34:46 +00:00
timeless%mozdev.org 8f5a929afc Bug 334204 XPCConvert::JSValToXPCException is too cautious
r=mrbkap sr=jst
2006-05-06 22:26:39 +00:00
cbiesinger%web.de 1fe4516c9f 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 52bff66666 Expand the checks to more cases. bug 336601, r+a181=brendan a=dveditz 2006-05-05 23:29:37 +00:00
mrbkap%gmail.com df21ae0e1e Expand the checks to more cases. bug 336601, r+a181=brendan a=dveditz 2006-05-05 23:17:22 +00:00
mrbkap%gmail.com ef1ee7506c 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 36071ec9b8 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 e0bb9102f2 Keep cached class objects coherent with global properties mapping same (336054, r=shaver). 2006-05-02 05:50:28 +00:00
mrbkap%gmail.com 28917bc948 Tab patrol 2006-05-02 00:20:31 +00:00
brendan%mozilla.org a70f73c85f Tab and style policing. 2006-05-01 22:25:19 +00:00
mrbkap%gmail.com 5f27bde7e5 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 b893a302f7 Fix recently introduced reference leak. b=335785 r=mrbkap sr=jst 2006-04-29 00:23:45 +00:00
brendan%mozilla.org adb7549d2e 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 105db56e9f 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 20a7fa17fa Make typeof (0, undef) throw a reference error. bug 333728, r=brendan 2006-04-27 23:49:51 +00:00
mrbkap%gmail.com 57dbf2fc1a 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 c46d4c1bf9 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 657b137b5b 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 91a99f8a6f js_MarkStackFrame prototype, for bug 326466 pre-patch that already landed. 2006-04-27 00:46:30 +00:00
brendan%mozilla.org 19075ba56d Prep patch for iterators and generators (326466, r=mrbkap). 2006-04-27 00:39:43 +00:00
brendan%mozilla.org cce35460d9 Foopy 2006-04-26 23:31:54 +00:00
brendan%mozilla.org c7d2105370 Oops. 2006-04-26 22:34:00 +00:00
mrbkap%gmail.com 45aba15716 Protect against an overly-large length. Patch from brendan, bug 335535, r=mrbkap 2006-04-26 21:46:53 +00:00
mrbkap%gmail.com 5f946be0b1 Comments should match reality. 2006-04-26 21:44:27 +00:00
brendan%mozilla.org d5cdd83399 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 95acf0af16 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 b96414c35a 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 100614cf8e 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 598a21b715 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 f31114e6b9 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 8af7850626 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 f1aaf4fbdb Fix 334807 (r=mrbkap). 2006-04-21 11:08:18 +00:00
neil%parkwaycc.co.uk e19e1fe971 --disable-xpcom-fastload breaks JS component loader b=334849 r=shaver sr=brendan 2006-04-21 09:46:00 +00:00
brendan%mozilla.org 63513d7214 Revert to comment out the XXXMLM mystery assert. 2006-04-21 07:47:06 +00:00
brendan%mozilla.org e283d847bb Remove non-standard and not-for-public-use With (304376 followup). 2006-04-21 07:14:29 +00:00
igor%mir2.org 2f3afe17f6 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 67accc47e0 Final (I hope) followup patch (304376, r=mrbkap). 2006-04-20 05:18:09 +00:00
brendan%mozilla.org 8ee255ef71 Fix brain-damaged code from last checkin (r=mrbkap). 2006-04-20 01:17:06 +00:00
brendan%mozilla.org 05d93ba6e5 Second half of fix for 304376 (r=mrbkap). 2006-04-19 23:36:16 +00:00
dbaron%dbaron.org 15c4c91ad3 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 6ecaf381aa 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 042ac3e7bf Oops. 2006-04-19 00:57:03 +00:00
brendan%mozilla.org e2e22feaa7 Memoize standard class.prototype bindings, per ECMA-262 (304376, r=mrbkap). 2006-04-19 00:22:43 +00:00
dbaron%dbaron.org 268a49156c 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 ca30edd2de Bug 331598: The tail recursion elimination in MarkGCThingChildren is simplified.r=brendan 2006-04-18 07:25:37 +00:00
brendan%mozilla.org 21481d6fea Random trailing space search. 2006-04-18 04:41:24 +00:00
brendan%mozilla.org 4dee914be4 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 373e65cbc3 Fix use of uninitialized fp. 2006-04-18 01:34:38 +00:00
mrbkap%gmail.com 56fa1fede5 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 b079fe431d 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 220c6fed0f Fix mismatched allocators. b=334162 r+sr=jst 2006-04-17 23:03:51 +00:00
brendan%mozilla.org 15cda8f1f1 Fix int constant precedent (333541, r=mrbkap). 2006-04-16 05:10:10 +00:00
mrbkap%gmail.com 82cf1531d4 -- 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 3820cfcf55 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 aa30098ef8 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 84fb6327de Duh... (333398, r=mrbkap). 2006-04-10 05:35:12 +00:00
silver%warwickcompsoc.co.uk 9bdba482bb 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 d53e961d29 Update JS_GetImplementationVersion() date string (bug 67111, r=brendan) 2006-04-07 16:04:45 +00:00
brendan%mozilla.org 70a2b8334f 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 db2ada867b Fix uneval on E4X objects (327534, r=mrbkap). 2006-04-06 20:15:24 +00:00
gavin%gavinsharp.com cea7c12a5f 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 56146d5a21 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 c1995c4db4 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 9cccff160a 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 ac49c790c1 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 bc5d9b370e 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 6b7c070642 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 83bb09e916 Backing out my changes from bug 326497 to fix tinderbox orange. 2006-04-03 21:18:41 +00:00
mrbkap%gmail.com f4b1446ece 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 59f912e4ad 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 7babc76af5 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 efff5fd986 Fix double-destroy on js_SetLastIndex failure in js_NewRegExpObject (332415, r=mrbkap). 2006-04-01 00:00:38 +00:00
brendan%mozilla.org f60f7d674d Don't optimize special (eval and debugger) global frames (332199, r=mrbkap). 2006-03-31 01:32:19 +00:00
brendan%mozilla.org c4c00f1048 Fix 331787 by atomizing declared function object early (r=mrbkap). 2006-03-31 01:27:23 +00:00
darin%meer.net 5521781301 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 70f8b1ba6a 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 5e1d105208 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 9dd3df4126 Root the result of js_NewXML across js_GetXMLObject. b=331786 r=brendan 2006-03-27 23:43:40 +00:00
brendan%mozilla.org 7bd6786245 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 e7dcaba309 Home sp (and pc) before allocating call-outs (331719, r=mrbkap). 2006-03-26 03:50:34 +00:00
igor%mir2.org 703d1c3337 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 659937deae Rooting fixes courtesy dbaron (331678, r=mrbkap). 2006-03-25 21:51:57 +00:00
igor%mir2.org bc3cd89a74 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 00eb39402a Fix silly null ptr deref (331664, r=mrbkap). 2006-03-25 19:24:44 +00:00
mrbkap%gmail.com ea197f5e0b 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 3bd90a7a87 Fix C++ comments that I introduced. 2006-03-24 08:32:09 +00:00
dbaron%dbaron.org 172a860286 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 30d2f0307a Missing OBJECT_TO_JSVAL to fix warning introduced by last checkin. 2006-03-23 21:02:43 +00:00
igor%mir2.org 4b4cc4665f 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 9ee66b6f05 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 c61bd6af26 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 b280e88825 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 004d9520d6 Protect against scripts setting __proto__ to null. bug 317250, hopeful-r=brendan 2006-03-23 02:24:45 +00:00
mrbkap%gmail.com 1c51b97da1 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 d7659e4716 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 c498b278ce 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 560d395290 I didn't mean to check this in. 2006-03-22 07:29:49 +00:00
mrbkap%gmail.com b3bb519d0d 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 9d7e216a54 More Windows warning fixes. 2006-03-22 01:39:40 +00:00
brendan%mozilla.org b165c781ed Warning fix for MSVC. 2006-03-22 01:37:27 +00:00
cls%seawood.org 794fcda280 Fix mingw cross-compile bustage.
Bug #322578 r=mark sr=bsmedberg
2006-03-21 03:04:54 +00:00
dbaron%dbaron.org f82adb5d8c 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 ad4a379d52 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 3efeeb5c5b 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 3ad298d674 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 2830bd1869 Bug 311515: Fixing misspellings in comments from the previous commit. 2006-03-16 08:04:28 +00:00
igor%mir2.org 2e221363b8 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 898cc9a773 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 d586b1f10e 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 41e6c02b2f 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
timeless%mozdev.org 51cf1714b7 Bug 329530 Out of memory crash when calling fn.toString where fn is a deeply nested function
patch by jerfa@email.it r=brendan
2006-03-13 17:00:18 +00:00
timeless%mozdev.org 1d32692424 Bug 330098 XPCCallContext::~XPCCallContext is still wiping out newborn roots causing crashes under [@ js_FinalizeObject] because AllocSlots is calling gc and causing its caller (js_NewObject)'s obj to be destroyed before it's stable
r=mrbkap sr=bz
2006-03-13 00:24:06 +00:00
timeless%mozdev.org d8c3c43dcc Bug 326961 JS_BeginRequest should JS_ASSERT(cx->thread == js_GetCurrentThreadId())
r=brendan r=mrbkap
2006-03-12 09:38:06 +00:00
timeless%mozdev.org 9a3421295c Bug 329749 Did JS_SealObject mean to call JS_UNLOCK_OBJ instead of JS_UNLOCK_SCOPE ?
r=brendan
2006-03-12 09:35:52 +00:00
mrbkap%gmail.com 2600e2d85e VC8 doesn't like the copyright sign in jscompat.h. Issue found by jshin, bug 328589, r=gerv/mrbkap 2006-03-11 04:05:13 +00:00
mrbkap%gmail.com 0f8f55e95c Use __declspec(dllexport/dllimport) on OS/2. Patch from Andy Willis <abwillis1@gmail.com>, bug 301064, r=mrbkap 2006-03-11 01:35:21 +00:00
timeless%mozdev.org b9e2ac6595 Bug 329754 three coverity complaints about jsj_JSObject.c
r=mrbkap sr=bz
2006-03-10 20:44:48 +00:00
timeless%mozdev.org ac438e1b6c Bug 330000 Coverity complains that simple_name can not be null in the loop in pre_define_java_packages
r=mrbkap sr=bz
2006-03-10 19:05:19 +00:00
timeless%mozdev.org 713adfb63b Bug 329870 Coverity complains that jsj_EnterJava uselessly null checks envp
r=mrbkap sr=bz
2006-03-10 01:06:06 +00:00
timeless%mozdev.org 1ca23e1e59 Bug 329879 Coverity complains that QName null checks argv after asserting it can't be null
r=brendan
2006-03-09 23:59:40 +00:00
timeless%mozdev.org 8ba124d801 Bug 329877 Coverity complains that js_ErrorToException dereferences reportp before null checking
r=brendan
2006-03-09 23:58:35 +00:00
igor%mir2.org 2d0094a546 Bug 328896: Cleanup of tail recursion elimination for MarkGCThing/MARK_GC_THING from jsgc.c. r=brendan 2006-03-09 06:57:01 +00:00
timeless%mozdev.org cc31424dca Bug 329752 Coverity complains that Statement missed one null check of NewParseNode
r=brendan
2006-03-08 17:17:43 +00:00
timeless%mozdev.org 5247f58618 Bug 329751 Coverity doesn't think obj_eval should null check caller->pc
r=brendan
2006-03-08 17:15:29 +00:00
timeless%mozdev.org 97af83266b Bug 329727 Coverity doesn't like ReportError in jscntxt because it pretends reportp could be null
r=mrbkap
2006-03-08 06:16:33 +00:00
brendan%mozilla.org 028b659b0c Work around MSVC6/7.1 copysign bustage (329383, tachyonal r=mrbkap). 2006-03-06 01:32:55 +00:00
brendan%mozilla.org 9c3ebbd447 No C++ comments in C code. 2006-03-04 20:44:38 +00:00
mrbkap%gmail.com dd4f96393c Use libm, not fdlibm, on all/most platforms. bug 326842, patch from Josh Aas, r=brendan/shaver 2006-03-04 03:58:55 +00:00
daumling%adobe.com 7da15ab8bb Bug 232182: Backed out bad fix causing leaks 2006-03-03 07:03:53 +00:00
brendan%mozilla.org b100aee98e Finish separating gcMaxMallocBytes, account for scope hashtables in gcMallocBytes (319980, r/sr=mrbkap/bz). 2006-03-02 20:47:04 +00:00
brendan%mozilla.org 4bb80c1edb Fast followup to allow arbitrary nesting (328897, r=mrbkap). 2006-03-02 20:05:49 +00:00
brendan%mozilla.org 46cf4a7474 Fix JS_ReportPendingException to when cx has active frames (328897, r=mrbkap). 2006-03-02 20:00:47 +00:00
brendan%mozilla.org 7c3bc4a70e Never mind. 2006-03-01 20:37:43 +00:00
brendan%mozilla.org 110dfb5679 Need another auto-mark thingie (326615, r=mrbkap). 2006-03-01 20:34:49 +00:00
brendan%mozilla.org 8fce62562a Local auto-marker needed (326615, r=mrbkap). 2006-02-28 07:41:01 +00:00
mrbkap%gmail.com b5b0046c44 Flatten before ever reaching CheckCycle, since the way things currently are, it could receive lists of arbitrary length. bug 328769, r=brendan 2006-02-27 20:33:56 +00:00
mrbkap%gmail.com 107ea363fe Don't optimize globals access in eval and debugger frames. bug 328765, r=brendan 2006-02-27 20:23:04 +00:00
mrbkap%gmail.com 33821bc52b Inspect the correct position in our input stream. bug 325925, r=brendan 2006-02-27 19:14:15 +00:00
igor%mir2.org f458e75099 Bug 328556: Proper accounting for growth in array_join_sub when reallocating
chars array. r=mrbkap
2006-02-27 17:32:22 +00:00
brendan%mozilla.org 678fdc7f07 Back out last checkin pending better fix (327869). 2006-02-24 23:18:05 +00:00
mrbkap%gmail.com d9be113509 Clean up a bracing nitpick. 2006-02-24 22:12:32 +00:00
benjamin%smedbergs.us f1033b53d1 Bug 78081 - don't export intermediate libs, initial tree-wide changes blanket-r=mento 2006-02-24 17:50:29 +00:00
daumling%adobe.com 721e215256 Bug 327869: Implement brute-force fix for Windows strftime() 2006-02-24 03:37:46 +00:00
daumling%adobe.com e156716b4c Bug 328373: Create local variable and copy value to suppress compiler warning 2006-02-24 03:29:57 +00:00
mrbkap%gmail.com e47a41d74c Detect cycles even when we're inserting a degenerate list of length 1. bug 328249, r=brendan 2006-02-23 23:00:23 +00:00
mrbkap%gmail.com 33c9c1bc78 Don't wrap E4X values in XPCWrappedJS since E4X objects have weird semantics, which cause us trouble both elsewhere in XPConnect, and even in the DOM code. bug 327697, r=brendan sr=shaver 2006-02-23 22:21:08 +00:00
igor%mir2.org 53c59130cd Bug 328294: After enumeration that removes hashtable entries,
the hashtable is shrinked only once. r=brendan
2006-02-23 22:20:27 +00:00
igor%mir2.org 4d46f22fac Bug 328106: Removal of HT_ENUMERATE_UNHASH. Its implementation had a bug
for 11 years which is a good demonstration that it has never been used.
2006-02-23 10:11:17 +00:00
timeless%mozdev.org a279d689e5 Bug 106386 Correct misspellings in source code
r=bernd rs=brendan
2006-02-23 09:36:43 +00:00
mrbkap%gmail.com bfb3311cf7 Propagate the proper fp, fun, and variables object to special frames so as to not confuse the optimizer and split the common code that does this into a common function from the 3 places that currently do it. r=brendan 2006-02-23 02:17:04 +00:00
brendan%mozilla.org 4d8776d822 Fix botch in JS_InitClass that passed several rounds of code review. 2006-02-22 23:03:37 +00:00
mrbkap%gmail.com 13a9d56676 The end request needs to happen before the context gets destroyed -- use C++ to ensure that. bug 328044, r+sr=brendan 2006-02-22 19:58:31 +00:00
mrbkap%gmail.com 5c4b8bd48a The end request needs to happen before the context gets destroyed -- use C++ to ensure that. bug 328044, r+sr=brendan 2006-02-22 19:48:45 +00:00
brendan%mozilla.org da4fef3700 Fix an initially hard-to-see bug reported by daumling@adobe.com, plus another one mentioned by mrbkap (327941, r=mrbkap). 2006-02-22 06:09:09 +00:00
brendan%mozilla.org a6090f1c26 Separate gcMaxBytes from gcMaxMallocBytes and unconstrain the former for Mozilla code (317865, r/sr=mrbkap/shaver). 2006-02-22 05:52:13 +00:00
mrbkap%gmail.com ec46e80305 Don't assume that JS_ValueToString is infallible. bug 327897, r=brendan 2006-02-22 03:51:09 +00:00
mrbkap%gmail.com e3ad67960d If the wrapper has no prototype, but we have a proto, then it can't be our target wrapper, so skip it. bug 327597, r=jst sr=bzbarsky 2006-02-22 03:48:33 +00:00
brendan%mozilla.org 8e59e16322 Fixed typo that left JS_CallFunctionName returning true always, not ok (328037, r=mrbkap). 2006-02-22 03:06:00 +00:00
mrbkap%gmail.com 735e2002df If the this object in a call is not an XPCNativeWrapper, ignore the call instead of crashing. bug 327686, r=brendan sr=bzbarsky 2006-02-22 02:25:24 +00:00
dbaron%dbaron.org a584e245a7 Root new function objects before calling JS_SetReservedSlot on them. b=307560 r=brendan sr=jst 2006-02-22 00:50:47 +00:00
dbaron%dbaron.org 1fcd6ec0c6 Root cloned function object before calling WrapFunction on it. b=327716 r=jst sr=brendan 2006-02-22 00:49:55 +00:00
mrbkap%gmail.com 509c0fba2f Support ppc<->x86 cross builds for Mac OS X. bug 322578, patch from Mark Mentovai <mark@moxienet.com>, r=bsmedberg r=cls sr=bryner 2006-02-21 22:03:20 +00:00
igor%mir2.org b5b71e3898 Bug 327129: To calculate ceil(log2(n))/floor(log2(n)) under GCC >=3.4 use
__builtin_clz or count-leading-zeros. r=brendan
2006-02-21 11:28:28 +00:00
igor%mir2.org c49c6737a6 Bug 327896: JS_STATIC_ASSERT is now used to assert constant conditions during compilation time instead of waiting for runtime to check for JS_ASSERT. r=brendan 2006-02-21 10:27:50 +00:00
igor%mir2.org 15106141bf Bug 327129: Reverting the previous commit as it broke GCC builds of
firefox.
2006-02-20 10:12:03 +00:00
igor%mir2.org 9b1c4989bd Bug 327129: To calculate ceil(log2(n))/floor(log2(n)) under GCC use
__builtin_clz or count-leading-zeros. r=brendan
2006-02-20 08:57:53 +00:00
daumling%adobe.com b680219a3b Bug 232182: Added copying of Unicode elements in js_ExpandErrorArguments() 2006-02-20 07:44:25 +00:00
daumling%adobe.com 521b468de5 Bug 318402: Replaced JS_STRINGS_ARE_UTF* with JS_C_STRING_ARE_UTF8 2006-02-19 17:52:56 +00:00
daumling%adobe.com bbc897b35a Bug 315974: JSprintf functions cannot print jschar characters and strings 2006-02-18 07:13:16 +00:00
daumling%adobe.com 4f5f3e33cb Bug 326201: Added build rule for jskwgen.o/.obj 2006-02-18 06:33:31 +00:00
mrbkap%gmail.com cf5b965f72 We won't always find the prototype property, especially if our __proto__ has been cut off. bug 327608, r=brendan 2006-02-18 03:02:32 +00:00
mrbkap%gmail.com c8b08f2c7d Protect the sandbox object from GC and make the sandbox code request-safe. bug 265740, r=brendan sr=jst 2006-02-18 03:00:33 +00:00
mrbkap%gmail.com 9fb5725b97 Make toString mirror GetOrSetProperty in how it gets wrapped object's toString function. bug 323367, r=bzbarsky sr=jst 2006-02-18 00:11:32 +00:00
brendan%mozilla.org a13ac56a77 Fix duplicate kid overwrite case that avoided cycle detection (327564, r=mrbkap). 2006-02-17 21:40:04 +00:00
mrbkap%gmail.com 7242914d8c Hold a reference to the regexp that we're using so that it doesn't go away. bug 327170, r=brendan 2006-02-15 01:24:32 +00:00
igor%mir2.org 2fb3331863 BUG 321985: During xdr decoding of atoms avoid creation of JSString for
the already existing atoms. r=brendan
2006-02-14 09:33:45 +00:00
timeless%mozdev.org 1066f2b0fc Bug 326985 jsinterp.c(975) : warning C4013: 'OBJECT_IS_XML' undefined; assuming extern returning int
r=mrbkap
2006-02-14 00:20:44 +00:00
timeless%mozdev.org 1491ad6757 Bug 326223 JS_PARANOID_REQUEST dies in spidermonkey (JS_NewContext)
r=brendan
2006-02-09 08:14:29 +00:00
timeless%mozdev.org 0d03b1ed0e Bug 293881 add version to jsshell build() if JS_VERSION < 150
r=mrbkap
2006-02-09 06:03:38 +00:00
timeless%mozdev.org 6355667544 Bug 325780 refactor debug_brendan/debug_notme
r=shaver
2006-02-09 06:02:02 +00:00
timeless%mozdev.org fb6ab713d5 Bug 326223 JS_PARANOID_REQUEST dies in spidermonkey (JS_NewContext)
r=brendan
2006-02-09 05:51:16 +00:00
brendan%mozilla.org 85143d2ad5 Fix JSOP_CLOSURE failure to set todo to do-nothing value (326453, r=mrbkap). 2006-02-08 20:53:37 +00:00
brendan%mozilla.org 9043b4f242 Another followup fix. 2006-02-07 21:53:54 +00:00
brendan%mozilla.org 20ef4058bf Better followup fix for 325960 (r=mrbkap). 2006-02-07 21:50:47 +00:00
mrbkap%gmail.com 5fe75dd3cd Initialize the new frame's pc as well. Followup patch for bug 325960, r=shaver 2006-02-07 21:37:26 +00:00
mrbkap%gmail.com e9a0b35561 Protect js_ConstructObject callers from gc hazards and some other stuff. bug 325425, r=igor sr=brendan 2006-02-07 20:09:53 +00:00
brendan%mozilla.org d33592f8f7 Avoid nesting js_Interpret for heavyweight and other hard-case interpreted function calls (325960, r=mrbkap). 2006-02-07 19:51:29 +00:00
brendan%mozilla.org c340343cf7 Long-missing wait for GC supplied by Michael Daumling <daumling@adobe.com> (325521, r=me). 2006-02-07 08:25:23 +00:00
mrbkap%gmail.com c1ccab3a4d Don't make bad assumptions about finding properties. Mutable proto chains combining with cloned function objects can cause properties to not actually be found. bug 319683, r=brendan 2006-02-07 02:05:52 +00:00
brendan%mozilla.org 3f2984ca83 Fix misnamed formal parameter glitch. 2006-02-05 04:15:22 +00:00
cbiesinger%web.de a898e666b8 bug 183156 remove *UCS2* functions, replacing them with *UTF16* ones
r+sr=darin
2006-02-03 14:18:39 +00:00
mrbkap%gmail.com e8c3bd32f6 If a function becomes heavyweight in the middle of an inline call, remember to pop the call object when it returns. bug 325540, r=brendan 2006-02-03 01:19:31 +00:00
brendan%mozilla.org ba0a9cb692 Arghhhhhh. 2006-02-02 19:55:20 +00:00
brendan%mozilla.org 5f77e86780 Add purely stack allocated rooting facility (325269, r=igor). 2006-02-02 06:46:32 +00:00
mrbkap%gmail.com d96bbafedd Fix a stupid mistake where an error return would cause us to not destroy a script. no bug, r=brendan 2006-02-01 03:18:17 +00:00
mrbkap%gmail.com c7cd04ba28 Actually fill the setting cache when we get boolean properties. bug 324688, r=brendan 2006-02-01 00:25:50 +00:00
brendan%mozilla.org fcc712a6cf Fix foo += bar for undefined foo to throw, not bind foo to undefined (321757, r=mrbkap). 2006-01-31 20:53:30 +00:00
pavlov%pavlov.net 5767901ade attempt to fix vc6 build bustage 2006-01-31 03:33:02 +00:00
jst%mozilla.jstenback.com 6d2a2d10dd Landing fix for bug 323156. XPCDispConvert::JSArrayToCOMArray does not convert empty arrays correctly. Patch by gdavis@nsisoftware.com, r=dbradley@gmail.com, sr=jst@mozilla.org 2006-01-31 01:47:01 +00:00
jst%mozilla.jstenback.com b5f13791d9 Landing fix for bug 310102. XPCDispTearOff::Invoke() processes DISPARAMS in wrong direction. Patch by gdavis@nsisoftware.com, r=dbradley@gmail.com, sr=jst@mozilla.org 2006-01-31 01:40:54 +00:00
jst%mozilla.jstenback.com 24d079ef25 Landing fix for bug 310097. XPCDispConvert will not convert SAFEARRAY of VARIANT. Patch by gdavis@nsisoftware.com, r=dbradley@gmail.com, sr=jst@mozilla.org 2006-01-31 01:38:52 +00:00
igor%mir2.org 85c2e9531f Bug 322772: Replacing js_CompareStrings by js_EqualStrings in implementation
of "==", "!=", "===" and "!==". r=brendan r=mrbkap
2006-01-30 05:58:17 +00:00
mrbkap%gmail.com 3a6c3608fe Braces and style patrol (no bug, implicit-r=brendan) 2006-01-28 01:27:33 +00:00
brendan%mozilla.org 9e8a862123 Fix span-dependent instruction selection to work with incremental compilation (324650, r=mrbkap). 2006-01-26 21:05:40 +00:00
igor%mir2.org 68682df68c Bug 319719: The previous commit still managed to break builds on Unix-like
systems where PATH does not include ".". The fix is to explicitly prefix
with ./ the command to execute.
2006-01-26 10:32:50 +00:00
igor%mir2.org 55b099a9d3 Bug 319719: JS scanner checks for keywords using pregenerated C source
avoiding the cost of atomizing keyword strings. This is an updated version
of the previous rather bad commit to address Makefile issues. r=brendan
2006-01-26 08:47:51 +00:00
igor%mir2.org f62a42d5af Bug 322772: I added js_EqualStrings which is a faster version of
js_CompareStrings when testing only for string equality. r=brendan
2006-01-26 08:01:54 +00:00
brendan%mozilla.org 877beb7aaa Add JS_LeaveLocalRootScopeWithResult API (324592, r=mrbkap). 2006-01-26 07:19:25 +00:00
mrbkap%gmail.com 6cebcbe720 bug 324694: Reparameterize js_CheckPrincipalsAccess to avoid eager calls to js_AtomToPrintableString. r=brendan 2006-01-25 22:54:34 +00:00
mrbkap%gmail.com 7d743ba10e bug 323501: Having a scripted caller is important. r=brendan 2006-01-25 19:53:14 +00:00
mrbkap%gmail.com bb46c284d2 bug 324422: Protect things from being garbage collected out from under us. r=brendan 2006-01-25 02:27:59 +00:00
mrbkap%gmail.com 889e52cdc2 bug 323979: Check the correct parse node for arity. r=shaver 2006-01-25 00:23:00 +00:00
igor%mir2.org cf4ba28aff Bug 291003: fdlibm no longer used on Linux as recent C library there do
the job on its own. r=shaver
2006-01-24 21:40:12 +00:00
mark%moxienet.com 142f6828fb 323337 Use fastcall on Mac OS X x86: __attribute__(regparm(3)). r=josh 2006-01-23 20:11:08 +00:00
igor%mir2.org e9bcbae347 Reverting commit for bug 319719: Makefile changes broke too much builds. 2006-01-22 21:08:05 +00:00
brendan%mozilla.org f34c15c44a Attempt to fix Windows bustage. 2006-01-22 06:56:34 +00:00
igor%mir2.org eb120e2ba0 Bug 319719: JS scanner checks for keywords using pregenerated C source
avoiding the cost of atomizing keyword strings. r=brendan
2006-01-22 01:14:20 +00:00
brendan%mozilla.org b13a6f69c6 Fix comment glitches. 2006-01-21 15:54:13 +00:00
brendan%mozilla.org d8363b5310 Fix DEBUG_brendan code to track Igor's change. 2006-01-20 21:37:45 +00:00
mrbkap%gmail.com 72b2a9518a Make this file vim-friendly. 2006-01-19 01:00:49 +00:00
igor%mir2.org 9ec3479dec Bug 323765: VarPrefix is thread-safe now. r=brendan 2006-01-18 11:17:21 +00:00
mrbkap%gmail.com f4a1ec8ec0 bug 319872: Don't free the sentinal value. r=brendan 2006-01-18 02:22:55 +00:00
shaver%mozilla.org a7432b61fa Bug 321021: Add option to preserve exceptions thrown from outermost frames,
rather than convert to error reports.  r=mrbkap, sr=brendan.
2006-01-18 00:29:35 +00:00
igor%mir2.org 0926475d8d Bug 294499: GC directly calls malloc instead of using JSArena for paged
allocation to avoid overhead of arena headers that GC does not use. r=brendan
2006-01-17 01:26:35 +00:00
brendan%mozilla.org 005ca0553f Remove bogus arena-pool alignment parameters (323529, r=igor). 2006-01-15 21:57:26 +00:00
brendan%mozilla.org 92591c27c3 Fix uintN/size_t 64-bit hazards (323510, r=daumling). 2006-01-15 17:52:42 +00:00
brendan%mozilla.org 3e31bd8732 Update DUMP_CALL_TABLE (NPOTB) code to track 322001. 2006-01-14 17:49:58 +00:00
igor%mir2.org eacbc7d25d Fixing bug 323267:
Sweep script's filenames after the main GC sweep loop so the filenames are
still available for a destroy script hook. r=brendan
2006-01-14 02:30:49 +00:00
brendan%mozilla.org 9a6d69b894 Add missing null check (323338, r=mrbkap). 2006-01-14 01:09:42 +00:00
brendan%mozilla.org eaa76db031 Fix errors that were JSEXN_NONE to have a valid exception type, so that they can be thrown by default (e.g., strict warnings with the werror option set as well as strict; 323314, r=mrbkap). 2006-01-13 22:20:30 +00:00
timeless%mozdev.org 0fb55318b1 Bug 106386 Correct misspellings in source code
patch by philippuryear@gmail.com r=timeless rs=brendan
2006-01-12 07:57:31 +00:00
timeless%mozdev.org ab5b0c0c18 Bug 320951 ASSERTION: file too large: 'Error', mozJSComponentLoader.cpp line 1084
r=dbradley sr=darin
2006-01-11 08:26:44 +00:00
brendan%mozilla.org 4df45617c5 80th column policing. 2006-01-11 05:23:29 +00:00
brendan%mozilla.org b2a8bfb115 Fix typo in enum tag. 2006-01-11 05:18:30 +00:00
mrbkap%gmail.com 4d18952043 bug 322971: Fix this botched return value. r+sr=shaver 2006-01-10 21:43:17 +00:00
mrbkap%gmail.com 932e99f6fc bug 322836: negative lookahead assertions don't always work correctly (when the first op is simple). r=brendan 2006-01-10 18:28:56 +00:00
brendan%mozilla.org 3e530ed8fc Remove deprecated with statement usage strict warning (322430, r=shaver). 2006-01-09 20:53:06 +00:00
igor%mir2.org f4a0c71541 Implementing bug 322001:
JSFunction is shrinked via removal of nref field
and moving interreter-only or native-only fields into union. r=brendan
2006-01-09 08:26:26 +00:00
brendan%mozilla.org 918c1d610b Allow set-call, grouped, and e4x LHS in for-in loop (321874, r=mrbkap). 2006-01-09 05:14:52 +00:00
mrbkap%gmail.com acc8dc3997 bug 321522: The sandbox object needs to come from a new context, not the old
context. r=shaver sr=brendan
2006-01-06 22:28:18 +00:00
brendan%mozilla.org e2e266e986 Better GC_MARK_DEBUG code (315783, NPOTB but r=bz). 2006-01-06 06:32:11 +00:00
shaver%mozilla.org b66707bb94 bug 315783: fix GC_MARK_DEBUG crash when marking E4X text nodes, r=mrbkap 2006-01-06 05:28:19 +00:00
brendan%mozilla.org 3af02e29e1 Remove e4x singleton entrainment hazards and hide naked * as value (322499, r=mrbkap). 2006-01-06 02:08:35 +00:00
brendan%mozilla.org 44beed5fa3 Avoid stupid GCC warning introduced by last checkin. 2006-01-05 20:32:05 +00:00
brendan%mozilla.org 9a542ff0a2 Fix up disassembly of 24-bit-immediate formats (DEBUG-only 316862, r=shaver). 2006-01-04 05:53:16 +00:00
brendan%mozilla.org 628c8f51b5 Fix bindname/setname extension to 24-bit immediate atom index (321971, r=shaver). 2006-01-04 05:42:21 +00:00
brendan%mozilla.org 5341e7479c Fix from Igor Bukanov <igor.bukanov@gmail.com> to reorder allocations to avoid pigeon-hole problem (322045, r=me). 2006-01-03 01:41:46 +00:00
joshmoz%gmail.com 31481fbe26 ECMA and C99 specs do not agree on all results for pow(). When using libm for JavaScript math functions, we need to convert libm's differing C99 results to ECMA-compliant results. This change might be all we need to get our libm implementation ECMA compliant, so we can examine moving js math functions over to OS libraries on all platforms. b=320770 r=mento sr=brendan 2005-12-29 20:19:54 +00:00
brendan%mozilla.org 2af0d6a3d8 Fix lvalue=>rvalue handling todo with parenthesization and assignment (320032, r=mrbkap). 2005-12-28 05:36:29 +00:00
brendan%mozilla.org 9369de1fb5 Assertion tweaks to find dropped exceptions (NPOB, 321446). 2005-12-27 06:35:18 +00:00
brendan%mozilla.org ce36b1f245 Fix failure to propagate failure in regexp_exec_sub (321446, r=mrbkap). 2005-12-27 02:53:04 +00:00
brendan%mozilla.org 078f04b2ca Fix XML name scanner to allow { after : (321549, r=mrbkap). 2005-12-26 21:21:50 +00:00
brendan%mozilla.org 7b73df9e89 Nit-pick a doubled blank line. 2005-12-24 07:34:16 +00:00