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
This commit is contained in:
sgjesse@chromium.org 2008-12-05 10:40:13 +00:00
parent ee9e6b5bae
commit 07e14578c0

View File

@ -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);
}