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

Unified Diff: src/d8.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 | « src/counters.h ('k') | src/d8.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/d8.h
===================================================================
--- src/d8.h (revision 870)
+++ src/d8.h (working copy)
@@ -44,13 +44,13 @@
class Counter {
public:
- explicit Counter(const wchar_t* name)
+ explicit Counter(const char* name)
: name_(name), value_(0) { }
int* GetValuePtr() { return &value_; }
- const wchar_t* name() { return name_; }
+ const char* name() { return name_; }
int value() { return value_; }
private:
- const wchar_t* name_;
+ const char* name_;
int value_;
};
@@ -64,7 +64,7 @@
static void ReportException(TryCatch* try_catch);
static void Initialize();
static void OnExit();
- static int* LookupCounter(const wchar_t* name);
+ static int* LookupCounter(const char* name);
static Handle<String> ReadFile(const char* name);
static void RunShell();
static int Main(int argc, char* argv[]);
@@ -81,7 +81,7 @@
private:
static Persistent<Context> utility_context_;
static Persistent<Context> evaluation_context_;
- typedef std::map<const wchar_t*, Counter*> CounterMap;
+ typedef std::map<const char*, Counter*> CounterMap;
static CounterMap counter_map_;
};
« no previous file with comments | « src/counters.h ('k') | src/d8.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698