Bobby Holley
a899450297
Bug 732665 - Tests. r=luke
2013-08-28 11:04:16 -07:00
Bobby Holley
756469507b
Bug 732665 - Use separate stack depths for XPConnect JS. r=luke
2013-08-28 11:04:16 -07:00
Bobby Holley
83137c28bf
Bug 732665 - Clean up and clarify the stack sizing logic. r=luke
...
The only change in behavior here is that we give the osx check higher precedence
than the DEBUG check, meaning that we end up with 7MB stacks on osx debug rather
than 4MB stacks. But this seems strictly better given the logic involved here.
2013-08-28 11:04:16 -07:00
Bobby Holley
4819690f50
Bug 732665 - Disable a few test on mac. r=tbsaunde,me
...
These tests trigger very slow infinite recursion in the status quo. With the
existing stack quotas, they always (or usually) hit the native stack limit
before the test times out, causing them to be green on tinderbox. But when
we bump the debug mac stack limit, they end up timing out. We have bugs on
file for the various issues, but let's not let them block this landing.
2013-08-28 11:04:15 -07:00
Boris Zbarsky
be1711a990
Bug 909645 part 4. Don't include ipdl headers in DesktopNotification.h. r=ms2ger,glandium
2013-08-28 00:14:57 -04:00
Brian O'Keefe
4f68eb9b02
Bug 875934 - Move LIBRARY_NAME to moz.build, batch 3; r=mshal
2013-08-15 09:02:09 -04:00
Nicholas Nethercote
d262cece7e
Bug 831193 (part 3) - Don't use NS_MEMORY_REPORTER_IMPLEMENT in XPCJSRuntime.cpp. r=terrence.
...
--HG--
extra : rebase_source : 09df0ea5b3bb546e5c75d59d170f54124d834b4d
2013-01-15 21:28:35 -08:00
Nicholas Nethercote
3f5d413d90
Bug 909597 (part 2) - Rename jsdbgapi.{h,cpp} as {js,vm}OldDebugAPI.{h,cpp}. r=luke.
...
--HG--
rename : js/src/jsdbgapi.h => js/public/OldDebugAPI.h
rename : js/src/jsdbgapi.cpp => js/src/vm/OldDebugAPI.cpp
extra : rebase_source : 9cd65a698e726c43d88d650f40823367bf98feae
2013-08-26 19:05:20 -07:00
Ryan VanderMeulen
3972d92239
Merge m-c to inbound on a CLOSED TREE.
2013-08-27 22:40:49 -04:00
Ryan VanderMeulen
2f3de4dea0
Backed out 12 changesets (bug 899367) for Windows and OSX mochitest failures on a CLOSED TREE.
...
Backed out changeset 46cf4c3eb447 (bug 899367)
Backed out changeset d8a876219fc7 (bug 899367)
Backed out changeset d930333f95a7 (bug 899367)
Backed out changeset efae8cc0fff8 (bug 899367)
Backed out changeset 1dd262d146a6 (bug 899367)
Backed out changeset 4c396b8a51d0 (bug 899367)
Backed out changeset c8c30176639a (bug 899367)
Backed out changeset aaa8fbcf9aaf (bug 899367)
Backed out changeset d1a782044a4b (bug 899367)
Backed out changeset b2672ab55046 (bug 899367)
Backed out changeset fc4deb0b06fa (bug 899367)
Backed out changeset b9f1018a609c (bug 899367)
2013-08-27 21:14:54 -04:00
Andrew McCreight
69fc8f5296
Bug 904826 - Remove some unneeded nsLayoutStatics calls. r=smaug,bholley,bz
2013-08-27 15:39:02 -07:00
Bobby Holley
6274710e79
Bug 899367 - Make GetNativeGlobal consumers call GetWindowProxy and rm the former. r=mccr8
...
Some of the uses of this are a bit nonsensical now, but that's a problem for
another day.
2013-08-27 15:21:40 -07:00
Bobby Holley
cff26b12ce
Bug 899367 - Remove xpc_UnmarkGrayContext. r=mccr8
...
Default compartment objects are never gray anymore.
2013-08-27 15:21:39 -07:00
Bobby Holley
05b0b5e0f2
Bug 899367 - Stop storing the window proxy on the JSContext. r=mccr8
...
We need to simultaneously report the new Heap Pointer to the cycle collector,
and remove the old machinery for cycle-collecting the default object via the
JSContext.
2013-08-27 15:21:39 -07:00
Bobby Holley
5813ab4158
Bug 899367 - Stop depending on the default compartment object for DOM JSContexts. r=mccr8
2013-08-27 15:21:38 -07:00
Bobby Holley
c93dc7b4a1
Bug 899367 - Explicitly traverse outer windows, rather than doing it via JSContext iteration. r=mccr8
...
Note that this machinery will go away in further patches. But we want to be
deliberate about each of these steps.
2013-08-27 15:21:38 -07:00
Bobby Holley
add3235319
Bug 899367 - Explicitly trace outer windows, rather than doing it via JSContext iteration. r=mccr8
2013-08-27 15:21:37 -07:00
Bobby Holley
b7966edcf1
Bug 899367 - Only use JSOPTION_UNROOTED_GLOBAL for DOM JSContexts. r=mccr8
...
We don't cycle collect any other kind, so there's no difference between marking
them gray and letting the JS engine mark them black. This also gets rid of that
nasty code which reset the flag, which billm theorizes has to do with faulty
logic in ContextHolder when creating ephemeral sandbox cxes. The assertion in
this patch should catch us if anything goes wrong.
2013-08-27 15:21:37 -07:00
Justin Lebar
a12ca3e4e8
Bug 909514 - Include <new> before mozilla::Maybe (and move Maybe into mfbt/Maybe.h). r=waldo
...
--HG--
rename : mfbt/Util.h => mfbt/Maybe.h
2013-08-27 15:10:28 -07:00
Szu-Yu Chen [:aknow]
063d6ffcc7
Bug 882983 - Part 1: Add ota status event (idl, webidl). r=hsinyi, sr=smaug
2013-08-27 08:25:53 -04:00
Mike Hordecki
368c68a39e
Bug 908918 - Fix an XPConnect typo. r=bholley
2013-08-26 11:28:26 -04:00
Geoff Brown
220e4a5f85
Bug 865006 - (4) Add more xpcshell tests for android; r=jmaher
2013-08-25 10:58:31 -06:00
Boris Zbarsky
f80a9893ef
Bug 908576 part 6. Expose just a NativePropertyHooks pointer, not the object itself, so we can forward-declare it in bindings headers. r=smaug
2013-08-23 22:42:41 -04:00
Boris Zbarsky
b89190851a
Bug 908530 part 3. Stop including xpcpublic.h in DOMJSProxyHandler.h. r=khuey
2013-08-23 22:42:40 -04:00
Boris Zbarsky
7da23c2946
Bug 908530 part 2. Fix all the places that are bootlegging things (esp nsIURI) via xpcpublic.h. r=khuey
2013-08-23 22:42:40 -04:00
Boris Zbarsky
253a8c8d80
Bug 908351. Stop over-including DOMJSClass.h, so we don't rebuild as much when PrototypeList.h changes. We do this by factoring out the slot macros into a separate header and including that. r=khuey
2013-08-23 22:42:39 -04:00
Gabor Krizsanits
73d41a24b4
Bug 886237 - follow-up part2: Comment formatting in sandbox.cpp. r=bholley
2013-08-23 09:56:03 +02:00
Gabor Krizsanits
be6a2be548
Bug 886237 - follow-up part1: Moving Sandbox/XPCComponents helpers into namespace xpc. r=bholley
2013-08-23 09:55:47 +02:00
Kyle Huey
450b0c5f42
Bug 903772: Part 9 - Use a different class in the weakmap test now that the implementation of TextDecoder has changed. r=peterv
2013-08-22 22:17:10 -07:00
Kyle Huey
8edf4de9ad
Bug 903772: Part 4 - Harmonize main thread and worker dictionary implementations. r=peterv
2013-08-22 22:17:09 -07:00
Kyle Huey
de0ee30e74
Bug 903772: Part 3 - Refactor GlobalObject. r=peterv
2013-08-22 22:17:08 -07:00
Nicholas Nethercote
d208a00ee8
Bug 905017 (part 3, attempt 2) - Move profiling stack stuff from jsapi.h to js/ProfilingStack.h. r=billm.
...
--HG--
extra : rebase_source : 8226a31c4f2a286ba843da616b1061ca034a5d41
2013-08-19 23:45:26 -07:00
Nicholas Nethercote
9ce6c39a8f
Bug 905017 (part 2, attempt 2) - Move structured clone stuff from jsapi.{h,cpp} and jsclone.{h,cpp} to js/StructuredClone.{h,cpp}. r=billm.
...
--HG--
rename : js/src/jsclone.cpp => js/src/vm/StructuredClone.cpp
extra : rebase_source : 2699588c63ef58ab84bc8c63adc0487648af3834
2013-08-19 23:43:47 -07:00
Bobby Holley
4e5093e6fa
Bug 903891 - Default the iid to nsISupports in NativeInterface2JSObject, and assert |Interface| when getting an XPCWrappedNative. r=mrbkap
2013-08-22 15:51:35 -07:00
Bobby Holley
222832d3b4
Bug 891891 - Print diagnostics when an XPCWrappedJS is QI-ed off-main-thread. r=mrbkap
...
Let's try to figure out which XPCWrappedJS is causing this. I've filed a reminder
for myself to back this out by sept 3.
2013-08-22 12:40:29 -07:00
Gabor Krizsanits
56184ed022
Bug 886237 - Splitting up XPCComponents. r=bholley
2013-08-22 08:26:37 +02:00
Ms2ger
8bfa279bb1
Merge m-c to inbound
2013-08-22 10:38:48 +02:00
Ms2ger
87ae95251c
Merge PGO-green changeset from inbound to m-c.
2013-08-22 10:31:44 +02:00
Ms2ger
f79ae70d10
Backout changesets 7e6fb33fdf22:c85332df4320 (bug 905017) for windows bustage.
2013-08-22 10:16:30 +02:00
Ms2ger
4922ccbc0a
Bug 904831 - Part b: Move unconditional MSVC_ENABLE_PGO definitions into moz.build; r=gps
2013-08-22 08:56:01 +02:00
Ms2ger
dba42e4001
Bug 883284 - Part d: Move LIBXUL_LIBRARY into moz.build (f-j); r=bsmedberg
2013-08-22 08:56:00 +02:00
Ms2ger
4d968c40e1
Bug 882859 - Part b: Move FAIL_ON_WARNINGS into moz.build; r=joey+gps
2013-08-22 08:55:59 +02:00
Ms2ger
3a227519f8
Bug 903796 - Remove remaining traces of GeoPositionError; r=jst
2013-08-22 08:30:28 +02:00
Bobby Holley
ab06fa04af
Bug 907508 - Provide a mechanism for adding extra slots for XPConnect globals. r=bz
...
mhordecki needs this in bug 898559.
2013-08-20 21:21:01 -07:00
Bobby Holley
12e2bef827
Bug 907508 - Define the slot count for xpconnect and worker globals in terms of the slots defined in DOMJSClass.h. r=bz
2013-08-20 21:21:00 -07:00
Bobby Holley
137154e93e
Bug 907508 - Drop the number of slots on XPConnect globals from 2 to 1. r=bz
...
In the old world, XPConnect globals had one reserved slot, which was used to
store a private pointer to the XPCWrappedNativeScope.
Then, in the new DOM bindings landing (bug 740069), we added two slots, one
for DOM_GLOBAL_OBJECT_SLOT, and one for DOM_PROTOTYPE_SLOT.
Then, in bug 761707, we removed DOM_GLOBAL_OBJECT_SLOT, but the slot count
remained at 3.
Then, in bug 797821, we stopped storing the XPCWrappedNativeScope in the slot
on the global, and dropped the XPConnect global count from 3 to 2.
Given the above, we can safely drop it to 1, here. It's easy to check that
this is correct, because reserved slots for globals have a different offset,
which is JSCLASS_GLOBAL_SLOT_COUNT. And according to mxr, the only thing
defined in terms of that is DOM_PROTOTYPE_SLOT (which takes the same value).
This means that all subsequent slots on the global are unused.
2013-08-20 21:21:00 -07:00
Nicholas Nethercote
c8e2369441
Bug 905017 (part 3) - Move profiling stack stuff from jsapi.h to js/ProfilingStack.h. r=billm.
...
--HG--
extra : rebase_source : 8322f1c96b95685912375484172d47f53107947f
2013-08-19 23:45:26 -07:00
Ms2ger
6004ebc69f
Backout changeset b43d38c5c456 for build bustage.
2013-08-22 09:00:37 +02:00
Andrew McCreight
ff5720d8c6
Bug 614238 - Dynamically check that classes QI to their own participant. r=smaug
2013-08-19 13:49:58 -07:00
Gabor Krizsanits
f64006605c
Bug 886237 - Splitting up XPCComponents. r=bholley
2013-08-22 08:26:37 +02:00