Terrence Cole
ad84665634
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
7e5208b4e8
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
b6e46acdbd
Merge mozilla-central and tracemonkey.
2011-06-27 11:07:22 -07:00
Chris Leary
f1e0113af3
Bug 649576: Extricate JSHashTable from JSAtomList death grip. (r=luke)
2011-06-24 14:22:30 -07:00
Chris Leary
6ad07be206
Merge mozilla central and tracemonkey.
2011-06-20 16:49:20 -07:00
Ehsan Akhgari
9e6f60ae73
Bug 662971 - Silence the clang warnings issued because of alignment requirements increase when compiling mfbt/Util.h; r=Waldo
...
--HG--
extra : rebase_source : a2bb6f588674602993c6603abda01487b72b6923
2011-06-17 15:59:47 -04:00
Bas Schouten
4d1fc71a1e
Followup to bug 661973: Fix bug with COM outparams and add convenience operators. r=cjones
2011-06-21 21:44:00 -07:00
Jeff Walden
94a29910cd
Add a RangedPtr constructor accepting an array as a shorthand for RangedPtr(arr, N). rs=luke
2011-06-07 13:25:36 -07:00
Jeff Walden
661571d30c
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
0101f388cf
Bug 656282: Remove redundant declaration that causes an MSVC warning, r=luke
...
--HG--
extra : rebase_source : 42c6e9594f36fd7320bdea90fdb01c955bf07f4d
2011-05-16 16:17:19 -07:00
Jeff Walden
1644a3dc71
Bug 656059 - Add operator-> to mozilla::DebugOnly<T> so it can store pointers. r=cjones
...
--HG--
extra : rebase_source : 3d7aeec93f1ae1e5bbd4b03c30216e70fe15eb6a
2011-05-10 14:56:49 -07:00
Chris Jones
d8c3a76fe7
Bug 661973: Implement mozilla::RefCounted, RefPtr, TemporaryRef, OutParamRef, and byRef. r=Bas,luke sr=roc
2011-06-16 20:40:20 -07:00
Daniel Holbert
733a326bda
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
d737e982f8
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
a7c243271a
Bug 647011: Sprinkle some DebugOnly in js/src. r=luke
2011-04-20 18:27:30 -05:00
Chris Jones
9e1e572de5
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
867be51f36
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