Add interface for accessing PC counter information from chrome code, bug 687134. r=sfink,waldo
This commit is contained in:
@@ -677,6 +677,11 @@ class OpcodeCounts
|
||||
JS_ASSERT(which < capacity);
|
||||
return counts[which];
|
||||
}
|
||||
|
||||
// Boolean conversion, for 'if (counters) ...'
|
||||
operator void*() const {
|
||||
return counts;
|
||||
}
|
||||
};
|
||||
|
||||
} /* namespace js */
|
||||
|
||||
Reference in New Issue
Block a user