From 07e14578c007b8ad463cbacd05aab3df120baa86 Mon Sep 17 00:00:00 2001 From: "sgjesse@chromium.org" Date: Fri, 5 Dec 2008 10:40:13 +0000 Subject: [PATCH] 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 --- src/d8.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/d8.cc b/src/d8.cc index 03a6ab6..fbc91d3 100644 --- a/src/d8.cc +++ b/src/d8.cc @@ -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); } -- 2.7.4