Olli Pettay
1c1078d993
Bug 725768 - BBP for ObjectHolders, r=mccr8
...
--HG--
extra : rebase_source : 31e088050144099582d035f758d716516885ebd3
2012-02-10 21:50:37 +02:00
Ed Morley
8d711e3c7b
Merge last PGO-green changeset of mozilla-inbound to mozilla-central
2012-02-10 12:14:39 +00:00
Ms2ger
74c383e999
No bug - Propagate false return value from xpc_qsThrowMethodFailedWithDetails; r=bz
2012-02-07 21:31:29 +01:00
Jeff Walden
3252341ae4
Bug 725888 - Remove some js_GetClassPrototype calls, using faster methods on GlobalObject instead. Also introduce JS_GetObjectPrototype to retrieve Object.prototype so that a friend API can be made un-friendly. r=dmandelin
...
--HG--
extra : rebase_source : d68d7f1fdcc1bc9a1a027c08ea62bebd8e9d0178
2012-02-07 11:45:18 -08:00
Igor Bukanov
748c9f34a7
bug 724310 - drop cx argument from JSObject field and fixed slots infallible API. r=:Waldo
...
--HG--
extra : rebase_source : b78519db2ff008eb5143676d2db47935f0e89f45
2012-02-05 21:07:23 +01:00
Igor Bukanov
38fe4ed717
backout merge for bug 724310. r=irc
2012-02-09 21:28:22 +01:00
Igor Bukanov
e4e3433d0c
bug 723517 - drop cx argument from JSObject field and fixed slots infallible API. r=:Waldo
...
--HG--
extra : rebase_source : c461dfc0e0e0462ab262cc01c2a771d3bb0971cc
2012-02-05 21:07:23 +01:00
Bobby Holley
f6d1b22438
Bug 622301 - Remove now-obsolete 'callee' parameter. r=mrbkap
2012-02-07 18:06:41 -08:00
Bobby Holley
f8c175e066
Bug 622301 - Don't use XPCWrappedNative::GetWrappedNativeOfJSObject in quickstub unwrapping. r=mrbkap
2012-02-07 18:06:34 -08:00
Igor Bukanov
b7af0543dc
bug 660441 - removal of cx parameter from IsAboutToBeFinalized. r=anygregor
2012-02-08 01:51:32 +01:00
Andrew McCreight
f8cd31c84a
Bug 696174 - Log JS heap at the same time as CC heap. r=bholley,smaug
2012-02-02 16:32:30 -08:00
Igor Bukanov
146c8750f5
bug 724810 - storing finalizer in external strings directly. r=luke
...
--HG--
extra : rebase_source : d3222c685190bbdbe9446628f2f73f2a6f81eb11
2012-02-07 19:44:54 +01:00
Jason Orendorff
17cd06a094
Bug 699565 - Part 4 - for-of loops on array-like DOM object. r=bz.
2012-02-07 12:57:17 -06:00
Marco Bonardo
b7c136e7dc
Bug 722254 - Add an XPCOMUtils method to generate a singleton factory.
...
Use the new factory in Places js services, to ensure they can't be instanced multiple times.
r=bsmedberg
2012-02-07 10:17:42 +01:00
Nicholas Nethercote
610b65aebb
Bug 689583 - Add names for memory multi-reporters. r=jlebar.
...
--HG--
extra : rebase_source : adb3fb2cbbb8a07b60edd48c7dc9a3a4a4763b79
2012-02-06 17:02:59 -08:00
Andrew McCreight
3c119f3dbc
Bug 724398 - specialize GCThingIsMarked to GRAY. r=billm
2012-02-05 19:43:35 -08:00
Nicholas Nethercote
0a958739f2
Bug 722609 - Rename the js-total memory reports. r=luke.
2012-01-30 20:03:29 -08:00
Nicholas Nethercote
26f5d80631
Bug 722595 - Add memory reporters for misc things hanging off JS objects. r=bhackett.
...
--HG--
extra : rebase_source : 211b35134923f4cb99625bb240b96e81f0f28b4b
2012-01-30 18:12:03 -08:00
Masatoshi Kimura
28e1453f25
Bug 723894 - Crash when Web IDL dictionary object is null; r=mrbkap
2012-02-05 18:57:46 +00:00
Igor Bukanov
3163d5e91e
bug 723517 - Drop cx argumrent from JS_GetClass(cx, obj). r=luke
2012-02-04 01:54:57 +01:00
Luke Wagner
5d8152652b
Bug 722594 - Remove xpc_CreateMTGlobalObject and mMTCompartmentMap (r=mrbkap)
...
--HG--
extra : rebase_source : 6dd76009eb8029499efcbe6bbb0b74d58000612c
2012-02-01 13:36:51 -08:00
Luke Wagner
f5e853cb76
Bug 692269 - Remove jsstr.h, vm/String.h, jsautokw.h, jsclone.h, jsopcode.tbl, jsopcode.h, jsstdint.h from INSTALLED_HEADERS (r=billm)
...
--HG--
extra : rebase_source : f9e20f1d52987251ad3d58c76531dcd5135076ad
2012-01-30 09:17:38 -08:00
Blake Kaplan
1343f4e23c
Bug 723111 - Add an option to js::UnwrapObject so that it doesn't stop at outer windows when unwrapping. This is useful for cases where we are trying to find the wrapped native for a security wrapper. r=bzbarsky
2012-01-26 14:55:27 +01:00
Igor Bukanov
bd4db6e9ef
bug 723021 - moving native stack limits into runtime. r=luke
2012-01-31 23:28:22 +01:00
Phil Ringnalda
ba92819c8c
Back out 9aac714775b9 (bug 723111) for make check orange
2012-02-01 10:25:04 -08:00
Blake Kaplan
214339dab1
Bug 723111 - Add an option to js::UnwrapObject so that it doesn't stop at outer windows when unwrapping. This is useful for cases where we are trying to find the wrapped native for a security wrapper. r=bzbarsky
...
--HG--
extra : rebase_source : 51216cf21b63554e50633c89f393c5888241dee2
2012-01-26 14:55:27 +01:00
Peter Van der Beken
801dbb695f
Fix for bug 717009 (Inline ListBase<LC>::instanceIsListObject and ListBase<LC>::getListObject). r=bz.
...
--HG--
extra : rebase_source : 368514fa942cb31751e5c6b4ff9d206c1bb609bc
2011-11-09 11:37:47 +01:00
Peter Van der Beken
85e454d39a
Fix for bug 716997 (Allow new DOM bindings with 0 methods or properties). r=jst.
...
--HG--
extra : rebase_source : 2b16fa38254362cdedc136a8a4b07261ab2f6a76
2011-10-14 23:21:39 +02:00
Peter Van der Beken
d72b55a274
Fix for bug 693811 ("Assertion failure: shouldCacheProtoShape(cx, proto, &shouldCache) && shouldCache" in ListBase::nativeGet). r=mrbkap.
...
--HG--
extra : rebase_source : 5baa4b1afeecf64e7f1945869e9cd2ae9045b44c
2011-10-14 23:29:36 +02:00
Boris Zbarsky
0c74b1ef90
Bug 722729. Expose a public API for LinkConstructorAndPrototype. r=bhackett
2012-01-31 22:40:49 -05:00
Nicholas Nethercote
4f29e66f41
Bug 671299 (part 3) - Add style sheet memory reporters. r=dbaron.
2012-01-02 18:19:14 -08:00
Brian Hackett
4f5cff94b3
Don't run compile-and-go scripts on globals with a cleared scope, bug 680456. r=dmandelin
2012-01-31 16:36:07 -08:00
Sander van Veen
2cc3dbdefc
Bug 681556 - Default sandboxName to the caller's filename. r=mrbkap.
2012-01-30 20:06:41 -08:00
Nicholas Nethercote
f8d13343dd
Bug 721628 (part 5) - Use size_t instead of int64_t in some JS memory reporting structs. r=luke.
...
--HG--
extra : rebase_source : c3e13b8042b8914ae16cee38b0299f6164ba9222
2012-01-29 14:13:18 -08:00
Nicholas Nethercote
a95d674a91
Bug 721628 (part 4) - Use better names for various JS memory reporting things. r=Ms2ger.
...
--HG--
extra : rebase_source : 4edc916c571906329075b6be68c245267f9b61d0
2012-01-29 14:11:32 -08:00
Nicholas Nethercote
cdf1a57711
Bug 721628 (part 3) - Rename several size type-inference-related measurement functions and types. r=bhackett.
...
--HG--
extra : rebase_source : e66bc2d787c31de93ff80280597543cf47924967
2012-01-26 19:09:31 -08:00
Nicholas Nethercote
78f85ce4f6
Bug 721628 (part 2) - Remove mention of slop bytes from JS memory reporter descriptions. r=luke.
...
--HG--
extra : rebase_source : f9babd22a734eae87a5f671f8ac405939d27e690
2012-01-26 05:55:03 -08:00
Igor Bukanov
cbdb18c744
bug 722348 - eliminate JSRuntime::requestCount. r=luke
2012-01-30 11:15:13 +01:00
Jon Buckley
ae7d4a9222
Bug 721230 - Implement a compressed texture support stub for WebGL conformance. r=bjacob
2012-01-28 16:15:27 -05:00
Andrew McCreight
3d62207de2
Bug 693527 - tell the cycle collector about watchpoints. r=jorendorff
2012-01-27 17:13:21 -08:00
Peter Van der Beken
dbcf0d05b8
Back out 570dd369e02a, bc777c65c5ca and 12a483042e9a to fix bustage
2012-01-27 15:34:30 +01:00
Peter Van der Beken
0be5698e7f
Fix for bug 717009 (Inline ListBase<LC>::instanceIsListObject and ListBase<LC>::getListObject). r=bz.
...
--HG--
extra : rebase_source : 661d5fc98c76506ab6abccd057a0ce1e8cf6b0f8
2011-11-09 11:37:47 +01:00
Peter Van der Beken
1f204772a9
Fix for bug 716997 (Allow new DOM bindings with 0 methods or properties). r=jst.
...
--HG--
extra : rebase_source : c6a702d61a75bae8e328d9cda6a717d75829ebf3
2011-10-14 23:21:39 +02:00
Peter Van der Beken
1966324e21
Fix for bug 693811 ("Assertion failure: shouldCacheProtoShape(cx, proto, &shouldCache) && shouldCache" in ListBase::nativeGet). r=mrbkap.
...
--HG--
extra : rebase_source : 191e550e9aac822f82e771a5a21fe74f90f728cb
2011-10-14 23:29:36 +02:00
Marco Bonardo
4ed363f0ac
Merge mozilla-central to mozilla-inbound
2012-01-26 19:34:35 +01:00
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