Commit 07e14578 authored by sgjesse@chromium.org's avatar sgjesse@chromium.org

Fixed the caching of counters. This also fixes the --dump-counters which reads...

Fixed the caching of counters. This also fixes the --dump-counters which reads the counters from the cache when dumping.
Review URL: http://codereview.chromium.org/13171

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@923 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent ee9e6b5b
......@@ -257,6 +257,7 @@ int* Shell::LookupCounter(const char* name) {
}
Counter* result = counters_->GetNextCounter();
if (result == NULL) return NULL;
counter_map_[name] = result;
return result->Bind(name);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment