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

Side by Side Diff: src/d8.cc

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 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/d8.h ('k') | src/mksnapshot.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2008 the V8 project authors. All rights reserved. 1 // Copyright 2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 Context::Scope context_scope(utility_context_); 202 Context::Scope context_scope(utility_context_);
203 Handle<Object> global = utility_context_->Global(); 203 Handle<Object> global = utility_context_->Global();
204 Handle<Value> fun = global->Get(String::New("GetCompletions")); 204 Handle<Value> fun = global->Get(String::New("GetCompletions"));
205 static const int kArgc = 3; 205 static const int kArgc = 3;
206 Handle<Value> argv[kArgc] = { evaluation_context_->Global(), text, full }; 206 Handle<Value> argv[kArgc] = { evaluation_context_->Global(), text, full };
207 Handle<Value> val = Handle<Function>::Cast(fun)->Call(global, kArgc, argv); 207 Handle<Value> val = Handle<Function>::Cast(fun)->Call(global, kArgc, argv);
208 return handle_scope.Close(Handle<Array>::Cast(val)); 208 return handle_scope.Close(Handle<Array>::Cast(val));
209 } 209 }
210 210
211 211
212 int* Shell::LookupCounter(const wchar_t* name) { 212 int* Shell::LookupCounter(const char* name) {
213 CounterMap::iterator item = counter_map_.find(name); 213 CounterMap::iterator item = counter_map_.find(name);
214 if (item != counter_map_.end()) { 214 if (item != counter_map_.end()) {
215 Counter* result = (*item).second; 215 Counter* result = (*item).second;
216 return result->GetValuePtr(); 216 return result->GetValuePtr();
217 } 217 }
218 Counter* result = new Counter(name); 218 Counter* result = new Counter(name);
219 counter_map_[name] = result; 219 counter_map_[name] = result;
220 return result->GetValuePtr(); 220 return result->GetValuePtr();
221 } 221 }
222 222
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 return 0; 376 return 0;
377 } 377 }
378 378
379 379
380 } // namespace v8 380 } // namespace v8
381 381
382 382
383 int main(int argc, char* argv[]) { 383 int main(int argc, char* argv[]) {
384 return v8::Shell::Main(argc, argv); 384 return v8::Shell::Main(argc, argv);
385 } 385 }
OLDNEW
« no previous file with comments | « src/d8.h ('k') | src/mksnapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698