Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(478)

Unified Diff: src/counters.h

Issue 365153002: Remove a bunch of Isolate::UncheckedCurrent calls (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: updates Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« include/v8.h ('K') | « src/api.cc ('k') | src/counters.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/counters.h
diff --git a/src/counters.h b/src/counters.h
index 540bcbdadbf48999400879c74d3f1746cc9945db..93079b1ef9bdc2b287421519ea7d25e2b899ff0b 100644
--- a/src/counters.h
+++ b/src/counters.h
@@ -143,6 +143,9 @@ class StatsCounter {
return loc;
}
+ // Reset the cached internal pointer.
+ void Reset() { lookup_done_ = false; }
+
protected:
// Returns the cached address of this counter location.
int* GetPtr() {
@@ -629,6 +632,7 @@ class Counters {
stats_counter_count
};
+ void ResetCounters();
void ResetHistograms();
private:
« include/v8.h ('K') | « src/api.cc ('k') | src/counters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698