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

105 Коммитов

Автор SHA1 Сообщение Дата
Boris Zbarsky 1e74e69eff Bug 705280 - (2/2) Custom quickstub nsIDOMHTMLDocument.head and change nsIDOMHTMLDocument.body custom quickstub. r=mrbkap 2011-11-29 17:32:31 +01:00
Mounir Lamouri 654799ac3b Bug 705280 - (1/2) Quickstub nsIDOMHTMLDocument.head. r=mrbkap 2011-11-29 17:30:13 +01:00
Ryan VanderMeulen 13f1ad255a Bug 705401 - Remove the rest of TraceVis. r=dvander 2011-11-28 16:08:25 -08:00
Ryan VanderMeulen c8b2d72d22 Bug 705356 - Remove JSOPTION_JIT and JSOPTION_PROFILING. r=dvander 2011-11-28 14:57:31 -08:00
Terrence Cole b08432d55e Bug 699279 - Run GC_SHRINK collection cycle when under memory pressure; r=mrbkap
GC_SHRINK is a fairly new type of GC that does more aggressive cleanups than a
normal GC.  This patch makes the browser run the GC in this mode when under
memory pressure, or when the user pushes the Minimize Memory Usage button when
on the about:memory page.

--HG--
extra : rebase_source : abdd11ee5fa5eb0e3d58122d3d72e98328d47668
2011-11-09 18:14:11 -08:00
Nicholas Nethercote 6c6258e659 Bug 698968 - Add mallocSizeOf functions and start using them. r=jlebar,bhackett,jfkthame, sr=bz. 2011-11-27 19:03:14 -08:00
Mounir Lamouri 9ea9755eee Backout 2040980c0792 (bug 705280) to investigate perf regression on dromaeo v8 deltablue. 2011-11-27 16:59:10 +01:00
Ms2ger 69f89f1bf7 Bug 705320 - Use IDL for xpcIJSWeakReference.get; r=bholley 2011-11-26 11:32:03 +01:00
Ms2ger 82e462084f Bug 701467 - Remove JS_TRUE/JS_FALSE from xpconnect; r=bholley 2011-11-26 11:05:59 +01:00
Bobby Holley c972e11505 Bug 692342 - Get rid of the large and unnecessary table-driven reflectability detector. r=mrbkap
The XPIDL machinery should never output an invalid configuration here, so all this checking is unnecessary. The only thing we have to watch out for is native types, which all get shoehorned into T_VOID. So let's make this a simple check.
2011-11-25 17:09:07 -08:00
Bobby Holley bd60d3bec1 Bug 692342 - Assert !IsArithmetic() rather than IsPointer(). r=mrbkap
JSval is the only different between the two, and we handle that above.
2011-11-25 17:09:07 -08:00
Bobby Holley e50c94594b Bug 692342 - Coalesce cleanup flagging even further. r=mrbkap
This eliminates another pesky use of IsPointer().
2011-11-25 17:09:07 -08:00
Bobby Holley e651e33635 Bug 692342 - Assert against arrays of jsvals, since we don't handle them. r=mrbkap 2011-11-25 17:09:07 -08:00
Bobby Holley 913bef7142 Bug 692342 - Coalesce cleanup flagging within ConvertDependentParam. r=mrbkap
The only change in functionality here is that we flag for cleanup on 'inout' sized strings in addition to 'in' sized strings. I'm pretty sure we want that.
2011-11-25 17:09:07 -08:00
Bobby Holley cfa9352217 Bug 692342 - Move some things below Do datum_type resolution in ConvertDependentParam. r=mrbkap 2011-11-25 17:09:07 -08:00
Bobby Holley 1c570b90b8 Bug 692342 - Reorder in/out/inout handling in XPCWrappedNative parameter conversion. r=mrbkap
Apologies for the copy paste here. Fixing that will require some more serious re-architecting.
2011-11-25 17:09:07 -08:00
Bobby Holley 143f47b2ce Bug 692342 - Move a call to SetValNeedsCleanup() to an equivalent location. r=mrbkap 2011-11-25 17:09:07 -08:00
Bobby Holley 5a68ab0b1a Bug 692342 - Remove check for !IsInterfacePointer(), given the code a few lines above. r=mrbkap 2011-11-25 17:09:07 -08:00
Bobby Holley 2af6e983bc Bug 692342 - Reindentation from previous patch (no other changes). r=mrbkap 2011-11-25 17:09:07 -08:00
Bobby Holley 389702f322 Bug 692342 - Create a ConvertDependentParam(i) method to match ConvertIndependentParam(i) (modulo reindentation). r=mrbkap 2011-11-25 17:09:07 -08:00
Bobby Holley 20149b3bf7 Bug 692342 - Simplify cleanup code in ConvertIndependentParameter(). r=mrbkap
We're not dealing with dependent parameters here. So as far as I can tell, the only behavior change that this introduces is that we flag for cleanup on T_WCHAR_STR in addition to T_CHAR_STR. This seems like something we probably want.
2011-11-25 17:09:07 -08:00
Bobby Holley c93cd8301e Bug 692342 - Introduce deprecated_IsPointer() to handle the cases that are too mucky to figure out right now. r=mrbkap 2011-11-25 17:09:06 -08:00
Bobby Holley d3ba9f6532 Bug 692342 - Remove the obviously superfluous uses of IsPointer(). r=mrbkap
These are the easy cases, which all fall into one or more of the following categories:
* A check-and-throw, followed by a switch whose default case also throws
* A check of IsPointer() &&-ed with or tightly enclosing a check that implies IsPointer()
* A check of something clearly enforced by the XPIDL compiler
2011-11-25 17:09:06 -08:00
Bobby Holley 356768725f Bug 692342 - Remove use of IsReference() within XPConnect. r=mrbkap
All we're doing is checking that various types aren't flagged as reference. But xpidl makes sure this doesn't happen, so we should just trust it instead.
2011-11-25 17:09:06 -08:00
Mounir Lamouri 1b8da3c31c Bug 705280 - Quickstub nsIDOMHTMLDocument.*. r=mrbkap
Currently not all methods of nsIDOMHTMLDocument were quickstubbed which means
some methods like document.head were excessivly slow (see bug report).
2011-11-26 01:24:08 +01:00
Makoto Kato e999cc59bc Bug 655658 - NetUtil.readInputStreamToString should have aCharset argument as optional. r=sdwilsh, sr=bz 2011-11-25 11:23:41 +09:00
Andrew McCreight c1272e0158 Bug 668855, part 6: test weak maps and the cycle collector. r=gal 2011-11-24 07:35:57 -05:00
Andrew McCreight 1e19f81390 Bug 668855, part 3: hook up CC to JS WeakMap callback. r=peterv 2011-11-24 07:35:56 -05:00
David Anderson 17e871eaeb Remove browser prefs for the tracer (bug 698201 part 7, r+sr=gal). 2011-11-22 17:41:43 -05:00
David Anderson bd3e4935ce Remove tracer from XPConnect (bug 698201 part 6, r=bholley). 2011-11-22 17:41:43 -05:00
Steve Fink 6b17290ff3 Bug 692722 - implement xpcshell -d for running in debug mode (r=mrbkap)
--HG--
extra : rebase_source : e54e3ccd8dc9da4e75629963f6702b4d3e7a95b2
2011-10-06 23:34:21 -07:00
Nicholas Nethercote 6511eb17d6 Bug 700992 - Fix GCC compile warnings in XPConnect. r=bholley,gal. 2011-11-20 20:10:58 -08:00
Bill McCloskey 35e5e0bb95 Bug 703699 - Fix use-after-free problem with write barriers and XPConnect (r=bhackett) 2011-11-18 22:35:17 -08:00
Ed Morley bb0c21a5d1 Merge last green changeset of mozilla-inbound to mozilla-central 2011-11-16 11:02:43 +00:00
Ms2ger 5ba4677d3d Bug 672796 - Move MOZILLA_GUARD_OBJECT_NOTIFIER_* out of AutoRestore.h; r=khuey 2011-11-16 08:50:19 +01:00
Ms2ger 935180aaad Bug 702106 - Remove xpc_CloneJSFunction; r=bholley 2011-11-16 08:50:18 +01:00
Ms2ger 1fe630e2fe Bug 701735 - xpc_qsJsvalToWcharStr shouldn't const_cast; r=bz 2011-11-16 08:50:18 +01:00
Terrence Cole 7853712ab0 Bug 702480 - Fix description of js-gc-heap-unused-fraction; r=njn
--HG--
extra : rebase_source : bf479d6df1b903b148b807757aa8702aa2db9a8d
2011-11-14 17:28:27 -08:00
Bill McCloskey 213017df51 Bug 641027 - Add snapshot-at-the-beginning write barriers for incremental GC (r=luke,bhackett) 2011-10-25 16:07:42 -07:00
Justin Lebar c8fe01fc69 Bug 586010 - Send dump() output to Android device log. r=bz
--HG--
extra : rebase_source : f1712d831aaa6fbd8e1bfd6060fbb4aa951ccb74
2011-11-09 19:27:08 -05:00
Boris Zbarsky 947e01ba92 Bug 699528. Make pausing/unpausing JSD try to turn off/on debug mode as needed. r=sfink
The new boolean argument to SetDebugModeWhenPossible is needed because if we allow sync-disable of debug mode we seem to crash when loading pages with Firebug active.
2011-11-09 16:11:39 -05:00
Peter Van der Beken d424202e66 Bug 700668 - Don't enumerate all compartments for every traversal of a XPCWrappedNative. r=mrbkap. 2011-11-08 18:06:40 +01:00
Boris Zbarsky f6cc9049b5 Bug 699826. Fix nodelist access out of bounds to correctly forward to the proto. r=peterv 2011-11-08 07:59:38 -05:00
Luke Wagner d542a26a63 Bug 650411 - assert in debug/release builds that JSRuntime is only used in a single-threaded manner (r=jorendorff,sr=dmandelin)
--HG--
extra : rebase_source : f18561fff556332789e05623ab0cec2e7faacf78
2011-07-01 14:11:31 -07:00
Ed Morley e2f4183574 Bug 700166 - Hg rm dom/interfaces/threads/ since it's no longer built; r=bent 2011-11-07 15:44:11 +00:00
Peter Van der Beken 728e26c68b Bug 699796 - Note objects holding JSScript as roots in the CC. r=igor.
--HG--
extra : rebase_source : 68ef72cd709aed89ee6a1cc30bd6079d3e1ddf3d
2011-11-07 13:57:46 +01:00
Peter Van der Beken be29e3d8a0 Bug 695867 - Crash [@ LookupPropertyById] with getPropertyDescriptor returning a NodeList. r=bz.
--HG--
extra : rebase_source : 7647c232594ab918b9c4488e8cb56d77dfea9b42
2011-10-27 19:31:37 +02:00
Peter Van der Beken 1d05a88d12 Bug 684938 - Proxy nsXPCWrappedJS::Release to the main thread. r=mrbkap.
--HG--
extra : rebase_source : faf9c46616c52bc03b776a4aae8fd3f87e11f132
2011-09-14 08:44:27 -07:00
Peter Van der Beken 451166e8e7 Bug 697643 - Crash [@ JS_IsExceptionPending] modifying a live NodeList. r=bz.
--HG--
extra : rebase_source : 1d2e5e17c76a04a88468d976e89576d127e4e54f
2011-10-27 19:39:03 +02:00
Bobby Holley b74a05397f Bug 677788 - Remove use of length_is xpt value from gecko. r=mrbkap 2011-11-06 13:32:25 +01:00