Commit Graph
56 Commits
Author SHA1 Message Date
Nick Fitzgerald 16c2a5f67c Bug 1170325 - Convert js::Vector into a template alias to mozilla::Vector with a single customized default argument. Also get rid of the CRTP support in mozilla::Vector (through mozilla::VectorBase) now that template aliasing is good enough, and make mozilla::Vector final so that people will use composition and not inheritance with it. (Inheritance plays poorly with movability and a few other things, in addition to messing up template argument deduction matching.) r=Waldo, patch sort of a tag-team between him and me 2015-07-13 12:42:52 -07:00
Jan de Mooij c6596c5fa8 Bug 1144366 - Switch SpiderMonkey and XPConnect style from |T *t| to |T* t|. r=jorendorff 2015-03-28 23:22:11 +01:00
Phil Ringnalda 1a1c158706 Backed out changeset 0c030f97a04f (bug 1144366) for being on top of patches being backed out
CLOSED TREE
2015-03-28 10:39:56 -07:00
Jan de Mooij 369ef1b850 Bug 1144366 - Switch SpiderMonkey and XPConnect style from |T *t| to |T* t|. r=jorendorff 2015-03-28 12:08:37 +01:00
Ehsan Akhgari 5292a10a42 Bug 1013663 - Fix some bad implicit conversion constructors in the JS engine; r=jorendorff,jandem 2014-05-25 21:46:24 -04:00
Jim Blandy 3336c431eb Bug 896100: Convert all uses of OldMove and MoveRef to true rvalue references and the modern Move and Forward. r=luke, r=waldo 2013-11-19 09:05:36 -08:00
Jeff Walden 84c301f937 Bug 891177 - Implement mozilla/Vector.h, and make js/Vector.h implement js::Vector using mozilla::Vector's implementation of the functionality. r=terrence 2013-07-09 16:33:29 -07:00
Jeff Walden e46d68d489 Bug 891177 - Remove Vector.h's js/TemplateLib.h dependency by introducing mfbt/TemplateLib.h with the necessary bits. r=terrence 2013-07-08 12:42:13 -07:00
Jeff Walden 70b58a7868 Bug 891177 - Remove Vector.h's js/Utility.h dependency. r=terrence 2013-07-03 16:07:43 -07:00
Jeff Walden 9f01148df2 Bug 891177 - Move leading/trailing-zero-bit counting functions, ceiling/floor log2 functions, and round-up-pow2 functions into MathAlgorithms.h. r=terrence 2013-07-03 15:46:51 -07:00
Justin Lebar 22c3cc2fe8 Bug 893281 - Don't require a no-args constructor for elements in a JS::Vector if you call GrowByUninitialized(). r=luke 2013-07-15 12:10:59 -07:00
Jeff Walden cf1b4b44b2 Bug 891177 - Move js::Swap to mozilla::Swap. r=terrence 2013-07-03 15:57:33 -07:00
Jeff Walden 074cd375fa Bug 891177 - Add ReentrancyGuard.h as a helper class for asserting that use of a class is non-reentrant. r=terrence 2013-07-02 17:47:08 -07:00
Jeff Walden 27a032f982 Bug 891177 - Use MOZ_STATIC_ASSERT, not JS_STATIC_ASSERT, in Vector.h. r=terrence 2013-07-02 17:33:32 -07:00
Jeff Walden c7c6f6e673 Bug 891177 - s/JS_ALWAYS/MOZ_ALWAYS/g and s/JS_NEVER/MOZ_NEVER/g on Vector.h. r=terrence 2013-07-02 17:31:49 -07:00
Jeff Walden 550932c972 Bug 891177 - s/JS_ASSERT/MOZ_ASSERT/g on Vector.h. r=terrence 2013-07-02 17:29:29 -07:00
Jeff Walden bcbca08eaf Bug 891177 - Implement Move.h to define a move-construction interface. r=terrence 2013-07-02 17:25:13 -07:00
Nicholas Nethercote 53eea64c37 Bug 883696 (part 4) - Include full paths in #include statements in the rest of js/src/ and js/public/. r=luke. 2013-06-27 17:37:29 -07:00
Catalin Iacob e895205c0b Bug 798914 (part 4) - Use newly introduced mozilla::MallocSizeOf in js. r=njn. 2013-06-23 13:21:01 +02:00
Emanuel Hoogeveen 7618e9b9a6 Bug 883697 (part 1) - Make include guards consistent in js/ductwork/, js/ipc/ and js/public/. r=njn. 2013-06-19 17:59:09 -07:00
Sean Stangl 4c46a9aa7c Bug 860029 - Standardize Modelines in the JS Module. r=njn 2013-04-16 13:47:10 -07:00
Phil Ringnalda 4f94bac4a1 Back out a5a1dd3bd8ae (bug 860029) for stupidorange 2013-04-15 12:55:38 -07:00
Sean Stangl 9596836ecf Bug 860029 - Standardize Modelines in the JS Module. r=njn 2013-04-15 11:33:03 -07:00
Phil Ringnalda 978110175c Back out 5bf9771e1a28 (bug 860029) for bustage
CLOSED TREE
2013-04-11 19:55:37 -07:00
Sean Stangl 999eb7bab9 Bug 860029 - Standardize Modelines in the JS Module. DONTBUILD. r=njn 2013-04-11 18:48:59 -07:00
Sean Stangl 4d3d86e47f Bug 850070 - Fix Vector::initCapacity() argument name: conflicts with layout code. r=red 2013-03-22 17:53:31 -07:00
Sean Stangl 7652be8fcd Bug 850070 - Part 2/2 - Parallelize OdinMonkey compilations. r=luke 2013-03-19 15:24:22 -07:00
Luke Wagner df1c6eeff2 Bug 840282 - OdinMonkey (sr=dmandelin) 2013-03-15 02:29:02 -07:00
Nicholas Nethercote 5062f213fc Bug 843462 (part 1) - Make Vector::insert() less error-prone. r=luke. 2013-02-20 21:13:25 -08:00
L. David Baron b6b42cafaa Bug 563195: Fix -Wshadow warnings in public JS API headers (those used from layout/style/). r=njn 2013-02-17 22:56:32 -08:00
Nicholas Nethercote e502cf0ec0 Bug 685783 - Avoid slop in js::Vector when the element size is not a power of two. r=luke. 2013-02-10 13:56:22 -08:00
Jeff Walden 066a29a559 Rename the |static const bool result| member of IsSame, IsPod, and IsPointer to |value| to be consistent with every other type trait. I have no idea how I managed to consistently not notice this during review. Followup to bug 723228, r=typo 2013-02-08 22:59:54 -08:00
Razvan Cojocaru 4d201c0be3 Bug 723228 - nsTArray::AssignRange should use memcpy when possible. r=jlebar for the XPCOM changes, r=jwalden for js/mfbt changes 2013-02-08 13:18:49 -08:00
Sean Stangl 5e6163cad4 Bug 749358 - Inline MUse storage. r=luke 2013-01-28 15:30:50 -08:00
Luke Wagner 0b51da989d Bug 810192 - don't require a default constructor for Hash{Map,Set}; only construct objects for live elements (r=terrence) 2012-11-12 15:30:39 -08:00
Terrence Cole f81b1d5878 Bug 807151 - Unexport |mozilla| from the |js| namespace; r=Waldo
Clang does not want to allow js::ion::Range and mozilla::Range simultaneously
when we have a |namespace js { using namespace mozilla; }| declaration.
2012-11-06 17:35:18 -08:00
David Anderson 549eba567f Update Yarr to WebKit rev 130234 (bug 740015, r=dmandelin). 2012-11-01 21:35:25 -07:00
David Anderson 2d79cd0d62 Merge from mozilla-central. 2012-06-15 15:23:58 -07:00
David Anderson 6d3300ecb8 Merge from mozilla-central. 2012-05-21 14:40:04 -07:00
Gervase Markham cb6a072c2a Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
David Anderson 9f570b8f26 Merge from mozilla-central. 2012-04-18 10:23:31 -07:00
Nicholas Nethercote f473033c3c Bug 729403 (part 1, take 2) - Add Vector::sizeOf{In,Ex}cludingThis(). r=luke. 2012-02-26 20:18:13 -08:00
Phil Ringnalda 33794b8857 Back out a7255af10a2a and da193f5b526b (bug 729403) for xpcshell assertions in test_TelemetryPing.js 2012-02-26 18:39:06 -08:00
Nicholas Nethercote f06662c908 Bug 729403 (part 1) - Add Vector::sizeOf{In,Ex}cludingThis(). r=luke. 2012-02-21 20:58:40 -08:00
Terrence Cole d9195ad7c7 Bug 744579 - Implement a relocatable version of HeapPtr; r=billm
We cannot store HeapPtrs in memory that may be realloced outside of the GC.
Instead we should use the RelocatablePtr, which is more expensive, but is able
to handle being moved, or EncapsulatedPtr which requires external barriers.
2012-05-15 17:21:23 -07:00
Terrence Cole 4fbb167b3c Bug 744192 - Assert that Vectors do not contain implicitly postbarriered types; r=luke
Since vectors move their memory around outside the control of the GC, it is not
valid to store an implicitly post-barriered item in a Vector.
2012-04-11 17:14:11 -07:00
Terrence Cole 5c5898963d Backed out changeset a43eb4a2d2fd 2012-04-10 17:03:25 -07:00
Terrence Cole 38f14e4977 Bug 744192 - Assert that Vectors do not contain implicitly postbarriered types; r=luke
Since vectors move their memory around outside the control of the GC, it is not
valid to store an implicitly post-barriered item in a Vector.
2012-04-10 16:43:54 -07:00
Dave Hylands 26dc521b25 Bug 694594 - Fix code generation problem in debug builds for Vector.h. r=luke 2012-06-11 23:21:49 -07:00
Jason Orendorff d3771d254d Bug 717278 - Vector should have const and non-const begin(). r=luke. 2012-01-20 06:11:42 -06:00