Revision: 6989
Author: [email protected]
Date: Tue Mar  1 04:26:19 2011
Log: Use correct type for the map-counters flag used in d8.

Review URL: http://codereview.chromium.org/6598063
http://code.google.com/p/v8/source/detail?r=6989

Modified:
 /branches/bleeding_edge/src/d8.cc
 /branches/bleeding_edge/src/flag-definitions.h

=======================================
--- /branches/bleeding_edge/src/d8.cc   Wed Feb 16 03:40:48 2011
+++ /branches/bleeding_edge/src/d8.cc   Tue Mar  1 04:26:19 2011
@@ -405,7 +405,7 @@
 void Shell::Initialize() {
   Shell::counter_map_ = new CounterMap();
   // Set up counters
-  if (i::FLAG_map_counters != NULL)
+  if (i::StrLength(i::FLAG_map_counters) != 0)
     MapCounters(i::FLAG_map_counters);
   if (i::FLAG_dump_counters) {
     V8::SetCounterFunction(LookupCounter);
=======================================
--- /branches/bleeding_edge/src/flag-definitions.h      Thu Feb 24 04:01:24 2011
+++ /branches/bleeding_edge/src/flag-definitions.h      Tue Mar  1 04:26:19 2011
@@ -355,7 +355,7 @@
                                     "debugger agent in another process")
 DEFINE_bool(debugger_agent, false, "Enable debugger agent")
 DEFINE_int(debugger_port, 5858, "Port to use for remote debugging")
-DEFINE_string(map_counters, NULL, "Map counters to a file")
+DEFINE_string(map_counters, "", "Map counters to a file")
 DEFINE_args(js_arguments, JSArguments(),
"Pass all remaining arguments to the script. Alias for \"--\".")

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to