mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Bug 1204168 - Add the js::ProfileEntry::setCategory method; r=djvj
This commit is contained in:
parent
7c43b0d527
commit
31d58123f4
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user