Index: src/d8.cc |
=================================================================== |
--- src/d8.cc (revision 1931) |
+++ src/d8.cc (working copy) |
@@ -487,7 +487,7 @@ |
} |
-static char* ReadChars(const char *name, int* size_out) { |
+static char* ReadChars(const char* name, int* size_out) { |
v8::Unlocker unlocker; // Release the V8 lock while reading files. |
FILE* file = i::OS::FOpen(name, "rb"); |
if (file == NULL) return NULL; |
@@ -659,7 +659,7 @@ |
use_preemption = false; |
} else if (strcmp(str, "--preemption-interval") == 0) { |
if (i + 1 < argc) { |
- char *end = NULL; |
+ char* end = NULL; |
preemption_interval = strtol(argv[++i], &end, 10); // NOLINT |
if (preemption_interval <= 0 || *end != '\0' || errno == ERANGE) { |
printf("Invalid value for --preemption-interval '%s'\n", argv[i]); |
@@ -687,9 +687,9 @@ |
i++; |
} else if (strcmp(str, "-p") == 0 && i + 1 < argc) { |
int size = 0; |
- const char *files = ReadChars(argv[++i], &size); |
+ const char* files = ReadChars(argv[++i], &size); |
if (files == NULL) return 1; |
- ShellThread *thread = |
+ ShellThread* thread = |
new ShellThread(threads.length(), |
i::Vector<const char>(files, size)); |
thread->Start(); |
@@ -736,7 +736,7 @@ |
if (run_shell) |
RunShell(); |
for (int i = 0; i < threads.length(); i++) { |
- i::Thread *thread = threads[i]; |
+ i::Thread* thread = threads[i]; |
thread->Join(); |
delete thread; |
} |