I'm not sure I understand why we would want to expose counters to
JavaScript?
Counters is an internal programmer tool that we use to gather statistics
for a
while and then delete again. I don't think we should do testing at that
level. I
would test behavior in tests and performance in benchmarks. If we are
making a
change that improves performance I think we should create a benchmark that
shows
it to stop us from regressing. If we want to make sure that a test hits a
certain state, we should add functionality to force it instead of relying on
counters I think.
There might be compelling use cases that I haven't thought of? :-)
http://codereview.chromium.org/7281007/
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev