Commit Graph

158289 Commits

Author SHA1 Message Date
Benoit Girard
adacb10cf2 Bug 944866 - Bustage fix for gfx::pint. r=bustage on a CLOSED TREE 2013-12-03 14:07:26 -05:00
Andrew McCreight
f5b89ec477 Bug 937751, part 7 - Incrementalize nsCycleCollector::MarkRoots. r=smaug
Now that all of MarkRoots's state is stored on the heap, it can be run
incrementally. Like with Collect, it takes a budget to determine how
long it can run. Any residual budget will be available to the caller.

One difference is that Collect calls checkOverBudget() which always checks
the time, but MarkRoots uses isOverBudget() to determine if there is
any time remaining. This only checks the current time every
kNumNodesBetweenTimeChecks nodes, to reduce the overhead of checking.
2013-12-03 10:47:47 -08:00
Andrew McCreight
a04a9c127e Bug 937751, part 6 - Allocate the current MarkRoots node on the heap rather than the stack. r=smaug
To make nsCycleCollector::MarkRoots incremental, we have to store all of its state on
the heap, so we can resume it.  The only remaining state to convert is the NodePool
enumerator.
2013-12-03 10:47:47 -08:00
Andrew McCreight
f2778b1f8a Bug 937751, part 5 - Add optional phase logging. r=smaug
For debugging purposes, it can be useful to see what ICC is currently
being run.
2013-12-03 10:47:47 -08:00
Andrew McCreight
c2ec9d9510 Bug 937751, part 4 - Incrementalize nsCycleCollector::Collect. r=smaug
This patch makes it so that Collect takes a time budget that describes
how much longer the collection can be run for. Then we run the current phase.
Once this is done, we check whether we have exceeded our time budget or
if we have finished a collection. If neither of those have happened, we
run the cycle collector some more.

If we're a manually triggered CC, and we were in the middle of an ICC when
the CC started, then once the current CC is complete, we start a new CC
immediately. This is needed to ensure that a manually specified listener
is used, and to ensure that any garbage objects the caller expects to be
collected are in fact collected.

