Bug 1204168 - Add the js::ProfileEntry::setCategory method; r=djvj

This commit is contained in:
Nick Fitzgerald 2015-09-14 12:15:12 -07:00
parent e9a2668b96
commit f495dd4417

View File

@ -126,9 +126,14 @@ class ProfileEntry
uint32_t flags() const volatile {
return flags_;
}
uint32_t category() const volatile {
return flags_ & CATEGORY_MASK;
}
void setCategory(Category c) volatile {
flags_ &= ~CATEGORY_MASK;
setFlag(static_cast<uint32_t>(c));
}
void setOSR() volatile {
MOZ_ASSERT(isJs());