Commit Graph

2715 Commits

Author SHA1 Message Date
Jon Coppeard
7f7a4918ef Bug 918373 - GC: Handlify various public APIs r=sfink r=bholley r=smaug 2013-09-20 10:22:59 +01:00
Jon Coppeard
7ff6b4f343 Bug 917757 - Don't trigger Heap<T> post barriers in XPConnect shutdown r=bholley 2013-09-20 10:22:58 +01:00
Cykesiopka
f093a0dd48 Bug 914272 - Move IS_COMPONENT to mozbuild. r=joey 2013-09-19 17:29:32 -04:00
Benoit Jacob
229d2760cd Bug 913847 - Include MainThreadUtils.h instead of nsThreadUtils.h - r=ehsan 2013-09-19 09:54:42 -04:00
Jon Coppeard
692778cddf Bug 917798 - Handlify JS exception APIs r=terrence r=bz 2013-09-19 08:54:01 +01:00
Wes Kocher
0b90687d1e Backed out changeset 040522aacba4 (bug 913847) 2013-09-18 17:18:56 -07:00
Benoit Jacob
5526ea7b69 Bug 913847 - Include MainThreadUtils.h instead of nsThreadUtils.h - r=ehsan 2013-09-18 18:50:32 -04:00
Mike Hommey
18d895f774 Bug 917086 - Disallow DIRS, PARALLEL_DIRS and TEST_DIRS under TOOL_DIRS and TEST_TOOL_DIRS, and adapt moz.build files accordingly. r=gps
Also mark TOOL_DIRS/TEST_TOOL_DIRS directories in backend.mk and recurse them normally instead of forcing make -C dir libs for them.
2013-09-19 07:43:02 +09:00
Bobby Holley
75ca6697e7 Bug 916939 - Drop support for named and indexed access on cross-origin windows. r=bz 2013-09-18 08:39:48 -07:00
Bobby Holley
d8093d7da1 Bug 914939 - Don't assert against OOM in XPCWrappedJS QI hooks. r=gabor 2013-09-18 08:34:12 -07:00
Eddy Bruel
9a31e9df80 Make Debugger.Source load the source text if it is not retained (bug 916845). r=jimb 2013-09-17 15:37:00 +03:00
Dan Gohman
40cd63cb8f Bug 916683 - SpiderMonkey: Tidy up misc preprocessor stuff. r=n.nethercote 2013-09-17 15:44:42 -07:00
Bobby Holley
0d2304d27f Bug 905926 - Remove workaround in xpcshell. r=billm 2013-09-17 09:46:33 -07:00
Bobby Holley
70c61fbb90 Bug 905926 - Be more explicit about GCing twice in the nsXPConnect destructor. r=billm
In the current setup, we'll end up GCing once when destroying the SafeJSContext,
and then once again immediately after in the explicit GC we do before destroying
the XPCJSRuntime. It would be nice to avoid the first GC entirely, but we
currently need both to avoid leaking.

All in all, these patches cause us to GC three times during shutdown, rather
than twice as we did before, because the second GC was rolled together with
the runtime destruction GC when we destroyed the last JSContext. There are a
number of ways to eliminate these, at least in opt builds, but mccr8 thinks
it probably doesn't matter, since there shouldn't be much left in the heap after
the second GC.

We can probably get away with eliminating rambo GC entirely at some point. But
this might become irrelevant for the browser if we end up doing bug 662444.

It would also be interesting to see what, if anything, the rambo GC actually
collects. We might even be able to get away with asserting that all the zones
are gone and removing the GC entirely.

We also take the opportunity to kill mOwnSafeJSContext, which no longer holds
any meaning.
2013-09-17 09:46:32 -07:00
Bobby Holley
5edbdecb7b Bug 905926 - Invoke JS_DestroyRuntime before we totally tear down the XPCJSRuntime. r=billm 2013-09-17 09:46:31 -07:00
Bobby Holley
6c47406af4 Bug 905926 - Stop creating an ephemeral JSContext during XPConnect shutdown. r=billm
This interacts badly with our attempts to shut things down nicely, and happens
to be entirely unused. the primary impact of it ends up being that the cx
destruction triggers a GC, which we depend on. But we can do that manually.
2013-09-17 09:46:31 -07:00
Bobby Holley
a1adca6383 Bug 916983 - Stop allowing writes for named access to cross-origin properties. r=bz 2013-09-17 09:46:30 -07:00
Bobby Holley
6ac3a94356 Bug 860494 - Tests. r=bz 2013-09-17 09:46:30 -07:00
Ehsan Akhgari
cae602f7aa Bug 917267 - Remove some unneeded code in xpconnect; r=bholley 2013-09-17 12:38:56 -04:00
David Zbarsky
bf6b847c2b Bug 915813: Remove nsIDOMUserProximityEvent r=smaug 2013-09-14 14:59:51 -04:00
David Zbarsky
fd6415d492 Bug 915813: Convert DeviceLightEvent to webidl-only r=smaug 2013-09-14 14:59:50 -04:00
Brian Hackett
602e976657 Bug 915473 - Distinguish stack type sets from compiler-created temporary type sets, r=jandem. 2013-09-12 18:30:03 -06:00
Bobby Holley
be42c6d9ad Bug 891891 - Back out crash diagnostics. r=me 2013-09-12 12:31:15 -07:00
Ryan VanderMeulen
10c13ed83a Merge m-c to inbound. 2013-09-11 22:20:33 -04:00
Ryan VanderMeulen
ed0259103b Merge fx-team to m-c. 2013-09-11 21:48:20 -04:00
Bobby Holley
b2dcf6a05b Bug 856437 - Remove same-compartment permissive Xray machinery. r=gabor 2013-09-11 11:28:21 -07:00
Bobby Holley
4027a5e573 Bug 856437 - Remove lookupMethod API. r=gabor 2013-09-11 11:28:20 -07:00
Bobby Holley
9cb475bcc4 Bug 856437 - Remove LookupMethod test coverage. r=gabor 2013-09-11 11:28:20 -07:00
Mike Hordecki
7d44f15b4a Bug 898559 - Add metadata API for add-on globals. r=bholley 2013-09-11 09:50:15 -04:00
Olli Pettay
8b192e2bbe Bug 900904 - Support webidl-only generated events, r=khuey,gps
--HG--
extra : rebase_source : cda37d1ae2ff9b969d081fe0ec103d4f07098a3b
2013-09-10 21:27:39 +03:00
Kannan Vijayan
5dbe9b1217 Bug 905523 - On windows, incrementally touch large baseline frames before using them. r=efaust 2013-09-10 06:19:30 -04:00
Ehsan Akhgari
4bfc25a75e Bug 913851 - Minimize the #includes in js/xpconnect; r=bholley
X-Git-Commit-ID: 78e6843063b303780a7dd2695dd2824a0a9c9a3c

