Reviewers: Christian Plesner Hansen,

Description:
Fixed the caching of counters. This also fixes the --dump-counters which
reads the counters from the cache when dumping.

Please review this at http://codereview.chromium.org/13171

SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/

Affected files:
   M     src/d8.cc


Index: src/d8.cc
===================================================================
--- src/d8.cc   (revision 919)
+++ src/d8.cc   (working copy)
@@ -257,6 +257,7 @@
    }
    Counter* result = counters_->GetNextCounter();
    if (result == NULL) return NULL;
+  counter_map_[name] = result;
    return result->Bind(name);
  }




--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to