Olli Pettay
47b8ec859f
Bug 720686, add some cycle collection optimizations to XPC, f=mrbkap,r=mccr8
...
--HG--
extra : rebase_source : 7e8f68a30048f613acc99201c3c1e12b6f74eaba
2012-01-26 14:52:25 +01:00
Bill McCloskey
502e67c72c
Bug 706227 - Add way for JS_GC API users to give detailed reason for invocation (r=mccr8)
2012-01-25 10:59:55 -08:00
Nicholas Nethercote
dd32d38d63
Bug 715453 - Remove computedSize from nsMallocSizeOfFun. r=jlebar,bhackett.
...
--HG--
extra : rebase_source : a65039a407daab45360a5b375b53cbf1bc05b7f6
2012-01-25 00:52:51 -08:00
Nicholas Nethercote
cfcdfc66fe
Bug 720219 (part 1) - Clean up JS object measurement. r=bhackett.
...
--HG--
extra : rebase_source : ff9aa7da84814e6868fef88b56bcb038389d5fb9
2012-01-23 15:35:37 -08:00
Luke Wagner
73a1588f02
Bug 675078 - rm JSThreadData and JSThread (JSRuntime is now officially single-threaded) (r=igor,rs=mccr8)
...
--HG--
extra : rebase_source : f6d2c2c6083f4589691ede571159bfd7e7ef8701
2011-07-18 14:54:48 -07:00
Matt Brubeck
0978981988
Back out 79deba022227 (bug 675078) because of Win debug mochitest-other failures
2012-01-24 17:32:30 -08:00
Luke Wagner
0d7b41f9b5
Bug 675078 - rm JSThreadData and JSThread (JSRuntime is now officially single-threaded) (r=igor)
2011-07-18 14:54:48 -07:00
Nathan Froyd
c640d15949
Bug 714365 - DictionaryHelpers.cpp gets rebuilt on every build. r=ted
2012-01-23 07:55:21 -08:00
Ben Turner
1cd415db8f
Bug 705640 - Implement DOMError as defined in DOM 4, r=mounir.
...
--HG--
extra : transplant_source : %15%98Xx%C3%F3%89%95%94%5Eu%99%B0%CC%8B%E0V%3A4%C6
2012-01-24 02:13:41 -08:00
Bill McCloskey
5e946f0618
Bug 716033 - Move write barriers from jsapi.h to jsfriendapi.h (r=luke,bholley)
2012-01-23 16:43:12 -08:00
Andrew McCreight
4d058d5e0d
Bug 720292 - add more cycle collector edge names. r=smaug
2012-01-23 15:25:53 -08:00
Ed Morley
86d3c4e599
Backout 143f01714f2b (bug 705640) for build failures
2012-01-23 14:25:47 +00:00
Ben Turner
186eb76b2e
Bug 705640 - 'Implement DOMError as defined in DOM 4'. r=mounir.
2012-01-23 03:02:54 -08:00
Ed Morley
2fa2d9037f
Backout fcb3a7884fa9 (bug 705640) for build failures
2012-01-23 11:48:35 +00:00
Ben Turner
1d8744671b
Bug 705640 - 'Implement DOMError as defined in DOM 4'. r=mounir.
2012-01-23 03:02:54 -08:00
John Schoenick
e58ad87df1
Bug 718899 - Implement Cu.forceShrinkingGC / Cu.schedulePreciseShrinkingGC r=gwagner
2012-01-19 10:58:25 -08:00
Andrew McCreight
82cdf1adb9
Bug 718029 - don't skip JSContexts with outstanding requests. r=smaug
2012-01-17 09:38:24 -08:00
Nathan Froyd
4928a5864e
Bug 711563 - compact function specs; r=jorendorff
2011-12-29 16:23:53 -05:00
Nathan Froyd
a38b9b6e48
Bug 711563 - flatten property and function names; r=jorendorff
2011-12-29 16:20:26 -05:00
Nathan Froyd
5658f0c1f6
Bug 711563 - more compact property and function tables; r=jorendorff
2011-12-29 15:18:41 -05:00
Nathan Froyd
1b75da2f1c
Bug 711563 - reduce space required by hash entry chains; r=jorendorff
2011-12-16 14:49:53 -05:00
Justin Wood
09b3d2e3d1
Merge m-c tip to m-i
2012-01-15 05:29:24 -05:00
Ms2ger
c3ac307be0
Bug 717195 - Export dombindings.h; r=bholley
2012-01-15 09:13:12 +01:00
Ms2ger
3b70bf2777
Bug 677079 - Part aa: Expose sizeof(JSContext) in jsfriendapi.h; r=njn
2012-01-15 09:13:11 +01:00
Ms2ger
7a241b6e2d
Bug 677079 - Part z: Move JS_CHECK_RECURSION to jsfriendapi.h; r=mjrosenb
2012-01-15 09:13:11 +01:00
Ms2ger
d2bbda8564
Bug 677079 - Part y: Move AutoIdVector to jsapi.h; r=evilpie
2012-01-15 09:13:11 +01:00
Ms2ger
d088d42b35
Bug 677079 - Part x: Move AutoValueVector to jsapi.h; r=evilpie
2012-01-15 09:13:11 +01:00
Ms2ger
d7a989a022
Bug 677079 - Part v: Expose rt->compartments in jsfriendapi.h; r=jorendorff
2012-01-15 09:13:11 +01:00
Ms2ger
dd1391fb7b
Bug 677079 - Part u: Provide TriggerOperationCallbacksForActiveContexts in jsfriendapi.h; r=bhackett
2012-01-15 09:13:10 +01:00
Ms2ger
5906bcfce6
Bug 677079 - Part t: Provide IsContextRunningJS in jsfriendapi.h; r=jorendorff
2012-01-15 09:13:10 +01:00
Ms2ger
faa2fb2251
Bug 677079 - Part s: Make JS_TRACER_INIT a function instead of a macro; r=billm
2012-01-15 09:13:10 +01:00
Ms2ger
47fef8e488
Bug 677079 - Part r: Provide AutoSkipConservativeScan in jsfriendapi.h; r=luke
2012-01-15 09:13:10 +01:00
Ms2ger
a68763cbfd
Bug 677079 - Part q: Expose gcLock in jsfriendapi.h; r=gal
2012-01-15 09:13:10 +01:00
Ms2ger
59f812e2ba
Bug 677079 - Part p: Remove AutoLockJSGC in favour of js::AutoLockGC; r=bholley
2012-01-15 09:13:10 +01:00
Ms2ger
d3a8cef289
Bug 677079 - Part o: Expose setActivityCallback in jsfriendapi.h; r=gal
2012-01-15 09:13:10 +01:00
Ms2ger
e1128e53a7
Bug 677079 - Part n: Expose JSOPTION_UNROOTED_GLOBAL in jsfriendapi.h; r=gal
2012-01-15 09:13:09 +01:00
Ms2ger
d18f6233a3
Bug 677079 - Part m: Expose context's compartment in jsfriendapi.h; r=jorendorff
2012-01-15 09:13:09 +01:00
Ms2ger
53a542098a
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
481a852857
Bug 677079 - Part k: Expose outstandingRequests in jsfriendapi.h; r=cdleary
2012-01-15 09:13:09 +01:00
Ms2ger
f9031f06f9
Bug 677079 - Part i: Expose errorReporter in jsapi.h; r=mrbkap
2012-01-15 09:13:09 +01:00
Ms2ger
6b0c6353bd
Bug 677079 - Part d: Move js_GetErrorMessage to jsfriendapi.h; r=jorendorff
2012-01-15 09:13:08 +01:00
Ms2ger
10cf80e5a4
Bug 677079 - Part b: Use existing JSAPI functions where those are available; r=bholley
2012-01-15 09:13:07 +01:00
Landry Breuil
9c18b76213
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
ca9baae85f
Bug 716357 - Fix license header in FilteringWrapper.cpp; r=gerv DONTBUILD
2012-01-11 17:12:21 +01:00
Ms2ger
badf95659c
Bug 332648 - Part g: Move AutoIdArray to jsapi.h; r=evilpie
2012-01-11 09:23:09 +01:00
Ms2ger
dbd0ec7cdd
Bug 332648 - Part e: Move AutoArrayRooter to jsapi.h; r=evilpie
2012-01-11 09:23:09 +01:00
Ms2ger
28ef8d5df7
Bug 332648 - Part c: Move AutoObjectRooter to jsapi.h; r=evilpie
2012-01-11 09:23:08 +01:00
Ms2ger
41e5f45d47
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
ba150c988a
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
4c9257d038
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
5788bfeabb
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
fe9a65e24a
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
dd7e572a40
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
497b9f7e41
Bug 715634 - Cleanup XPCJSContextStack; r=bholley
2012-01-11 09:23:07 +01:00
Ms2ger
2ebe58f6e7
Bug 714728 - Remove jsword/jsuword in favour of intptr_t/uintptr_t; r=Waldo
2012-01-11 09:23:05 +01:00
Andrew McCreight
56dd519e14
Bug 708322 - never traverse non-gray JS Objects. r=billm
2012-01-09 12:02:25 -08:00
Phil Ringnalda
aee17b1ba1
Back out 3ab1dcfb2218 and 46ae4bf4aaf4 (bug 622301) for Windows PGO bustage
2012-01-14 18:56:00 -08:00
Bobby Holley
8d135fac49
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
0300fb6368
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
b4cfcc0491
Bug 622301 - Remove now-obsolete 'callee' parameter. r=mrbkap
2012-01-14 10:29:56 -08:00
Bobby Holley
68d6ea3dc1
Bug 622301 - Don't use XPCWrappedNative::GetWrappedNativeOfJSObject in quickstub unwrapping. r=mrbkap
2012-01-14 10:29:56 -08:00
Michael Kohler
bf6a5aaae5
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
6f8017d643
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
7d7562b0d4
Backout b1612e3ba9b9 & 668a56be0eef (bug 622301) for Dromaeo regressions
2012-01-07 14:17:54 +00:00
Bobby Holley
fac15f2a63
Bug 622301 - Remove now-obsolete 'callee' parameter. r=mrbkap
2012-01-06 17:29:02 -08:00
Bobby Holley
d5b089558f
Bug 622301 - Don't use XPCWrappedNative::GetWrappedNativeOfJSObject in quickstub unwrapping. r=mrbkap
2012-01-06 17:29:02 -08:00
Jeff Walden
84ad2e6e48
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
10193ec801
Bug 714418 - Remove nsIXPCScriptable::DONT_SHARE_PROTOTYPE (r=bholley, sr=mrbkap)
2012-01-04 14:13:20 -08:00
Bill McCloskey
2971953b5e
Bug 714353 - Remove nsIXPCScriptable::Trace (r=mrbkap)
2012-01-04 14:13:15 -08:00
Bill McCloskey
488641b46d
Bug 714350 - Remove nsXPConnect::RestoreWrappedNativePrototype (r=mrbkap)
2012-01-04 14:13:08 -08:00
Luke Wagner
4a0d3254fd
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
2473827347
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
055d033e8e
Bug 710805 - Assert validity in xpc_qsBasicString; r=jst
2012-01-02 19:05:19 +01:00
Ms2ger
907439a753
Bug 709086 - Don't use JS_GetParent in mozJSSubScriptLoader::LoadSubScript; r=jorendorff
2012-01-02 19:05:19 +01:00
Ms2ger
c8fd736d93
Bug 714057 - Remove uintn users from XPConnect; r=bholley+khuey
2012-01-02 19:05:19 +01:00
Ms2ger
1415925d63
Bug 713645 - Remove superfluous inclusions of jscntxt.h; r=luke
2012-01-02 19:05:19 +01:00
Bill McCloskey
8792081a10
Bug 714363 - Remove XPCWrappedNativeScope::mPrototypeJSFunction (r=bholley)
2012-01-01 14:48:15 -08:00
Nicholas Nethercote
5c8cc7d9f5
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
00746e91ea
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
bac378b0fd
Merge mozilla-central and mozilla-inbound
2011-12-28 11:17:19 -08:00
Josh Matthews
93504129e1
Bug 463122 - Propagate mozJSComponentLoader exceptions that occur while executing the script. r=mrbkap
2011-12-28 11:55:11 -05:00
Ms2ger
a63b21f505
Bug 713550 - Move Base64 code on nsXPConnect to XPCOM / xpcpublic.h; r=bholley+khuey
2011-12-28 09:13:38 +01:00
Ms2ger
5092d42217
Bug 713340 - Fix jsShell_ErrorFormatString array lengths; r=luke
2011-12-28 09:13:37 +01:00
Ms2ger
18e7b4e1b4
Bug 713553 - Remove GetRTStringByIndex; r=bholley
2011-12-28 09:13:37 +01:00
Ms2ger
006d626a6e
Bug 713554 - Remove xpc_SameScope declaration; r=bholley
2011-12-28 09:13:37 +01:00
Olli Pettay
d1c33f5f79
Bug 710380 - IndexedDB could use the dictionary reader, r=khuey
2011-12-27 20:01:28 +02:00
Boris Zbarsky
8a05054a41
Bug 707717. Don't dynamically mutate the proto chains of DOM prototypes. r=peterv
2011-12-26 11:31:07 -05:00
Phil Ringnalda
8e7c10e41c
Merge m-i <-> m-c
2011-12-24 21:50:23 -08:00
Ms2ger
15fef19c0d
Bug 711859 - Add an IsObjectInContextCompartment API; seems-better-than-the-alternative-all-things-considered=Waldo
2011-12-24 09:28:55 +01:00
Ms2ger
4bf0b93208
Bug 711748 - Remove FIT_U32 from XPCConvert; r=bholley
2011-12-24 09:28:39 +01:00
Ms2ger
972f684be5
Bug 712055 - Remove xpc_qsInt32ToJsval/xpc_qsUint32ToJsval; r=jorendorff
2011-12-24 09:28:14 +01:00
Ms2ger
f4171c7183
Bug 711826 - Remove nsJSRuntimeServiceImpl declaration; r=bholley
2011-12-24 09:28:03 +01:00
Ms2ger
1bceb595bd
Bug 692277 - Part b: Remove js/src from xpconnect LOCAL_INCLUDES; r=luke
2011-12-24 09:27:51 +01:00
Ms2ger
d261b42142
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
8d47d26d10
Bug 711240 - Part b: Expose xpc_qsStringToJsval publicly; r=bholley
2011-12-24 09:27:04 +01:00
Ms2ger
f3e7dc6e3d
Bug 711240 - Part a: Expose BAD_TLS_INDEX in xpcpublic.h; r=bholley
2011-12-24 09:26:34 +01:00
Ms2ger
50d587dc7e
Bug 711404 - Part b: Remove xpc_qsDoubleToUint64; r=bholley
2011-12-24 09:26:18 +01:00
Makoto Kato
4bd01ef782
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
84ddd624f8
Bug 712649 - Components.utils.getWeakReference(null) should fail silently; r=bholley
2011-12-24 09:20:04 +01:00
Olli Pettay
04c23412b9
Bug 709569, a tool for webidl dictionary-like interfaces, r=khuey,mrbkap
2011-12-24 00:13:46 +02:00