--HG--
extra : rebase_source : 1dfcc228f43c68efbbc74f639570c227c26ef025
2013-09-09 23:14:10 +02:00
Boris Zbarsky
ed2b7d9230 Bug 913670. Give scripts evaluated via evalInSandbox 1-based line numbers. r=bholley 2013-09-09 22:11:22 -04:00
Terrence Cole
64cd017449 Bug 912813 - Do not store an unrooted object in CompartmentOptions; r=bholley
--HG--
extra : rebase_source : b14639e8c2c2806401077c6bea3d4ce21be51886
2013-09-10 10:01:10 -07:00
Andrea Marchesini
443f276420 Bug 848294 - Update MessageEvent to be compatible with the spec, r=bz 2013-09-11 16:10:01 +02:00
Dan Gohman
a50084b38d Bug 910823 - Constify static js::Class/JSClass instances. r=waldo 2013-09-11 05:49:05 -07:00
Nicholas Nethercote
53f2057a6b Bug 911641 (part 2) - Prefix some reporters with "redundant/", and make about:memory ignore them. r=johns.
--HG--
extra : rebase_source : 9ed48217ecb8af66256ddbdb70ad9f6b5d049582
2013-09-03 20:06:36 -07:00
Nicholas Nethercote
fbf85946b7 Bug 911641 (part 1) - Remove about:compartments, and show the compartment and ghost window lists into about:memory. r=johns.
--HG--
extra : rebase_source : c1ef005e272048e2eb84b20bafff15bcb5aae511
2013-09-03 20:05:17 -07:00
David Zbarsky
5e12eb5de7 Bug 856373 - WebIDL-ify Gamepad events r=smaug 2013-09-11 18:35:51 -04:00
David Zbarsky
84f303b8c3 Bug 915248 - Convert DeviceProximityEvent to webidl-only r=smaug 2013-09-11 18:35:51 -04:00
Bobby Holley
7b2e2a93a1 Bug 914325 - Leave ourselves some room to make the call into chrome. r=luke 2013-09-11 15:24:09 -07:00
Nicholas Nethercote
7983bb2a7f Bug 910517 (3rd attempt) - Remove nsIMemoryReporter, and rename nsIMemoryMultiReporter as nsIMemoryReporter. r=mmcr8.
--HG--
rename : content/canvas/src/WebGLMemoryMultiReporterWrapper.h => content/canvas/src/WebGLMemoryReporterWrapper.h
extra : rebase_source : 2b2a1b2667d6562fcf803ec48b4a8c10fdd519a3
2013-08-27 16:24:51 -07:00
Nikhil Marathe
ae7fc7fa18 Bug 901291 - Get WebIDL callbacks working on Workers. r=khuey 2013-09-09 14:58:29 -07:00
Ehsan Akhgari
354328adc4 Bug 913830 - Remove more unneeded #includes from the xpconnect IDL files; r=bholley 2013-09-09 22:37:37 +02:00
Ed Morley
f7bce95a91 Backed out changeset 5c9f3fb14995 (bug 910517) for Android talos failures
--HG--
rename : content/canvas/src/WebGLMemoryReporterWrapper.h => content/canvas/src/WebGLMemoryMultiReporterWrapper.h
2013-09-09 16:07:48 +01:00
Nicholas Nethercote
cc604f4854 Bug 910517 - Remove nsIMemoryReporter, and rename nsIMemoryMultiReporter as nsIMemoryReporter. r=mmcr8.
--HG--
rename : content/canvas/src/WebGLMemoryMultiReporterWrapper.h => content/canvas/src/WebGLMemoryReporterWrapper.h
extra : rebase_source : 76bf96ce8d6e16c8573584d9e8e70c80371f66eb
2013-08-27 16:24:51 -07:00
Nicholas Nethercote
48268c5407 Bug 910771 (part 1) - Create js/Tracer.h and gc/Tracer.cpp. r=terrence. 2013-09-02 22:01:18 -07:00
Kyle Huey
bf7d0aa16a Bug 911258: Part 5 - Use the unified exception handling mechanism on workers. r=bz 2013-09-08 20:29:21 -07:00
Kyle Huey
c6389ea0fa Bug 911258: Part 4 - Refactor exception implementations. r=bz 2013-09-08 20:28:50 -07:00
Kyle Huey
bf2b356316 Bug 911258: Part 3 - Convert exceptions to WebIDL. r=bz 2013-09-08 20:28:49 -07:00