Commit 2c2ae533 authored by ager@chromium.org's avatar ager@chromium.org

Remove a couple of instances of wchar_t after counters change.

Review URL: http://codereview.chromium.org/12820

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@872 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 88d4740d
......@@ -286,7 +286,7 @@ void Shell::OnExit() {
i != counter_map_.end();
i++) {
Counter* counter = (*i).second;
::printf("| %-38ls | %8i |\n", counter->name(), counter->value());
::printf("| %-38s | %8i |\n", counter->name(), counter->value());
}
::printf("+----------------------------------------+----------+\n");
}
......
......@@ -44,12 +44,12 @@ using namespace v8::internal;
static int local_counters[256];
static int counter_count = 0;
static std::map<std::wstring, int> counter_table;
static std::map<std::string, int> counter_table;
// Callback receiver to track counters in test.
static int* counter_function(const wchar_t* name) {
std::wstring counter(name);
static int* counter_function(const char* name) {
std::string counter(name);
if (counter_table.find(counter) == counter_table.end()) {
local_counters[counter_count] = 0;
counter_table[counter] = counter_count++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment