Ms2ger
e905ff8354
Bug 677079 - Part o: Expose setActivityCallback in jsfriendapi.h; r=gal
2012-01-15 09:13:10 +01:00
Ms2ger
52e643ed5a
Bug 677079 - Part n: Expose JSOPTION_UNROOTED_GLOBAL in jsfriendapi.h; r=gal
2012-01-15 09:13:09 +01:00
Ms2ger
a26231cf02
Bug 677079 - Part m: Expose context's compartment in jsfriendapi.h; r=jorendorff
2012-01-15 09:13:09 +01:00
Ms2ger
e50a3fe447
Bug 677079 - Part l: Use the existing JSAPI for the global object for a context; r=bholley
2012-01-15 09:13:09 +01:00
Ms2ger
b47ceee24d
Bug 677079 - Part k: Expose outstandingRequests in jsfriendapi.h; r=cdleary
2012-01-15 09:13:09 +01:00
Ms2ger
74616455a4
Bug 677079 - Part i: Expose errorReporter in jsapi.h; r=mrbkap
2012-01-15 09:13:09 +01:00
Ms2ger
3457b657f8
Bug 677079 - Part d: Move js_GetErrorMessage to jsfriendapi.h; r=jorendorff
2012-01-15 09:13:08 +01:00
Ms2ger
24017bc1c5
Bug 677079 - Part b: Use existing JSAPI functions where those are available; r=bholley
2012-01-15 09:13:07 +01:00
Landry Breuil
218e8b14d7
Bug 717733 - Fix int64 types usage in js/xpconnect, build failure on OpenBSD
...
js/xpconnect/src/XPCJSRuntime.cpp:1881:
error: invalid conversion from 'PRInt64*' to 'int64_t*'
2012-01-12 16:56:02 -05:00
Ms2ger
237c96caad
Bug 716357 - Fix license header in FilteringWrapper.cpp; r=gerv DONTBUILD
2012-01-11 17:12:21 +01:00
Ms2ger
53c85bc3c6
Bug 332648 - Part g: Move AutoIdArray to jsapi.h; r=evilpie
2012-01-11 09:23:09 +01:00
Ms2ger
8074c88eae
Bug 332648 - Part e: Move AutoArrayRooter to jsapi.h; r=evilpie
2012-01-11 09:23:09 +01:00
Ms2ger
27787111fe
Bug 332648 - Part c: Move AutoObjectRooter to jsapi.h; r=evilpie
2012-01-11 09:23:08 +01:00
Ms2ger
957611c0cb
Bug 332648 - Part b: Move AutoValueRooter to jsapi.h; r=evilpie
...
This patch also moves the MarkRuntime function into the JS namespace.
2012-01-11 09:23:08 +01:00
Ms2ger
555fdc26d7
Bug 714264 - Part c: Move IterateData / CollectCompartmentStatsForRuntime / GetExplicitNonHeapForRuntime to js/MemoryMetrics.h; r=njn
...
This patch also removes those APIs exposed in js/MemoryMetrics.h that aren't
used anymore.
2012-01-11 09:23:08 +01:00
Ms2ger
4dabf76c50
Bug 714264 - Part b: Move CompartmentStats to MemoryMetrics.h; r=njn
...
The name member is implemented as a void*, because it needs to remain an
nsCString, and as such the logic to get the name also remains in XPConnect.
2012-01-11 09:23:08 +01:00
Ms2ger
8e10383f13
Bug 714458 - Part c: Don't include jscntxt.h in xpcprivate.h; r=bholley
...
This removes the inclusion from xpcprivate.h, and adds the include to XPConnect
files that still need it, along with notes to clarify what these files need
from the include. These notes will be removed while fixing bug 677079.
2012-01-11 09:23:08 +01:00
Ms2ger
a9ead79fa5
Bug 714458 - Part b: Provide the thread-related APIs xpcprivate.h needs; r=igor
...
This introduces a JS_GetCurrentThread to go with the existing
JS_GetContextThread, as well as a js::GetContextThread to get at the actual
JSThread object, and inlines the only use of JS_THREAD_ID.
2012-01-11 09:23:07 +01:00
Ms2ger
6bef3966af
Bug 714458 - Part a: Introduce JSAPI for JSContext's second private pointer; r=Waldo
...
JSContext currently has 2 private pointers, but the JSAPI only provides access
to one of them.
2012-01-11 09:23:07 +01:00
Ms2ger
c678cde337
Bug 715634 - Cleanup XPCJSContextStack; r=bholley
2012-01-11 09:23:07 +01:00
Ms2ger
dc1ed3f58b
Bug 714728 - Remove jsword/jsuword in favour of intptr_t/uintptr_t; r=Waldo
2012-01-11 09:23:05 +01:00
Andrew McCreight
11688f1b70
Bug 708322 - never traverse non-gray JS Objects. r=billm
2012-01-09 12:02:25 -08:00
Phil Ringnalda
075557292f
Back out 3ab1dcfb2218 and 46ae4bf4aaf4 (bug 622301) for Windows PGO bustage
2012-01-14 18:56:00 -08:00
Bobby Holley
d4705e7221
Bug 716167 - Add a release-mode assertion that XPConnect is never used off the main thread. r=mrbkap
2012-01-14 10:31:19 -08:00
Bobby Holley
761b93ace7
Bug 716167 - Only push null contexts in XPConnect for main thread events, and remove infrastructure from bug 326777. r=bz
2012-01-14 10:31:16 -08:00
Bobby Holley
5fedf53b21
Bug 622301 - Remove now-obsolete 'callee' parameter. r=mrbkap
2012-01-14 10:29:56 -08:00
Bobby Holley
df7b936c1f
Bug 622301 - Don't use XPCWrappedNative::GetWrappedNativeOfJSObject in quickstub unwrapping. r=mrbkap
2012-01-14 10:29:56 -08:00
Michael Kohler
ab65c25a4a
Bug 711818 - MOZILLA_GUARD_OBJECT_NOTIFIER* should use a MOZ_ prefix to follow MFBT style
2012-01-10 00:29:30 -05:00
Ben Turner
f3467a0a31
Bug 674726 - WebTelephony. r=philikon+mounir, sr=sicking. Not part of the default build.
...
--HG--
extra : transplant_source : %1A%23%10d%88%B3%DA%87%C9%DD0%E6P%1Ct%AD%7D%80%B6%B4
2012-01-09 14:28:47 -08:00
Ed Morley
4c0450c851
Backout b1612e3ba9b9 & 668a56be0eef (bug 622301) for Dromaeo regressions
2012-01-07 14:17:54 +00:00
Bobby Holley
4413d553f3
Bug 622301 - Remove now-obsolete 'callee' parameter. r=mrbkap
2012-01-06 17:29:02 -08:00
Bobby Holley
80f4dcdbe4
Bug 622301 - Don't use XPCWrappedNative::GetWrappedNativeOfJSObject in quickstub unwrapping. r=mrbkap
2012-01-06 17:29:02 -08:00
Jeff Walden
455768d2cf
Bug 713965 - Replace deleteGeneric (taking a jsid) with deleteByValue (taking a Value), and use the property-type-specific methods exclusively. r=bhackett
...
--HG--
extra : rebase_source : c9273f81996c755f6b3814895a4ce64f390f7c50
2011-12-28 16:33:20 -06:00
Bill McCloskey
787a0c635d
Bug 714418 - Remove nsIXPCScriptable::DONT_SHARE_PROTOTYPE (r=bholley, sr=mrbkap)
2012-01-04 14:13:20 -08:00
Bill McCloskey
99b3b3d78d
Bug 714353 - Remove nsIXPCScriptable::Trace (r=mrbkap)
2012-01-04 14:13:15 -08:00
Bill McCloskey
3dc87b172c
Bug 714350 - Remove nsXPConnect::RestoreWrappedNativePrototype (r=mrbkap)
2012-01-04 14:13:08 -08:00
Luke Wagner
46c5ff199a
Bug 714696 - rm lingering remains of tracer in js::Value (r=waldo)
...
--HG--
extra : rebase_source : c0d377c97e450b515941a5677eaafd5b23122d2c
2012-01-02 15:06:15 -08:00
Gabor Krizsanits
8a6d01dbcc
Bug 677294 - part 2: need a way to create new JS scopes and run scripts against them (same compartment); r=mrbkap
2012-01-02 19:06:07 +01:00
Ms2ger
9078f7f80a
Bug 710805 - Assert validity in xpc_qsBasicString; r=jst
2012-01-02 19:05:19 +01:00
Ms2ger
1a91dd5e26
Bug 709086 - Don't use JS_GetParent in mozJSSubScriptLoader::LoadSubScript; r=jorendorff
2012-01-02 19:05:19 +01:00
Ms2ger
8a0d13f695
Bug 714057 - Remove uintn users from XPConnect; r=bholley+khuey
2012-01-02 19:05:19 +01:00
Ms2ger
8a772a2c01
Bug 713645 - Remove superfluous inclusions of jscntxt.h; r=luke
2012-01-02 19:05:19 +01:00
Bill McCloskey
196d2277a9
Bug 714363 - Remove XPCWrappedNativeScope::mPrototypeJSFunction (r=bholley)
2012-01-01 14:48:15 -08:00
Nicholas Nethercote
f5076064af
Bug 708159 - Avoid unnecessary work done by multi-reporters in nsMemoryReporterManager::GetExplicit. r=jlebar,bent.
2011-12-12 19:04:12 -08:00
Boris Zbarsky
6e595b2f8e
Backing out bug 707717 because it seems to be a perf hit, not a perf win.
2011-12-28 16:22:05 -05:00
Matt Brubeck
45c8fed2bf
Merge mozilla-central and mozilla-inbound
2011-12-28 11:17:19 -08:00
Josh Matthews
0c36bd4f50
Bug 463122 - Propagate mozJSComponentLoader exceptions that occur while executing the script. r=mrbkap
2011-12-28 11:55:11 -05:00
Ms2ger
ce20973558
Bug 713550 - Move Base64 code on nsXPConnect to XPCOM / xpcpublic.h; r=bholley+khuey
2011-12-28 09:13:38 +01:00
Ms2ger
8e18508a9e
Bug 713340 - Fix jsShell_ErrorFormatString array lengths; r=luke
2011-12-28 09:13:37 +01:00
Ms2ger
209431980b
Bug 713553 - Remove GetRTStringByIndex; r=bholley
2011-12-28 09:13:37 +01:00
Ms2ger
b87a918cc9
Bug 713554 - Remove xpc_SameScope declaration; r=bholley
2011-12-28 09:13:37 +01:00
Olli Pettay
20ec9c27ca
Bug 710380 - IndexedDB could use the dictionary reader, r=khuey
2011-12-27 20:01:28 +02:00
Boris Zbarsky
3176b6fb76
Bug 707717. Don't dynamically mutate the proto chains of DOM prototypes. r=peterv
2011-12-26 11:31:07 -05:00
Phil Ringnalda
e9d4b3aebc
Merge m-i <-> m-c
2011-12-24 21:50:23 -08:00
Ms2ger
1b51b61950
Bug 711859 - Add an IsObjectInContextCompartment API; seems-better-than-the-alternative-all-things-considered=Waldo
2011-12-24 09:28:55 +01:00
Ms2ger
42a0259fa2
Bug 711748 - Remove FIT_U32 from XPCConvert; r=bholley
2011-12-24 09:28:39 +01:00
Ms2ger
9e55be7066
Bug 712055 - Remove xpc_qsInt32ToJsval/xpc_qsUint32ToJsval; r=jorendorff
2011-12-24 09:28:14 +01:00
Ms2ger
028bee52f6
Bug 711826 - Remove nsJSRuntimeServiceImpl declaration; r=bholley
2011-12-24 09:28:03 +01:00
Ms2ger
64c9d11ff9
Bug 692277 - Part b: Remove js/src from xpconnect LOCAL_INCLUDES; r=luke
2011-12-24 09:27:51 +01:00
Ms2ger
d153c9927f
Bug 692277 - Part a: Introduce an unstable public API for JS memory measurements to be used in XPCJSRuntime; r=njn sr=dmandelin
2011-12-24 09:27:39 +01:00
Ms2ger
7299311a32
Bug 711240 - Part b: Expose xpc_qsStringToJsval publicly; r=bholley
2011-12-24 09:27:04 +01:00
Ms2ger
7558b9d514
Bug 711240 - Part a: Expose BAD_TLS_INDEX in xpcpublic.h; r=bholley
2011-12-24 09:26:34 +01:00
Ms2ger
321e62987b
Bug 711404 - Part b: Remove xpc_qsDoubleToUint64; r=bholley
2011-12-24 09:26:18 +01:00
Makoto Kato
88a0169270
Bug 711404 - Part a: Correctly handle unsigned long long as PRUint64 instead of PRInt64; r=bholley
2011-12-24 09:25:54 +01:00
Ms2ger
e16be93a87
Bug 712649 - Components.utils.getWeakReference(null) should fail silently; r=bholley
2011-12-24 09:20:04 +01:00
Olli Pettay
bfedbcabb8
Bug 709569, a tool for webidl dictionary-like interfaces, r=khuey,mrbkap
2011-12-24 00:13:46 +02:00
Jeff Walden
58d5e1fb1b
Bug 711647 - Add MOZ_DELETE to a bunch of deliberately-not-implemented methods across the tree. r=dbaron
...
--HG--
extra : rebase_source : 507006c0f099da6851b585d2062267d285978ad7
2011-12-16 14:42:07 -05:00
Bobby Holley
b5e5e8ecc2
Bug 712858 - Remove lingering XPT_TDP_POINTER uses in XPConnect. r=mrbkap
2011-12-23 16:22:44 -08:00
aceman
98c3beb6cf
Bug 711721 - merge nsIScriptError and nsIScriptError2 interfaces; r=neil, sr=bzbarsky
2011-12-21 16:51:29 -05:00
Ben Turner
46c706c2e2
Bug 712448 - 'Slim wrappers do not use deferred release mechanism'. r=mrbkap.
2011-12-20 17:42:51 -05:00
Ed Morley
f6afc23b70
Merge last PGO-green changeset from mozilla-inbound to mozilla-central
2011-12-20 11:15:11 +00:00
Jason Duell
879eda4d67
Bug 695635: Unprefix websockets. r=sicking, sr=smaug
...
--HG--
rename : content/base/public/nsIMozWebSocket.idl => content/base/public/nsIWebSocket.idl
2011-12-20 00:20:12 -08:00
Marco Bonardo
74169393c2
Merge last green PGO changeset from mozilla-inbound to mozilla-central
2011-12-19 12:47:41 +01:00
Phil Ringnalda
3a07213834
Bug 695345 - Bring back ISO8601DateUtils.jsm, a=akeybl
2011-12-18 18:50:13 -08:00
Matt Brubeck
56dc5b2c12
Merge mozilla-central to mozilla-inbound
2011-12-18 08:22:53 -08:00
Ms2ger
dc0c1c8263
Bug 708330 - Use IDL for Components.utils.getWeakReference; r=bholley
2011-12-18 11:11:56 +01:00
Ms2ger
498248fe61
Bug 708326 - Use IDL for Components.utils.forceGC; r=bholley
2011-12-18 11:11:23 +01:00
Ms2ger
941c5e0cb4
Bug 708253 - Use IDL for Components.(utils.)reportError; r=bholley
2011-12-18 11:10:59 +01:00
Ms2ger
4c9760228d
Bug 705324 - Remove nsAXPCNativeCallContext::{GetRetValPtr,GetReturnValueWasSet,SetReturnValueWasSet}; r=bholley sr=bz
2011-12-18 11:09:58 +01:00
Ms2ger
3bc0ce7250
Bug 705355 - Use IDL for Components.utils.evalInSandbox; r=bholley
2011-12-18 11:09:56 +01:00
Ms2ger
ddf06918bc
Bug 705188 - Use IDL for mozIJSSubScriptLoader::LoadSubScript, {xpcIJSModuleLoader,nsIXPCComponents_Utils}::Import; r=bz
2011-12-18 11:09:16 +01:00
Ms2ger
98244f7259
Bug 705344 - Use IDL for Components.(utils.)lookupMethod; r=bholley
2011-12-18 11:08:04 +01:00
Ms2ger
9739382fc0
Bug 707576 - Remove nsIDOMNSElement; r=smaug
2011-12-18 11:06:23 +01:00
Andrew McCreight
e1cea765da
Bug 711616 - QI wrapped native weak map keys to nsINode. r=jst
2011-12-17 22:11:04 -08:00
John Schoenick
dd920826b8
Bug 687679 - Rename JS_CompileFile to JS_CompileUTF8File, fix users. r=jorendorff,jst
2011-12-16 11:08:59 -08:00
Jeff Walden
21a1ccbb3a
Bug 711672 - Break mfbt's dependency on jstypes.h by moving various API macros out of JS and into mfbt. r=luke, r=cjones
...
--HG--
extra : rebase_source : f18993e1eec1a5e5bcdb9cd97fa7d7c6ad261e2c
2011-12-13 14:26:58 -05:00
Andrew McCreight
2e2ccfafc8
Bug 710492 - add special cycle collector shape tracing path. r=bhackett
2011-12-19 10:24:56 -08:00
Nicholas Nethercote
11de50808c
Bug 709653 - Fix GC heap memory reporters. r=bhackett.
...
--HG--
extra : rebase_source : 6805671750bd6a9e9661e70832a3837d4064f6ea
2011-12-11 21:21:18 -08:00
Nicholas Nethercote
301136c2ce
Bug 707865 - Convert nsTArray::SizeOf() to nsTArray::SizeOfExcludingThis(). r=jlebar.
...
--HG--
extra : rebase_source : d802d58bc7dedda2490878793923adc0ab55f779
2011-12-15 14:59:53 -08:00
Jeff Walden
ae87ba2e49
Bug 711799 - Fix a bunch of initializing-pointer-from-boolean warnings. r=dholbert
...
--HG--
extra : rebase_source : 4a5d03b10ad8ac4eaff222037ba3400a26e7cf55
2011-12-18 01:00:47 -05:00
Jeff Walden
8e960d2a6d
Add MOZ_OVERRIDE to CrossOriginWrapper functions. No bug (but sort of r=luke from bug 708735 :-) )
...
--HG--
extra : rebase_source : d0bdbc8c031457a3a9f7f8cc82d141e0d83883f4
2011-12-15 14:32:25 -05:00
aceman
536a7c8b2f
Bug 122213 - Display time and date of messages in toolkit's Error Console. r=neil sr=bz
2011-12-17 05:22:26 +01:00
Doug Sherk
1248c314b2
Bug 708207: implement WebGL's getShaderPrecisionFormat r=bjacob
2011-12-16 13:11:59 -08:00
Ms2ger
7a7ce26c5a
Backed out changeset ba447ace2594 (bug 687679) for bustage.
2011-12-16 21:17:16 +01:00
John Schoenick
8d31dc59af
Bug 687679 - Rename JS_CompileFile to JS_CompileUTF8File, fix users. r=jorendorff,jst
2011-12-16 11:08:59 -08:00
Jeff Walden
bdd03cfbc9
Bug 708735 - Use <stdint.h> types in JSAPI and throughout SpiderMonkey. Continue to provide the {u,}int{8,16,32,64} and JS{Uint,Int}{8,16,32,64} integer types through a single header, however, for a simpler backout strategy -- and also to ease the transition for embedders. r=timeless on switching the jsd API to use the <stdint.h> types, r=luke, r=dmandelin
2011-12-08 22:54:10 -05:00
Andrew McCreight
ce8907a84d
Bug 680937, part 3 - implement and set preserve wrapper callback. r=jst
2011-12-15 17:45:49 -08:00
Andrew McCreight
4a73c358dc
Bug 680937, part 2 - Add native wrapper preservation hook, call it in WeakMap_set. r=billm
2011-12-15 17:45:21 -08:00
Bobby Holley
4829af463f
Bug 711203 - enable XPConnect wstring test. r=khuey
2011-12-15 13:27:42 -08:00
Andrew McCreight
cd0ae41f80
Bug 709162 - crash test for cycle collector dumping. rs=bholley a=mbrubeck
2011-12-14 16:02:12 -08:00
Andrew McCreight
0feb2f3a48
Bug 710761 - test if CC listener begin fails, don't call listener again. rs=bholley
2011-12-14 15:56:37 -08:00
Andrew McCreight
37a36f87ac
Bug 709160 - fix ObjShrink fallout in nsXPConnect::Traverse CC printing code. r=luke
2011-12-14 15:56:37 -08:00
Andrew Quartey
ed6375373b
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
d328631b8c
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
bda9cd4100
Bug 704400 - Implement --enable-dmd. r=khuey.
2011-12-08 19:09:36 -08:00
Mike Hommey
bbf423444c
Bug 695843 part 9 - Use FileLocations in the component manager. r=bsmedberg
2011-11-08 18:10:51 +01:00
Mike Hommey
19efe9c2e3
Bug 695843 part 8 - Properly handle jar-in-jars when importing modules. r=mrbkap
2011-12-08 11:03:36 +01:00
Mike Hommey
10cca63d18
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
f7891e8253
Bug 707051 - Change MarkChildren for shapes (r=igor)
2011-12-07 09:52:16 -08:00
Blake Kaplan
efb448b0ad
Bug 708215 - Report errors from the safe JS context. r=bent
2011-12-07 18:12:20 +08:00
Bobby Holley
1aeaff9c74
Bug 706301 - Tests. r=mrbkap
2011-12-06 11:05:26 -08:00
Bobby Holley
53c5cc2bb5
Bug 706301 - Don't cache own properties on XrayProxy. r=mrbkap
2011-12-06 11:05:26 -08:00
Nicholas Nethercote
954203e853
Bug 704723 - Add memory reporter for XPConnect. r=mrbkap.
2011-12-05 14:24:28 -08:00
Ed Morley
f09fc68689
Merge mozilla-central and mozilla-inbound
2011-12-04 15:04:54 +00:00
Ms2ger
4a342c91a9
Bug 705357 - Use IDL for Components.utils.getGlobalForObject; r=bholley
2011-12-03 22:50:16 +01:00
Ms2ger
15947c5591
Bug 705333 - Use IDL for nsJSCID::{CreateInstance,GetService}; r=bholley
2011-12-03 22:50:16 +01:00
Kyle Huey
32088faf78
Merge b-s to m-c.
2011-12-03 16:27:21 -05:00
Brian Hackett
a476b0c45a
Merge MC -> JM
2011-12-03 10:34:26 -08:00
Antti Haapala
6d46a2d6e9
Bug 699156: Support TypedArrays in XPConnect. r=bholley,evilpie
2011-12-03 09:33:20 -05:00
Brian Hackett
1528af043e
Merge MC -> JM
2011-12-01 11:51:09 -08:00
Brian Hackett
8d049da2ea
Merge MC -> JM
2011-11-30 12:45:27 -08:00
Brian Hackett
ec0a9b8a7f
Merge MC -> JM
2011-11-26 15:03:20 -08:00
Brian Hackett
138d1ab244
Add about:memory reporters for per compartment shape tables, bug 704372.
2011-11-21 20:29:05 -05:00
Brian Hackett
335ec03892
Merge mozilla-central and mozilla-inbound
2011-12-03 14:36:54 -08:00
Makoto Kato
8e0b00d38c
Bug 655658 - NetUtil.readInputStreamToString should have aCharset argument as optional. r=sdwilsh, sr=bz
2011-11-25 11:23:41 +09:00
Andrew McCreight
dc76cadfab
Bug 668855, part 6: test weak maps and the cycle collector. r=gal
2011-11-24 07:35:57 -05:00
Brian Hackett
65596767a9
Merge MC -> JM
2011-11-18 18:02:40 -08:00
Brian Hackett
586402ccaf
Mark uncacheable prototypes on objects whose prototype has dynamically changed, bug 703047.
2011-11-18 13:28:07 -08:00
Brian Hackett
a650776bdb
Avoid shape changes on XPConnect wrapper prototype changes, bug 703047.
2011-11-16 12:52:47 -08:00
Brian Hackett
8a17bdb31b
Clear XPCWrappedNativeScope fields to avoid accessing freed arenas during destruction, no bug. r=billm
2011-11-14 17:06:53 -08:00
Ed Morley
0f2639a814
Merge last green changeset of mozilla-inbound to mozilla-central
2011-11-16 11:02:43 +00:00
Ms2ger
4993ee18ae
Bug 672796 - Move MOZILLA_GUARD_OBJECT_NOTIFIER_* out of AutoRestore.h; r=khuey
2011-11-16 08:50:19 +01:00
Ms2ger
98e4a0a001
Bug 702106 - Remove xpc_CloneJSFunction; r=bholley
2011-11-16 08:50:18 +01:00
Ms2ger
f99551ba2a
Bug 701735 - xpc_qsJsvalToWcharStr shouldn't const_cast; r=bz
2011-11-16 08:50:18 +01:00
Steve Fink
42a33db123
Bug 700202 - Propagate exceptions from ConstructSlimWrapper (r=bholley)
...
--HG--
extra : rebase_source : 8ce6d12e100a2e3639c4d1fddbadee25e6dd12cf
2011-11-21 09:28:19 -08:00
Nicholas Nethercote
fc79796db1
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
923a31b98d
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
7ab6ae09ca
Bug 498543 - Null-checking JS_THIS_OBJECT Results. r=jwalden
2011-12-01 13:30:28 -08:00
Brian Hackett
37801b62fa
Merge MC -> JM
2011-11-14 09:13:33 -08:00
Brian Hackett
c28a75625c
Add missing #include, no bug.
2011-11-10 18:30:52 -08:00
Brian Hackett
135431de6e
Merge MC -> JM
2011-11-10 12:06:26 -08:00
Brian Hackett
ed05422bd7
Add GetGlobalForObjectCrossCompartment for use in XPConnect, no bug. r=luke
2011-11-09 18:42:42 -08:00
Justin Lebar
9c01db357b
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
40fe92b6d7
Replace uses of GetObjectGlobal with JS_GetGlobalForObject, no bug.
2011-11-09 10:34:54 -08:00
Brian Hackett
bb69088998
Address bug 638316 and bug 694247 review comments, r=luke.
2011-11-09 09:52:59 -08:00
Boris Zbarsky
b9b79eb5f7
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
3fa3b9addf
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
377afe2131
Add memory reporter for base shapes, bug 699210.
2011-11-02 13:32:05 -07:00
Brian Hackett
2e5357c5a0
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
a148347203
Bug 704841 - Use implicit_jscontext for Components.utils getters. r=bholley
2011-12-03 15:59:01 +01:00
Johnny Stenback
130b9390a8
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
be5eb74993
Merge.
2011-10-27 14:17:19 -07:00
Brian Hackett
6db54f3ee1
Merge MC -> JM
2011-10-27 14:16:02 -07:00
Brian Hackett
f749fa5ea8
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
891e11e1cc
Remove JSFunction fixed slots and unused fields, bug 697537.
2011-10-26 13:02:57 -07:00
Boris Zbarsky
f30b4e424f
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
41700a0a6d
Bug 705280 - (1/2) Quickstub nsIDOMHTMLDocument.head. r=mrbkap
2011-11-29 17:30:13 +01:00
Ryan VanderMeulen
d7ffcad3b8
Bug 705401 - Remove the rest of TraceVis. r=dvander
2011-11-28 16:08:25 -08:00
Ryan VanderMeulen
51eb45cb2d
Bug 705356 - Remove JSOPTION_JIT and JSOPTION_PROFILING. r=dvander
2011-11-28 14:57:31 -08:00
Terrence Cole
350737fc00
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
3ef2838ed6
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
1160012d2e
Backout 2040980c0792 (bug 705280) to investigate perf regression on dromaeo v8 deltablue.
2011-11-27 16:59:10 +01:00
Ms2ger
06478935f6
Bug 705320 - Use IDL for xpcIJSWeakReference.get; r=bholley
2011-11-26 11:32:03 +01:00
Ms2ger
5fcb106504
Bug 701467 - Remove JS_TRUE/JS_FALSE from xpconnect; r=bholley
2011-11-26 11:05:59 +01:00
Bobby Holley
cd2bb1828b
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
4d135e2308
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
f9391be5ce
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
7f7e628a71
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
15ec337064
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
4d9aebdc87
Bug 692342 - Move some things below Do datum_type resolution in ConvertDependentParam. r=mrbkap
2011-11-25 17:09:07 -08:00
Bobby Holley
cb8941c60a
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
493fca7a0e
Bug 692342 - Move a call to SetValNeedsCleanup() to an equivalent location. r=mrbkap
2011-11-25 17:09:07 -08:00
Bobby Holley
6dd2e065e6
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
dd9972ef5a
Bug 692342 - Reindentation from previous patch (no other changes). r=mrbkap
2011-11-25 17:09:07 -08:00
Bobby Holley
3f0f54f81f
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
2637ff2b32
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
2930ab8220
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
8140800d1f
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
fbed85f435
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
0a64fc701a
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
017924182a
Bug 684800 - Measure slop in TI-related JS memory reporters. r=bhackett.
2011-11-01 21:59:43 -07:00
Ms2ger
fc4eefd0ca
Bug 684821 - Remove nsIDOMNSHTMLElement; r=peterv
2011-10-29 22:03:55 +02:00
Jonas Sicking
b982e6eb9c
Bug 687400: Kill Node.isSameNode. r=smaug
2011-10-28 19:52:27 -07:00
Doug Sherk
17bf750e8d
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
67b9781880
Bug 697244. Quickstub nsIDOMWindow.self. r=peterv
2011-10-26 15:34:22 -04:00
Boris Zbarsky
4607ba1761
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
9dcf73410b
Fix OPT build break.
2011-10-20 07:38:44 -07:00
Brian Hackett
d3111a2391
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
c64b56b9b3
bug 695685 - Make JS module/component dump go to stdout and flush. r=mrbkap
2011-10-19 10:01:24 -04:00
Jesse Ruderman
618657cc85
Bug 675553 followup: remove tautologous assertions. r=ehsan
2011-10-24 16:21:09 -07:00
Igor Bukanov
6d48402fba
bug 684529 - remove script object. r=jorendorff
2011-09-22 12:08:55 +02:00
Blake Kaplan
b1bb7d3ed4
Bug 665279 - Resolve interface constants properly through Xray wrappers. r=peterv
2011-09-21 19:16:50 -07:00
Bill McCloskey
a03d13bb12
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
2eda321cd6
Merge last green changeset from mozilla-inbound to mozilla-central
2011-10-21 10:00:11 +02:00
Kyle Huey
beebeb77d2
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
bc7b8d4e4a
Bug 697016 - Add js-total-* memory reports. r=bhackett.
2011-10-27 22:20:36 -07:00
Nicholas Nethercote
745d258854
Bug 697016 - Refine per-compartment JS reporters. r=bhackett.
2011-10-27 22:19:57 -07:00
Bobby Holley
d5d2d09813
Bug 693341 - Test arrays of iid_is params. r=khuey
2011-10-27 12:43:38 -07:00
Bobby Holley
7720c2935a
Bug 693341 - Improve array and interface comparisons. r=khuey
2011-10-27 12:43:38 -07:00
Bobby Holley
5ca6c17619
Bug 693341 - Test iid_is(). r=khuey
2011-10-27 12:43:38 -07:00
Bobby Holley
44c0919430
Bug 693341 - Test interface arrays. r=khuey
2011-10-27 12:43:38 -07:00
Bobby Holley
74c7ab692e
Bug 693341 - Introduce a few test interfaces. r=khuey
2011-10-27 12:43:38 -07:00
Bobby Holley
7d7747c7fb
Bug 693341 - Test sized strings. r=khuey
2011-10-27 12:43:38 -07:00
Bobby Holley
615dab06a5
Bug 693341 - Test arrays of strings. r=khuey
2011-10-27 12:43:38 -07:00
Bobby Holley
aa5ddae600
Bug 693341 - Test arrays of arithmetic types. r=khuey
2011-10-27 12:43:38 -07:00
Bobby Holley
af4f5c096f
Bug 693341 - Use comparators for everything in test_params.js. r=khuey
2011-10-27 12:43:38 -07:00
Bobby Holley
0a69545963
Bug 695138 - Fix inout memory leak in XPConnect tests. r=khuey
2011-10-27 12:43:38 -07:00
Chris Jones
36a3e64b21
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
e458977e51
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
b7d5ddadd1
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
917650ed49
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
7711ccd24c
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
fbcc34faa9
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
d88cbc7432
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
96ea03ed3b
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
71bcd6a86a
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
e203a37e8a
Bug 668855, part 3: hook up CC to JS WeakMap callback. r=peterv
2011-11-24 07:35:56 -05:00
David Anderson
abd24522a3
Remove browser prefs for the tracer (bug 698201 part 7, r+sr=gal).
2011-11-22 17:41:43 -05:00
David Anderson
195a08ec39
Remove tracer from XPConnect (bug 698201 part 6, r=bholley).
2011-11-22 17:41:43 -05:00
Steve Fink
e58689eb87
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
10e7c920af
Bug 700992 - Fix GCC compile warnings in XPConnect. r=bholley,gal.
2011-11-20 20:10:58 -08:00
Bill McCloskey
aa02c64dc0
Bug 703699 - Fix use-after-free problem with write barriers and XPConnect (r=bhackett)
2011-11-18 22:35:17 -08:00
Andrew McCreight
a9c603671e
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
1cf256b6b1
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
ab79874995
Bug 694261 - link xpcshell against jemalloc on ia64. r=bz
2011-10-20 09:55:18 +02:00
Bobby Holley
40d46c8588
Bug 677788 - Remove use of length_is xpt value from gecko. r=mrbkap
2011-11-06 13:32:25 +01:00
Bobby Holley
ea72bd171f
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
e24474f21c
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
b4eeea3edf
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
2d748c8dcf
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
9514f6e6dc
Bug 625639 - fix XPCConvert error handling (r=mrbkap)
2011-10-28 12:35:35 -07:00
Rail Aliiev
a2113b4d42
Bug 616542 - Shorten file path length of mochitest; r=ted
2011-11-04 21:13:42 +00:00
Boris Zbarsky
38477a5c7a
Bug 698495 part 5. Implement getElementIfPresent on nodelist proxies. r=peterv
2011-11-04 12:25:18 -04:00
Boris Zbarsky
12f0cece05
Bug 698495 part 2. Add an optional getElementIfPresent ObjectOps hook. r=waldo
2011-11-04 12:19:00 -04:00
Boris Zbarsky
9354436422
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
be7ac58cc0
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
f643cfb775
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
0016e0b720
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
15ab33cbf1
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
1deb9f1504
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
3b262d78a9
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
1bb2d1626a
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
5fa67397c4
Bug 677085 - Merge "nsIDOMNSHTMLFrameElement" into "nsIDOMHTMLFrameElement"; r=bz
2011-10-15 09:34:31 +02:00
Bobby Holley
7f325312cf
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
42dd1d20b0
Bug 688012 - Manual fixup of overzealous brace hoisting. r=mrbkap
2011-10-14 10:52:49 -07:00
Bobby Holley
2c9d7a0be0
Bug 688012 - Manual fixup of multi-line c++ cast alignment. r=mrbkap
2011-10-14 10:52:49 -07:00
Bobby Holley
132fbd5cc2
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
aaa90904d5
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
4aabe5e4c9
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
6add62caad
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