Jeff Walden
7c963f4aa1
Change preprocessor-directive indentation to be two-space, not one-space. rs=cjones in bug 702437
2011-11-15 22:26:55 -08:00
Jeff Walden
7d613942b0
Bug 693469 - Implement mozilla::ArrayLength and mozilla::ArrayEnd, and replace uses of NS_ARRAY_LENGTH whenever possible. (Exceptions: assigning to static initializers, use in static assertions, as template parameters, etc. These will go away when the relevant compilers have C++11 constexpr support.) r=cjones
2011-10-10 22:50:08 -07:00
Chris Leary
504ea45743
Bug 693928: Fix random orange from LifoAlloc debug memset. (r=luke)
2011-10-12 15:32:40 -07:00
Jeff Walden
c5e5f873d1
Back out everything since 5435ee09cf7b. Tinderbox compilers hate me. r=epic-fail
2011-10-12 12:21:53 -07:00
Jeff Walden
946f2ae0e3
Bug 639469 - Implement mozilla::ArrayLength and mozilla::ArrayEnd, and replace uses of NS_ARRAY_LENGTH whenever possible. r=cjones
2011-10-10 22:50:08 -07:00
Justin Lebar
b720e8ab29
Bug 689433 - Followup. Remove unused MOZ_STATIC_ASSERT macro. r=roc
2011-10-06 17:51:24 -04:00
Justin Lebar
24f3c3eb98
Bug 689433 - Align nsAutoTArray<E> to E's natural alignment. r=roc
2011-10-05 09:11:17 -04:00
Chris Leary
cdd34a85e8
Bug 684039: rewrite JS LIFO allocator, avoids thrashing. (r=luke)
2011-09-22 13:22:30 -07:00
Terrence Cole
958e982433
Bug: 685041 - convert #ifdef DEBUG vars in jsgc.cpp to DebugOnly; r=luke
...
This adds operation++ and operator-- to DebugOnly in support of the two uses
cleaned up here.
2011-09-07 11:32:35 -07:00
Terrence Cole
110a5c220d
Bug 646597 - Remove unneeded #ifdef DEBUG: use DebugOnly instead; r=bhackett
...
Assignment to a DebugOnly variable results in a call to either the empty
'operator =' or to an empty implicit 1-arg constructor and empty copy
constructor when in non-debug mode. Either of these get inlined and
eliminated as dead code above -00, so there is no benefit to skipping
this assignment for non-debug builds.
2011-09-04 13:58:00 +01:00
Chris Leary
e699ce9e64
Bug 649576: Extricate JSHashTable from JSAtomList death grip. (r=luke)
2011-06-24 14:22:30 -07:00
Ehsan Akhgari
431b0f5318
Bug 662971 - Silence the clang warnings issued because of alignment requirements increase when compiling mfbt/Util.h; r=Waldo
2011-06-17 15:59:47 -04:00
Jeff Walden
93aa7fee71
Bug 662001 - Move js::RangeCheckedPointer<T> to mozilla::RangedPtr<T>, make it no longer implicitly convert to T*, and adjust users accordingly. r=cjones
2011-06-06 11:02:34 -07:00
David Mandelin
256a0901c1
Bug 656282: Remove redundant declaration that causes an MSVC warning, r=luke
2011-05-16 16:17:19 -07:00
Jeff Walden
e5d813b117
Bug 656059 - Add operator-> to mozilla::DebugOnly<T> so it can store pointers. r=cjones
2011-05-10 14:56:49 -07:00
Daniel Holbert
434c92c92a
Bug 654346: Fix C++-style comments in mfbt headers included by .c files, to fix build warnings. r=cjones comment-only=DONTBUILD
2011-05-03 10:24:01 -07:00
Chris Jones
e870e569fc
Bug 642381, part 3: Hoist Maybe into mfbt and eliminate Gecko's use of jstl. r=jorendorff,luke
2011-04-28 17:48:52 -05:00
Chris Jones
9f21610c4f
Bug 647011: Sprinkle some DebugOnly in js/src. r=luke
2011-04-20 18:27:30 -05:00
Chris Jones
dcec709807
Bug 577899, part 2: Add a DebugOnly helper to mfbt, which only contains a value in debug builds. r=luke
2011-03-31 20:46:35 -05:00
Chris Jones
b8e8c2f777
Bug 577899, part 1: Add mfbt, to contain code shared between SpiderMonkey and Gecko. r=luke,ted sr=brendan,bsmedberg,roc
2011-03-31 20:46:35 -05:00