Commit Graph

251 Commits

Author SHA1 Message Date
Andrew Quartey
faa8be8d82 Bug 706010 - Remove NS_SPECIALIZE_TEMPLATE and HAVE_CPP_MODERN_SPECIALIZE_TEMPLATE_SYNTAX; r=khuey a=cleanup/removal 2011-12-13 14:17:59 +00:00
Ms2ger
ac9df022f7 Bug 709603 - Remove unused variables 'type' in CallMethodHelper::Get{ArraySize,InterfaceType}FromParam; r=bholley a=ehsan 2011-12-13 09:49:31 +11:00
Nicholas Nethercote
688c469bc9 Bug 704400 - Implement --enable-dmd. r=khuey. 2011-12-08 19:09:36 -08:00
Mike Hommey
57f9bdde28 Bug 695843 part 9 - Use FileLocations in the component manager. r=bsmedberg 2011-11-08 18:10:51 +01:00
Mike Hommey
1c5ea5be3e Bug 695843 part 8 - Properly handle jar-in-jars when importing modules. r=mrbkap 2011-12-08 11:03:36 +01:00
Mike Hommey
1d5e489323 Bug 695843 part 7 - Use the URI string as the key for the various mozJSComponentLoader hashtables. r=mrbkap 2011-11-08 18:08:49 +01:00
Bill McCloskey
b931f019bd Bug 707051 - Change MarkChildren for shapes (r=igor) 2011-12-07 09:52:16 -08:00
Blake Kaplan
dc51d7dcc5 Bug 708215 - Report errors from the safe JS context. r=bent 2011-12-07 18:12:20 +08:00
Bobby Holley
9171552a19 Bug 706301 - Tests. r=mrbkap 2011-12-06 11:05:26 -08:00
Bobby Holley
bbdbbf662a Bug 706301 - Don't cache own properties on XrayProxy. r=mrbkap 2011-12-06 11:05:26 -08:00
Nicholas Nethercote
6c8107ba0c Bug 704723 - Add memory reporter for XPConnect. r=mrbkap. 2011-12-05 14:24:28 -08:00
Ed Morley
1ffbd8940f Merge mozilla-central and mozilla-inbound 2011-12-04 15:04:54 +00:00
Ms2ger
18fa4b8800 Bug 705357 - Use IDL for Components.utils.getGlobalForObject; r=bholley 2011-12-03 22:50:16 +01:00
Ms2ger
7835d6610a Bug 705333 - Use IDL for nsJSCID::{CreateInstance,GetService}; r=bholley 2011-12-03 22:50:16 +01:00
Kyle Huey
a441b10233 Merge b-s to m-c. 2011-12-03 16:27:21 -05:00
Brian Hackett
356489907c Merge MC -> JM 2011-12-03 10:34:26 -08:00
Antti Haapala
55185ebf5e Bug 699156: Support TypedArrays in XPConnect. r=bholley,evilpie 2011-12-03 09:33:20 -05:00
Brian Hackett
d3db56074b Merge MC -> JM 2011-12-01 11:51:09 -08:00
Brian Hackett
4fa421bf15 Merge MC -> JM 2011-11-30 12:45:27 -08:00
Brian Hackett
73956e1912 Merge MC -> JM 2011-11-26 15:03:20 -08:00
Brian Hackett
586dafd5c1 Add about:memory reporters for per compartment shape tables, bug 704372. 2011-11-21 20:29:05 -05:00
Brian Hackett
9a1b4e584a Merge mozilla-central and mozilla-inbound 2011-12-03 14:36:54 -08:00
Makoto Kato
c012763b5c Bug 655658 - NetUtil.readInputStreamToString should have aCharset argument as optional. r=sdwilsh, sr=bz 2011-11-25 11:23:41 +09:00
Andrew McCreight
4453584b8b Bug 668855, part 6: test weak maps and the cycle collector. r=gal 2011-11-24 07:35:57 -05:00
Brian Hackett
299ac2bf87 Merge MC -> JM 2011-11-18 18:02:40 -08:00
Brian Hackett
2f44413ef8 Mark uncacheable prototypes on objects whose prototype has dynamically changed, bug 703047. 2011-11-18 13:28:07 -08:00
Brian Hackett
fdac79a1f2 Avoid shape changes on XPConnect wrapper prototype changes, bug 703047. 2011-11-16 12:52:47 -08:00
Brian Hackett
57fdfc58fd Clear XPCWrappedNativeScope fields to avoid accessing freed arenas during destruction, no bug. r=billm 2011-11-14 17:06:53 -08:00
Ed Morley
1c87228e23 Merge last green changeset of mozilla-inbound to mozilla-central 2011-11-16 11:02:43 +00:00
Ms2ger
d2ea6246bf Bug 672796 - Move MOZILLA_GUARD_OBJECT_NOTIFIER_* out of AutoRestore.h; r=khuey 2011-11-16 08:50:19 +01:00
Ms2ger
b97f7f7801 Bug 702106 - Remove xpc_CloneJSFunction; r=bholley 2011-11-16 08:50:18 +01:00
Ms2ger
2424957995 Bug 701735 - xpc_qsJsvalToWcharStr shouldn't const_cast; r=bz 2011-11-16 08:50:18 +01:00
Steve Fink
d069c50175 Bug 700202 - Propagate exceptions from ConstructSlimWrapper (r=bholley)
--HG--
extra : rebase_source : 8ce6d12e100a2e3639c4d1fddbadee25e6dd12cf
2011-11-21 09:28:19 -08:00
Nicholas Nethercote
f1b6f27607 Bug 704391 - Add more JS runtime memory reporters and fix the existing ones. r=luke. 2011-12-01 19:08:20 -08:00
Bobby Holley
f2a42e56dd Bug 705875 - Check for null IID pointers and references in XPCConvert. r=khuey
This is a regression from http://hg.mozilla.org/mozilla-central/rev/c428312abbc7 . The rest of the changes in that patch should be fine.
2011-12-01 18:24:28 -08:00
Felix Fung
61c8c22ee9 Bug 498543 - Null-checking JS_THIS_OBJECT Results. r=jwalden 2011-12-01 13:30:28 -08:00
Brian Hackett
3afca6b036 Merge MC -> JM 2011-11-14 09:13:33 -08:00
Brian Hackett
150d8e2a1c Add missing #include, no bug. 2011-11-10 18:30:52 -08:00
Brian Hackett
4c9a62a527 Merge MC -> JM 2011-11-10 12:06:26 -08:00
Brian Hackett
e97942a3eb Add GetGlobalForObjectCrossCompartment for use in XPConnect, no bug. r=luke 2011-11-09 18:42:42 -08:00
Justin Lebar
a19acfd732 Bug 586010 - Send dump() output to Android device log. r=bz
--HG--
extra : rebase_source : f1712d831aaa6fbd8e1bfd6060fbb4aa951ccb74
2011-11-09 19:27:08 -05:00
Brian Hackett
5226910bd6 Replace uses of GetObjectGlobal with JS_GetGlobalForObject, no bug. 2011-11-09 10:34:54 -08:00
Brian Hackett
13b09a53da Address bug 638316 and bug 694247 review comments, r=luke. 2011-11-09 09:52:59 -08:00
Boris Zbarsky
233aceff84 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
Terrence Cole
2dcbf80d34 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
Brian Hackett
dbfdcee71e Add memory reporter for base shapes, bug 699210. 2011-11-02 13:32:05 -07:00
Brian Hackett
d24ffb5376 Merge MC -> JM
--HG--
rename : js/src/frontend/BytecodeGenerator.cpp => js/src/frontend/BytecodeEmitter.cpp
rename : js/src/frontend/BytecodeGenerator.h => js/src/frontend/BytecodeEmitter.h
rename : js/src/frontend/Parser.cpp => js/src/frontend/SemanticAnalysis.cpp
2011-11-02 09:23:25 -07:00
Reuben Morais
da3903e246 Bug 704841 - Use implicit_jscontext for Components.utils getters. r=bholley 2011-12-03 15:59:01 +01:00
Johnny Stenback
e57eb36355 Fixing bug 690952. Move window.navigator from the outer window to the inner window, and stop persisting it across same origin page navigations. r=mrbkap@gmail.com 2011-12-01 00:28:16 -08:00
Brian Hackett
9a4eccd90e Merge. 2011-10-27 14:17:19 -07:00
Brian Hackett
8e5e57fc40 Merge MC -> JM 2011-10-27 14:16:02 -07:00
Brian Hackett
301e88a033 Clean up API for creating natives with reserved slots, fix uses in CTypes and jsworkers shell, bug 697537. 2011-10-27 11:14:56 -07:00
Brian Hackett
914cb44c0c Remove JSFunction fixed slots and unused fields, bug 697537. 2011-10-26 13:02:57 -07:00
Boris Zbarsky
a8e2aab4ff 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
76ffef891d Bug 705280 - (1/2) Quickstub nsIDOMHTMLDocument.head. r=mrbkap 2011-11-29 17:30:13 +01:00
Ryan VanderMeulen
be7e576362 Bug 705401 - Remove the rest of TraceVis. r=dvander 2011-11-28 16:08:25 -08:00
Ryan VanderMeulen
1bc3807cee Bug 705356 - Remove JSOPTION_JIT and JSOPTION_PROFILING. r=dvander 2011-11-28 14:57:31 -08:00
Terrence Cole
d0ff732f1d 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
f102556f32 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
92c5237e1f Backout 2040980c0792 (bug 705280) to investigate perf regression on dromaeo v8 deltablue. 2011-11-27 16:59:10 +01:00
Ms2ger
7ff45c8468 Bug 705320 - Use IDL for xpcIJSWeakReference.get; r=bholley 2011-11-26 11:32:03 +01:00
Ms2ger
8495f5a854 Bug 701467 - Remove JS_TRUE/JS_FALSE from xpconnect; r=bholley 2011-11-26 11:05:59 +01:00
Bobby Holley
d1ad4db663 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
ec85c212c8 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
bcf35bd248 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
79f084fc3d 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
826ccf22a4 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
73b7409e9a Bug 692342 - Move some things below Do datum_type resolution in ConvertDependentParam. r=mrbkap 2011-11-25 17:09:07 -08:00
Bobby Holley
622f731967 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
8d90d94448 Bug 692342 - Move a call to SetValNeedsCleanup() to an equivalent location. r=mrbkap 2011-11-25 17:09:07 -08:00
Bobby Holley
a47135d2be 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
73596fc292 Bug 692342 - Reindentation from previous patch (no other changes). r=mrbkap 2011-11-25 17:09:07 -08:00
Bobby Holley
b108b42814 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
ec2f70ac87 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
33085d10a1 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
17bfc88fbe 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
922e8ef969 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
1a90c6d7f3 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
Nicholas Nethercote
dbd773b4ff Bug 684800 - Measure slop in TI-related JS memory reporters. r=bhackett. 2011-11-01 21:59:43 -07:00
Ms2ger
567f4260b6 Bug 684821 - Remove nsIDOMNSHTMLElement; r=peterv 2011-10-29 22:03:55 +02:00
Jonas Sicking
0588c874fd Bug 687400: Kill Node.isSameNode. r=smaug 2011-10-28 19:52:27 -07:00
Doug Sherk
1c15893d0b Bug 656824: Implemented ARB_robustness to detect driver resets in WebGL, only on GLX for now - r=bjacob
This patch implements ARB_robustness on GLX and allows scripts to handle driver resets
through events. The changes in this patch are very sweeping; they hit almost
every NS_IMETHODIMP function within WebGLContextGL.cpp and WebGLContext.cpp.
More work must be done on this to support EGL_CONTEXT_LOST.
2011-10-26 16:00:44 -04:00
Boris Zbarsky
fd2696ae97 Bug 697244. Quickstub nsIDOMWindow.self. r=peterv 2011-10-26 15:34:22 -04:00
Boris Zbarsky
b079ce7195 Bug 697351. Implement has() on the nodelist proxy handler so that we don't have to do the property descriptor song and dance for it. r=peterv 2011-10-26 08:47:10 -04:00
Brian Hackett
67f4c3499e Fix OPT build break. 2011-10-20 07:38:44 -07:00
Brian Hackett
45e7531bb4 Merge MC -> JM
--HG--
rename : js/src/jsparse.cpp => js/src/frontend/BytecodeCompiler.cpp
rename : js/src/jsparse.h => js/src/frontend/BytecodeCompiler.h
rename : js/src/jsemit.cpp => js/src/frontend/BytecodeGenerator.cpp
rename : js/src/jsemit.h => js/src/frontend/BytecodeGenerator.h
rename : js/src/jsparse.cpp => js/src/frontend/FoldConstants.cpp
rename : js/src/jsparse.cpp => js/src/frontend/ParseNode.cpp
rename : js/src/jsparse.h => js/src/frontend/ParseNode.h
rename : js/src/jsparse.cpp => js/src/frontend/Parser.cpp
rename : js/src/jsparse.h => js/src/frontend/Parser.h
rename : js/src/jsregexpinlines.h => js/src/vm/RegExpObject-inl.h
rename : js/src/jsregexp.cpp => js/src/vm/RegExpObject.cpp
rename : js/src/jsregexp.h => js/src/vm/RegExpObject.h
rename : js/src/xpconnect/src/xpcjsruntime.cpp => js/xpconnect/src/XPCJSRuntime.cpp
rename : js/src/xpconnect/src/xpcquickstubs.cpp => js/xpconnect/src/XPCQuickStubs.cpp
rename : js/src/xpconnect/src/nsXPConnect.cpp => js/xpconnect/src/nsXPConnect.cpp
2011-10-19 14:26:08 -07:00
Ted Mielczarek
b89ad0aa81 bug 695685 - Make JS module/component dump go to stdout and flush. r=mrbkap 2011-10-19 10:01:24 -04:00
Jesse Ruderman
4a98a7e828 Bug 675553 followup: remove tautologous assertions. r=ehsan 2011-10-24 16:21:09 -07:00
Igor Bukanov
73466befa4 bug 684529 - remove script object. r=jorendorff 2011-09-22 12:08:55 +02:00
Blake Kaplan
fcc6580746 Bug 665279 - Resolve interface constants properly through Xray wrappers. r=peterv 2011-09-21 19:16:50 -07:00
Bill McCloskey
8e7a5d934a Bug 641027 - Add snapshot-at-the-beginning write barriers for incremental GC (r=luke,bhackett) 2011-10-25 16:07:42 -07:00
Marco Bonardo
824c514d6a Merge last green changeset from mozilla-inbound to mozilla-central 2011-10-21 10:00:11 +02:00
Kyle Huey
0d874b65fa Bug 687361: Implement the new IndexedDB setVersion API. r=bent
--HG--
rename : dom/indexedDB/nsIIDBVersionChangeRequest.idl => dom/indexedDB/nsIIDBOpenDBRequest.idl
2011-10-20 12:10:56 -04:00
Nicholas Nethercote
d88a09cc15 Bug 697016 - Add js-total-* memory reports. r=bhackett. 2011-10-27 22:20:36 -07:00
Nicholas Nethercote
71761b057d Bug 697016 - Refine per-compartment JS reporters. r=bhackett. 2011-10-27 22:19:57 -07:00
Bobby Holley
89ea734227 Bug 693341 - Test arrays of iid_is params. r=khuey 2011-10-27 12:43:38 -07:00
Bobby Holley
81c5f8dec4 Bug 693341 - Improve array and interface comparisons. r=khuey 2011-10-27 12:43:38 -07:00
Bobby Holley
27f9426f0d Bug 693341 - Test iid_is(). r=khuey 2011-10-27 12:43:38 -07:00
Bobby Holley
cf9b21258c Bug 693341 - Test interface arrays. r=khuey 2011-10-27 12:43:38 -07:00
Bobby Holley
861e7fe821 Bug 693341 - Introduce a few test interfaces. r=khuey 2011-10-27 12:43:38 -07:00
Bobby Holley
111300afed Bug 693341 - Test sized strings. r=khuey 2011-10-27 12:43:38 -07:00
Bobby Holley
45a2065742 Bug 693341 - Test arrays of strings. r=khuey 2011-10-27 12:43:38 -07:00
Bobby Holley
4a037879ae Bug 693341 - Test arrays of arithmetic types. r=khuey 2011-10-27 12:43:38 -07:00
Bobby Holley
ce12690e72 Bug 693341 - Use comparators for everything in test_params.js. r=khuey 2011-10-27 12:43:38 -07:00
Bobby Holley
014266f77f Bug 695138 - Fix inout memory leak in XPConnect tests. r=khuey 2011-10-27 12:43:38 -07:00
Chris Jones
fea7e5f4e7 Bug 669949, part 1: Add Components.utils interfaces for playing with callee JSContext params. r=mrbkap sr=jst 2011-10-27 12:24:38 -07:00
Peter Van der Beken
c8d5e65a28 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
25cec39950 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
cad36b0123 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
5eaf370364 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
38efb60d36 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
8d5dca787e 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
087de76d53 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
2c7841a5b9 Bug 697643 - Crash [@ JS_IsExceptionPending] modifying a live NodeList. r=bz.
--HG--
extra : rebase_source : 1d2e5e17c76a04a88468d976e89576d127e4e54f
2011-10-27 19:39:03 +02:00
Andrew McCreight
708d4efa28 Bug 668855, part 3: hook up CC to JS WeakMap callback. r=peterv 2011-11-24 07:35:56 -05:00
David Anderson
4a1362a06f Remove browser prefs for the tracer (bug 698201 part 7, r+sr=gal). 2011-11-22 17:41:43 -05:00
David Anderson
695b3c4833 Remove tracer from XPConnect (bug 698201 part 6, r=bholley). 2011-11-22 17:41:43 -05:00
Steve Fink
74c7863104 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
fffd4cb6c9 Bug 700992 - Fix GCC compile warnings in XPConnect. r=bholley,gal. 2011-11-20 20:10:58 -08:00
Bill McCloskey
b5df3a6e7f Bug 703699 - Fix use-after-free problem with write barriers and XPConnect (r=bhackett) 2011-11-18 22:35:17 -08:00
Andrew McCreight
b15127b229 Bug 680482, part 2 - change debug string for grey globals to help analysis scripts. r=mrbkap 2011-10-20 09:26:49 -07:00
Peter Van der Beken
34fc1ec4a5 Fix for bug 693258 (Fixes for test failures when turning off new list DOM bindings). r=bz/Waldo.
--HG--
extra : rebase_source : f0b6f8443cc29098ce75c114ff5a343597d9f38c
2011-10-13 15:36:09 +02:00
jhorak@redhat.com
f0c25c3b32 Bug 694261 - link xpcshell against jemalloc on ia64. r=bz 2011-10-20 09:55:18 +02:00
Bobby Holley
945e130b39 Bug 677788 - Remove use of length_is xpt value from gecko. r=mrbkap 2011-11-06 13:32:25 +01:00
Bobby Holley
7718872fbb Bug 677788 - Remove array/string 'capacity' argument from XPCConvert. r=mrbkap
Because length_is duplicates size_is, 'capacity' is just an alias for 'count'.
2011-11-06 13:32:25 +01:00
Bobby Holley
6ff068db60 Bug 691781 - Generate IDL lexer and parser as part of the build system. r=khuey 2011-11-06 13:32:25 +01:00
Ed Morley
6a998be2c5 Backout 4997c6f8b24d (bug 616542) for causing locally run mochitest-browser-chrome test runs to fail 2011-11-05 18:35:59 +00:00
Terrence Cole
e03c32f96e Bug 670596 - Mark ununused arenas as decommitted; r=?,njn
This patch tells the OS which pages we are not using after we do a GC_SHRINK.
The result is that the OS can do a better job managing memory, send less to
swap and will not count these pages against us in RSS.
2011-10-11 18:37:40 -07:00
Steve Fink
1c12901db7 Bug 625639 - fix XPCConvert error handling (r=mrbkap) 2011-10-28 12:35:35 -07:00
Rail Aliiev
364e83c545 Bug 616542 - Shorten file path length of mochitest; r=ted 2011-11-04 21:13:42 +00:00
Boris Zbarsky
340e4ed993 Bug 698495 part 5. Implement getElementIfPresent on nodelist proxies. r=peterv 2011-11-04 12:25:18 -04:00
Boris Zbarsky
23e72ba66d Bug 698495 part 2. Add an optional getElementIfPresent ObjectOps hook. r=waldo 2011-11-04 12:19:00 -04:00
Boris Zbarsky
2f77d358a2 Bug 698551. When forwarding gets to the prototype in nodelists, make sure to use the right |this|. r=waldo,peterv 2011-11-04 12:18:38 -04:00
Ben Turner
d1ccef79ea Bug 692669 - 'IndexedDB: remove nsIVariant from IDB* interfaces'. r=sicking.
--HG--
extra : transplant_source : %84%E3%96%9F%C5%BA%D56%A4%94%83%9F%C3%F5%2B%01%7B%87%FB9
2011-11-03 08:57:30 -07:00
Ed Morley
b08ad8e6dc Backout eb32aca6d54d, b5c0bfd03fcf and 5675bf2c7930 (bug 692669 and bug 692669) for failing to build on all platforms 2011-11-03 01:57:48 +00:00
Ben Turner
8ec37931d5 Bug 692669 - 'IndexedDB: remove nsIVariant from IDB* interfaces'. r=sicking.
--HG--
extra : transplant_source : E%E9%F9%B5%FB%88%1E%FA%C1%BE%04%1F%1E%3D%5E%EB%3C%D2%D2c
2011-11-02 18:03:15 -07:00
Gabor Krizsanits
d6244732f9 Bug 677294 - need a way to create new JS scopes and run scripts against them (same compartment) 2011-11-02 10:20:00 -07:00
Ehsan Akhgari
2a602a5685 Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron
Landing on a CLOSED TREE
2011-10-17 10:59:28 -04:00
Jeff Walden
8a2b96580e Bug 693469 - Use mozilla::ArrayLength and mozilla::ArrayEnd in preference to JS_ARRAY_LENGTH whenever possible. r=cjones
--HG--
extra : rebase_source : d89352e4f8c0e40853673d980d16d12dab04b44f
2011-10-10 23:00:28 -07:00
Jeff Walden
b7753477cf Bug 693469 - Implement mozilla::ArrayLength and mozilla::ArrayEnd, and replace uses of NS_ARRAY_LENGTH whenever possible. (Exceptions: assigning to static initializers, use in static assertions, as template parameters, etc. These will go away when the relevant compilers have C++11 constexpr support.) r=cjones
--HG--
extra : rebase_source : b4bae9a0f85abf2feb828609b50e756916b99a6f
2011-10-10 22:50:08 -07:00
Yazen Ghannam
03ce28c74a Bug 677085 - Merge "nsIDOMNSHTMLFrameElement" into "nsIDOMHTMLFrameElement"; r=bz 2011-10-15 09:34:31 +02:00
Bobby Holley
0f39cdae6c Bug 688012 - Re-case dependency on dom_quickstubs.h to fix build-time race condition / bustage. r=lumpy 2011-10-14 12:10:50 -07:00
Bobby Holley
fe5eea5a3e Bug 688012 - Manual fixup of overzealous brace hoisting. r=mrbkap 2011-10-14 10:52:49 -07:00
Bobby Holley
f253d4d21f Bug 688012 - Manual fixup of multi-line c++ cast alignment. r=mrbkap 2011-10-14 10:52:49 -07:00
Bobby Holley
c761202fa0 Bug 688012 - Hoist 'else' clauses to the line of the previous close-curly-brace. r=mrbkap
xpcfix -epc `find | grep -P "cpp$|h$" | perl -pe 's/\n/ /'`

This is a conservative pass, which doesn't catch absolutely all cases. But it should be good enough.
2011-10-14 10:52:48 -07:00
Bobby Holley
dfadea33ce Bug 688012 - Move the open-brace for if, else, for, while, and switch to the same line as the keyword or condition. r=mrbkap
xpcfix -bpc `find | grep -P "cpp$|h$" | perl -pe 's/\n/ /'`

This is a huge, repetitive patch, and I confess having only skimmed a lot of it. I'm reasonably confident in the tool here though.

Updated to fix 'else' as well.
2011-10-14 10:52:48 -07:00
Bobby Holley
efc8a150ec Bug 688012 - Add space between keyword and paren for: if, for, while, and switch. r=mrbkap
xpcfix -spuc `find | grep -P "cpp$|h$" | perl -pe 's/\n/ /'`

git diff -w is empty here as well.
2011-10-14 10:52:48 -07:00
Bobby Holley
f38648edc0 Bug 688012 - Fix alignment of arguments and tests relative to parens. r=mrbkap
xpcfix -puc `find | grep -P "cpp$|h$" | perl -pe 's/\n/ /'`

Some of these changes aren't quite ideal, but it's the best my tooling can do and I think it's very much a step in the right direction. This is necessary to do first, because doing if(foo) -> if (foo) changes the location of parentheses, which affects how other things should be aligned. So this has to be built into the tooling, and we might as well take care of the pre-existing issues first.
2011-10-14 10:52:48 -07:00
Bobby Holley
ee9929fffc Bug 688012 - Move all multi-line continuation backslashes to column 79 (where possible). r=mrbkap
xpcfix -c `find | grep -P "cpp$|h$" | perl -pe 's/\n/ /'`

This isn't a huge deal, but it's necessary for the other style changes we want to make. Specifically, when adding and removing things from lines within macros, xpcfix corrects continuation backslashes by putting them at column 79. If we make sure that this is also the default everywhere, then everything will match up.

git diff -w shows no changes here as well.
2011-10-14 10:52:48 -07:00
Bobby Holley
0cdbeb251f Bug 688012 - Remove trailing whitespace within XPConnect. r=mrbkap
xpcfix -w `find | grep -P "cpp$|h$" | perl -pe 's/\n/ /'`

git diff -w verifies that this patch contains no non-whitespace changes.
2011-10-14 10:52:47 -07:00