Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(173)

Unified Diff: src/counters.h

Issue 13011: Use char instead of wchar_t for counter names.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 12 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/v8.h ('k') | src/d8.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/counters.h
===================================================================
--- src/counters.h (revision 870)
+++ src/counters.h (working copy)
@@ -28,8 +28,6 @@
#ifndef V8_COUNTERS_H_
#define V8_COUNTERS_H_
-#include <wchar.h>
-
namespace v8 { namespace internal {
// StatsCounters is an interface for plugging into external
@@ -54,7 +52,7 @@
// may receive a different location to store it's counter.
// The return value must not be cached and re-used across
// threads, although a single thread is free to cache it.
- static int *FindLocation(const wchar_t* name) {
+ static int *FindLocation(const char* name) {
if (!lookup_function_) return NULL;
return lookup_function_(name);
}
@@ -74,9 +72,9 @@
//
// This class is designed to be POD initialized. It will be registered with
// the counter system on first use. For example:
-// StatsCounter c = { L"c:myctr", NULL, false };
+// StatsCounter c = { "c:myctr", NULL, false };
struct StatsCounter {
- const wchar_t* name_;
+ const char* name_;
int* ptr_;
bool lookup_done_;
« no previous file with comments | « include/v8.h ('k') | src/d8.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698