Add interface for accessing PC counter information from chrome code, bug 687134. r=sfink,waldo

This commit is contained in:
Brian Hackett
2011-12-16 13:11:08 -08:00
parent 6434a346d9
commit dc20f91461
15 changed files with 1230 additions and 355 deletions

View File

@@ -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 */