Note that in this patch we are always passing in an unlimited budget to
Collect, so cycle collections will always be run to completion.
2013-12-03 10:47:47 -08:00
Andrew McCreight
13de622900 Bug 937751, part 3 - Protect against reentrancy with when incrementally CCing. r=smaug
Cycle collection protects against reentrancy by setting a flag to indicate a collection
is in progress. With synchronous CC, it is okay to set this in BeginCollection, and
clear it in CleanupAfterCollection. With ICC, this must be set and cleared in every
slice, so I moved the fixing of it to Collect.  I also changed the name of the variable,
because we can be in the middle of an ICC without the CC being actively running,
and it is only the latter we are worried about here.
2013-12-03 10:47:47 -08:00
Andrew McCreight
e5e9421728 Bug 937751, part 2 - Move SliceBudget into js/public. r=billm 2013-12-03 10:47:47 -08:00
Andrew McCreight
cbd2507ef1 Bug 937751, part 1 - Add and set incremental cycle collection phases. r=smaug 2013-12-03 10:47:46 -08:00
Benoit Jacob
97a90dfa8b Bug 942499 - Part 3: Move CanReadSRGBFromFBOTexture out of GLContext - r=gal,jgilbert 2013-12-03 13:44:38 -05:00
Benoit Jacob
b384f45f52 Bug 942499 - Part 2: Move CanUploadNonPowerOfTwo out of GLContext; remove the gfx.textures.poweroftwo.force-enabled preference - r=gal,BenWa 2013-12-03 13:44:38 -05:00
Benoit Jacob
16059bd0ed Bug 942499 - Part 1: Move CanUploadSubTextures and WantsSmallTiles out of GLContext - r=BenWa 2013-12-03 13:44:38 -05:00
Benoit Jacob
28152cdbf3 Bug 942500 - Move GLContext::TexImage2D and friends out of GLContext - r=jgilbert 2013-12-03 13:44:38 -05:00
Benoit Jacob
557445f231 Bug 942509 - Move Upload* functions to new GLUploadHelpers files - r=gal,jgilbert 2013-12-03 13:44:38 -05:00
Benoit Jacob
642b73e3ef Bug 942501 - Part 3: move CreateTextureImage and TileGenFunc out of GLContext - r=BenWa 2013-12-03 13:44:38 -05:00
Benoit Jacob
48f806ba5d Bug 942501 - Part 2: move TextureImageCGL to separate files - r=BenWa 2013-12-03 13:44:38 -05:00
Benoit Jacob
83397cfb49 Bug 942501 - Part 1: remove some dead code around TextureImage functions - r=BenWa 2013-12-03 13:44:38 -05:00
Benoit Jacob
27c7bbb642 Bug 944703 - Part 8: make ShmemTextureClient hold a strong reference to its ISurfaceAllocator - r=nical 2013-12-03 13:44:38 -05:00
Benoit Jacob
a55f35a092 Bug 944703 - Part 7: make DeprecatedSharedRGBImage hold a strong reference to its ISurfaceAllocator - r=nical 2013-12-03 13:44:38 -05:00
Benoit Jacob
759b559e56 Bug 944703 - Part 6: make DeprecatedSharedPlanarYCbCrImage hold a strong reference to its ISurfaceAllocator - r=nical 2013-12-03 13:44:38 -05:00
Benoit Jacob
0e4939b19e Bug 944703 - Part 5: make AllocShmemParams hold a strong reference to its ISurfaceAllocator - r=nical 2013-12-03 13:44:38 -05:00
Benoit Jacob
907ab42d17 Bug 944703 - Part 4: make ContentHost hold a strong reference to its ISurfaceAllocator - r=nical 2013-12-03 13:44:38 -05:00
Benoit Jacob
5139f05917 Bug 944703 - Part 3: make TextureHost hold a strong reference to its ISurfaceAllocator - r=nical 2013-12-03 13:44:38 -05:00
Benoit Jacob
9a9e188f86 Bug 944703 - Part 2: make gfxReusableSharedImageSurfaceWrapper hold a strong reference to its ISurfaceAllocator - r=BenWa 2013-12-03 13:44:38 -05:00
Benoit Jacob
44a5a30bc9 Bug 944703 - Part 1: make SurfaceCaps hold a strong reference to its ISurfaceAllocator - r=jgilbert 2013-12-03 13:44:38 -05:00
Benoit Jacob
3b2fcb7e51 Bug 942505 - Move everything SharedHandle-related out of GLContext - r=jgilbert 2013-12-03 13:44:38 -05:00
Jan de Mooij
dd78dabb12 Bug 945406 - Move maybeAddOsrTypeBarriers calls from traverseBytecode to IonBuilder::build. r=bhackett
--HG--
extra : rebase_source : 17730207896800422129ecca46c2eb06ca1f7859
2013-12-03 19:23:25 +01:00
Jan de Mooij
d4003a0924 Bug 945294 - Add a missing is<JSFunction> check to annotateGetPropertyCache. r=bhackett
--HG--
extra : rebase_source : 908712a8afa11ce5ce32311befba30edd86a6128
2013-12-03 19:18:10 +01:00
Benoit Girard
cb5d1145f7 Bug 944866 - Part 2: Add layers.scroll-graph. r=gal
--HG--
extra : rebase_source : b517f110b09056b3037f9bfae609ff14e6af3859
2013-12-03 10:49:46 -05:00
Stephen Pohl
965870498a Bug 934811 - Ensure that no scrollbars are displayed for touch input. r=jimm,tn 2013-12-03 13:21:09 -05:00
Nathan Froyd
c8cd69967e Bug 942109 - constify PLDHashTableOps in security/manager/; r=briansmith 2013-11-20 13:42:08 -05:00
Daniel Holbert
8d0f3c03bb Bug 945151: Mark toolkit/library as FAIL_ON_WARNINGS. r=bsmedberg 2013-12-03 09:33:57 -08:00
Daniel Holbert
34f6943a64 Bug 945148: Prevent FACILITY_VISUALCPP redefinition in nsDllMain.cpp, with pre-2012 MSVC with Windows 8 SDK. r=bsmedberg 2013-12-03 09:33:57 -08:00
Christian Holler
43e3106acd Bug 945754 - Make EnsureTrackPropertyTypes handle OOM. r=bhackett
--HG--
extra : rebase_source : 261942cf99f22fc5110e7e51bec6f86c4cfa8aaa
2013-12-03 17:43:18 +01:00
Benoit Girard
8461c6b02c Bug 904227 - Ignore gmock warnings from MockContentController. r=kats 2013-11-18 20:54:22 -05:00
Brian Hackett
a2e5f6ab1b Bug 944946 - Use accessor methods for script->code and script->length, r=jandem. 2013-12-03 08:17:50 -08:00
Ryan VanderMeulen
ac8d9c831e Backed out changeset 5cb5fdb72e55 (bug 942275) for mach bustage.
CLOSED TREE DONTBUILD
2013-12-03 11:13:26 -05:00
Ehsan Akhgari
d32eea2c30 Bug 945588 - Add include guards to SkConfig8888.h 2013-12-03 11:09:56 -05:00
Andrew Halberstadt
b8e187acb4 Bug 942275 - Add support for setuptools' entry points to mach, r=gps 2013-12-03 10:37:20 -05:00
Jacek Caban
97269dce2e Bug 944913 - Partial revert of a41081c1026c due to build bustage. 2013-12-03 16:35:11 +01:00
Jacek Caban
e0cf7e59b7 Bug 944894 - Fix char16_t/wchar_t mismatch in widget/windows/. r=jimm
--HG--
extra : rebase_source : 829390ff7e6f4eb71dcd32c9d1aa27f61baa6653
2013-12-03 16:12:57 +01:00
Jacek Caban
c6f4ebd28d Bug 945245 - Fixed misc char16_t/wchar_t mismatches. r=ehsan
--HG--
extra : rebase_source : fcab74b295b513f4185cf9c12f31ebaddb7c8e0e
2013-12-03 16:09:50 +01:00
Jacek Caban
74601a78d4 Bug 944913 - Fixed char16_t/wchar_t mismatch in tollkit/. r=ehsan
--HG--
extra : rebase_source : c33427dd7c1c2db3d2741b8c2e0d1b4a0359a0a4
2013-12-03 16:07:22 +01:00
Jacek Caban
2cfc73c530 Bug 944907 - Fixed char16_t/wchar_t mismatch in netwerk/. r=mcmanus
--HG--
extra : rebase_source : dc84d4a33b8df669b63b62c5e3aaf06ef3ff1a6d
2013-12-03 15:54:59 +01:00
Boris Zbarsky
9c337e10a5 Bug 945572 followup. Add missing Element.h include, so we actually have an AsElement() defined. r=bustage 2013-12-03 10:10:39 -05:00
Boris Zbarsky
d0a4706d8d Bug 945573. Make nsITextControlElement::GetPlaceholderNode return Element*. r=smaug 2013-12-03 09:40:12 -05:00
Boris Zbarsky
c418cbc508 Bug 945572 part 6. Make NS_NewElement take an Element** outparam instead of an nsIContent** one. r=smaug 2013-12-03 09:40:11 -05:00
Boris Zbarsky
f5c10b4f50 Bug 945572 part 5. Make NS_NewSVGElement take an Element** outparam instead of an nsIContent** one. r=smaug 2013-12-03 09:40:11 -05:00
Boris Zbarsky
f9347b7ced Bug 945572 part 4. Make NS_NewXMLElement take an Element** outparam instead of an nsIContent** one. r=smaug 2013-12-03 09:40:11 -05:00
Boris Zbarsky
b11cfd5183 Bug 945572 part 3. Make NS_NewMathMLElement take an Element** outparam instead of an nsIContent** one. r=smaug 2013-12-03 09:40:11 -05:00
Boris Zbarsky
94153ceb3d Bug 945572 part 2. Make NS_NewXULElement take an Element** outparam instead of an nsIContent** one. r=smaug 2013-12-03 09:40:11 -05:00