Commit Graph

211 Commits

Author SHA1 Message Date
Birunthan Mohanathas
e52329c788 Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
The bulk of this commit was generated by running:

  run-clang-tidy.py \
    -checks='-*,llvm-namespace-comment' \
    -header-filter=^/.../mozilla-central/.* \
    -fix
2015-07-13 08:25:42 -07:00
Andrew McCreight
aeff7c99ee Bug 1152551, part 2 - Fix mode lines in dom/. r=jst 2015-05-03 15:32:37 -04:00
Jon Coppeard
270fbaef21 Bug 1159714 - Templatise AutoVectorRooter implementation r=terrence 2015-05-01 16:26:10 +01:00
Boris Zbarsky
f3b244998d Bug 1155946 part 2. Add mayResolve methods to DOM classes with resolve hooks. r=peterv 2015-04-28 12:25:55 -04:00
Andrea Marchesini
df46aa0f1d Bug 1156632 - Remove unused forward class declarations - patch 1 - dom/base, r=ehsan 2015-04-22 08:29:15 +02:00
Ehsan Akhgari
33bb32f549 Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
This patch was automatically generated using the following script:

function convert() {
echo "Converting $1 to $2..."
find . \
       ! -wholename "*/.git*" \
       ! -wholename "obj-ff-dbg*" \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Jon Coppeard
48edaed9e4 Bug 1130439 - Trigger compacting GCs after the user becomes inactive r=smaug r=terrence 2015-02-24 09:40:02 +00:00
Ryan VanderMeulen
ff819da594 Backed out changeset cd6461410a7a (bug 1130439) for frequent SM test timeouts/failures.
CLOSED TREE
2015-02-24 15:11:08 -05:00
Jon Coppeard
3738cefe40 Bug 1130439 - Trigger compacting GCs after the user becomes inactive r=smaug r=terrence 2015-02-24 09:40:02 +00:00
Trevor Saunders
83894d3785 bug 1122254 - use MOZ_OVERRIDE more in dom/ r=bz 2015-01-19 17:41:13 -05:00
Andrew McCreight
c9d7738e83 Bug 1111076 - Get rid of nsIScriptContext::GC(). r=smaug 2014-12-16 08:02:27 -08:00
Olli Pettay
91ef2e5d56 Bug 1105089, try to have shorter ICC slices during animations, r=mccr8
--HG--
extra : rebase_source : bfe8cc2825b7cb2ec86f6e8f5ba590593e1c378b
2014-11-27 13:47:51 +02:00
Terrence Cole
4ebff1153f Bug 1099287 - Remove the unused nsJSContext::ReportPendingException; r=bholley
--HG--
extra : rebase_source : 5bd2dd41b5687632af5380a241ab683e1de8bc41
2014-11-14 14:58:58 -08:00
Olli Pettay
7598f73a1c Bug 1097302, increase the number of major forget skippables, r=mccr8
--HG--
extra : rebase_source : b465ff26006f688cb76d0f3bfe0ed1a564081992
2014-11-12 21:33:50 +02:00
Bobby Holley
215542cfa3 Bug 1062077 - Merge NS_ScriptErrorReporter and xpc::SystemErrorReporter. r=bz
We keep the latter name because it's referenced in more places. Error reporters
will go away entirely in bug 981187.
2014-09-08 16:30:11 -07:00
Bobby Holley
25ec5c8219 Bug 1062077 - Hoist console logging duties into xpc::ErrorReport. r=bz 2014-09-08 16:30:11 -07:00
Bobby Holley
35d62e8c00 Bug 1062077 - Introduce xpc::ErrorReport. r=bz
I've got it! Let's just wrap the JS thing in an XPCOM thing that duplicates
its fields with a different ownership model! We totally need another one of
those, right? And we could even stick it in XPConnect! </sarcasm>

In seriousness - the code to own, format, and display error reports is
currently spread between the JS engine, JSErrorReporters, an async Runnable
abstraction, and elsewhere. We need to condense it somewhere to start chipping
away at this mess.
2014-09-08 16:30:10 -07:00
Benoit Jacob
747dcfc8a0 Bug 1028588 - Fix dangerous public destructors in the rest of dom/ - r=ehsan 2014-06-23 15:56:07 -04:00
Andrew McCreight
a1e6587a6b Bug 1019101 - Add a way to get the max CC pause during a given period of time. r=smaug 2014-06-14 16:43:45 -07:00
Ms2ger
16c9273f30 Bug 1018103 - Remove support for the "JavaScript-global-static-nameset" category; r=bholley
The only in-tree consumer was removed in bug 1012320; the addons MXR and a web
search suggest that it is unused outside the tree as well.
2014-06-06 10:06:26 +02:00
Ms2ger
3e6905c911 Bug 1007243 - Remove nsJSContext::GarbageCollectNow's unused IsCompartment argument; r=bholley
It has been unused since changeset 82f8c3925056 in bug 903212.
2014-05-20 21:50:59 +02:00
Andrew McCreight
8ad82b0c1c Bug 958353, part 3 - Finish any IGC in progress when manually triggering an ICC slice. r=smaug 2014-05-13 11:58:39 -07:00
Andrew McCreight
8da461bde5 Bug 949607, part 2 - Add and use runNextCollectorTimer. r=smaug 2014-04-25 13:21:04 -07:00
Ms2ger
125d1cbbd1 Bug 973950 - Remove sContextList from nsJSEnvironment; r=bholley 2014-03-27 21:05:15 +01:00
Bobby Holley
5b7986dd28 Bug 986304 - Stop using (and kill) BindCompileEventHandler. r=bz 2014-03-21 23:31:02 -03:00
Bob Owen
4522a79449 Bug 978042 - Part 8: AutoPushJSContext in nsXBLProtoImplField::InstallField. r=bholley 2014-03-19 12:09:33 +00:00
Andrew McCreight
150f32e631 Bug 979047, part 4 - Run ICCSliceTime() after PrepareForCollectionSlice. r=smaug
This way we take into account time spent finishing off a GC, or something.
2014-03-04 16:21:48 -08:00
Jon Coppeard
b6588e8cbf Bug 965830 - Remove AutoArrayRooter from the public API r=terrence r=smaug 2014-02-11 10:59:15 +00:00
Andrew McCreight
b6ece55812 Bug 950959 - Rename scheduled cycle collector stuff to slice. r=smaug 2014-01-01 11:00:35 -08:00
Andrew McCreight
f83384339e Bug 937960, part 3 - Pass in a small time budget with ICC. r=smaug 2013-12-22 09:58:19 -05:00
Andrew McCreight
b06340db9a Bug 937960, part 2 - Add ICC slice timer and scheduling. r=smaug 2013-12-21 09:35:08 -05:00
Ryan VanderMeulen
383add0e97 Backed out changesets ccdc3d4f4571, 4dcc91e771e3, 0ae14946314b, and 94d22ab0b17f (bug 937960) for Windows 7 debug xpcshell failures. 2013-12-19 16:57:55 -05:00
Andrew McCreight
380df2f061 Bug 937960, part 3 - Pass in a small time budget with ICC. r=smaug 2013-12-18 21:22:55 -08:00
Andrew McCreight
ba6fd07613 Bug 937960, part 2 - Add ICC slice timer and scheduling. r=smaug 2013-12-18 21:22:55 -08:00
Ryan VanderMeulen
75c2b59eb5 Backed out changesets b03bd1170d1c, 419615a1195d, a1b699b80442, and 524c573fd8a6 (bug 937960) for Win7 debug xpcshell orange. 2013-12-18 19:04:11 -05:00
Andrew McCreight
c6cd1b5b90 Bug 937960, part 3 - Pass in a small time budget with ICC. r=smaug 2013-12-18 11:42:16 -08:00
Andrew McCreight
78104dd42d Bug 937960, part 2 - Add ICC slice timer and scheduling. r=smaug 2013-12-18 11:42:16 -08:00
Ehsan Akhgari
d4490ee3c7 Bug 947736 - Build modules/libpref/ in unified mode; r=bsmedberg 2013-12-10 18:10:01 -05:00
Andrew McCreight
319fed2c0e Bug 935721, part 10 - Separate nsCycleCollector_collect and nsCycleCollector_scheduledCollect. r=smaug 2013-11-20 14:35:17 -08:00
Andrew McCreight
3eed280708 Bug 935721, part 5 - Invert the control flow of CycleCollectNow's pre- and post-collection work, add CCResults as a field on the CC. r=smaug
nsJSEnvironment::CycleCollectNow does work before and after a CC runs. With ICC, nsJSEnv won't
know where in the CC when a CC is about to begin or end, so this patch reorganizes that work
into two separate callback hooks.  This requires adding a new struct, CycleCollectorStats, to
hold data nsJSEnv needs between the two calls.

Rather than trying to pass around a pointer to a results structure, this patch just adds
it to the nsCycleCollector struct, and always stores them. The results are passed back
to the end CC callback.
2013-11-20 14:35:16 -08:00
Bobby Holley
15add0796f Bug 840488 - Remove per-JSContext script toggling. r=bz
Note that the checks in nsJSEnvironment::EvaluateString and EvalInWindow
can safely go away, because we call ssm->ScriptAllowed() in
nsJSUtils::EvaluateString.
2013-11-12 16:43:35 -08:00
Nikhil Marathe
8349e7f288 Bug 933010 - AsyncErrorReporter takes bool isChromeError. r=bz 2013-10-30 16:17:36 -07:00
Eddy Bruel
89a41114bc Bug 880330 - Refactor dom to use the new options API (1/2); r=khuey 2013-10-28 12:48:23 +01:00
Brian Hackett
2e644832a0 Bug 906371 - Use off thread JS parsing when loading async scripts, r=bz,billm. 2013-09-11 17:42:09 -06:00
Bobby Holley
b8f437054d 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-09-04 14:06:57 -07:00
Bobby Holley
6d001e824e 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-09-04 14:06:56 -07:00
Bobby Holley
7932b397fb Bug 899367 - Have nsGlobalWindow go through nsJSContext to access the outer. r=mccr8 2013-09-04 14:06:55 -07:00
Bobby Holley
9ed5f11e8d 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-09-04 14:06:54 -07:00
Bobby Holley
8abcb2d562 Bug 899367 - Explicitly trace outer windows, rather than doing it via JSContext iteration. r=mccr8 2013-09-04 14:06:54 -07:00
Boris Zbarsky
ec93636aa6 Bug 903419 part 2. Report unhandled rejections in promises. r=smaug,bholley,luke 2013-08-29 00:30:06 -04:00