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 7c43b0d527
commit 31d58123f4

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());