Bug 924608 - Fix a compiler warning in memorymetrics; r=njn

This commit is contained in:
Terrence Cole 2013-10-08 14:15:59 -07:00
parent 2612cf4654
commit cec4468cbd

View File

@ -61,12 +61,12 @@ struct InefficientNonFlatteningStringHashPolicy
#define ZERO_SIZE(gc, mSize) mSize(0), #define ZERO_SIZE(gc, mSize) mSize(0),
#define COPY_OTHER_SIZE(gc, mSize) mSize(other.mSize), #define COPY_OTHER_SIZE(gc, mSize) mSize(other.mSize),
#define ADD_OTHER_SIZE(gc, mSize) mSize += other.mSize; #define ADD_OTHER_SIZE(gc, mSize) mSize += other.mSize;
#define ADD_SIZE_TO_N_IF_LIVE_GC_THING(gc, mSize) n += (gc == js::IsLiveGCThing) ? mSize : 0; #define ADD_SIZE_TO_N_IF_LIVE_GC_THING(gc, mSize) n += (gc) ? mSize : 0;
// Used to annotate which size_t fields measure live GC things and which don't. // Used to annotate which size_t fields measure live GC things and which don't.
enum { enum {
IsLiveGCThing, NotLiveGCThing = false,
NotLiveGCThing IsLiveGCThing = true
}; };
struct ZoneStatsPod struct ZoneStatsPod