Commit 4a120ecc authored by erik.corry@gmail.com's avatar erik.corry@gmail.com

Fix asterisk spacing.

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1932 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 1ae8a7da
...@@ -147,7 +147,7 @@ void VirtualFrame::MergeMoveRegistersToRegisters(VirtualFrame* expected) { ...@@ -147,7 +147,7 @@ void VirtualFrame::MergeMoveRegistersToRegisters(VirtualFrame* expected) {
} }
void VirtualFrame::MergeMoveMemoryToRegisters(VirtualFrame *expected) { void VirtualFrame::MergeMoveMemoryToRegisters(VirtualFrame* expected) {
} }
......
...@@ -86,7 +86,7 @@ static bool IsValidJSON(FunctionLiteral* lit) { ...@@ -86,7 +86,7 @@ static bool IsValidJSON(FunctionLiteral* lit) {
Statement* stmt = lit->body()->at(0); Statement* stmt = lit->body()->at(0);
if (stmt->AsExpressionStatement() == NULL) if (stmt->AsExpressionStatement() == NULL)
return false; return false;
Expression *expr = stmt->AsExpressionStatement()->expression(); Expression* expr = stmt->AsExpressionStatement()->expression();
return expr->IsValidJSON(); return expr->IsValidJSON();
} }
......
...@@ -487,7 +487,7 @@ void Shell::OnExit() { ...@@ -487,7 +487,7 @@ void Shell::OnExit() {
} }
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. v8::Unlocker unlocker; // Release the V8 lock while reading files.
FILE* file = i::OS::FOpen(name, "rb"); FILE* file = i::OS::FOpen(name, "rb");
if (file == NULL) return NULL; if (file == NULL) return NULL;
...@@ -659,7 +659,7 @@ int Shell::Main(int argc, char* argv[]) { ...@@ -659,7 +659,7 @@ int Shell::Main(int argc, char* argv[]) {
use_preemption = false; use_preemption = false;
} else if (strcmp(str, "--preemption-interval") == 0) { } else if (strcmp(str, "--preemption-interval") == 0) {
if (i + 1 < argc) { if (i + 1 < argc) {
char *end = NULL; char* end = NULL;
preemption_interval = strtol(argv[++i], &end, 10); // NOLINT preemption_interval = strtol(argv[++i], &end, 10); // NOLINT
if (preemption_interval <= 0 || *end != '\0' || errno == ERANGE) { if (preemption_interval <= 0 || *end != '\0' || errno == ERANGE) {
printf("Invalid value for --preemption-interval '%s'\n", argv[i]); printf("Invalid value for --preemption-interval '%s'\n", argv[i]);
...@@ -687,9 +687,9 @@ int Shell::Main(int argc, char* argv[]) { ...@@ -687,9 +687,9 @@ int Shell::Main(int argc, char* argv[]) {
i++; i++;
} else if (strcmp(str, "-p") == 0 && i + 1 < argc) { } else if (strcmp(str, "-p") == 0 && i + 1 < argc) {
int size = 0; int size = 0;
const char *files = ReadChars(argv[++i], &size); const char* files = ReadChars(argv[++i], &size);
if (files == NULL) return 1; if (files == NULL) return 1;
ShellThread *thread = ShellThread* thread =
new ShellThread(threads.length(), new ShellThread(threads.length(),
i::Vector<const char>(files, size)); i::Vector<const char>(files, size));
thread->Start(); thread->Start();
...@@ -736,7 +736,7 @@ int Shell::Main(int argc, char* argv[]) { ...@@ -736,7 +736,7 @@ int Shell::Main(int argc, char* argv[]) {
if (run_shell) if (run_shell)
RunShell(); RunShell();
for (int i = 0; i < threads.length(); i++) { for (int i = 0; i < threads.length(); i++) {
i::Thread *thread = threads[i]; i::Thread* thread = threads[i];
thread->Join(); thread->Join();
delete thread; delete thread;
} }
......
...@@ -86,9 +86,9 @@ struct Flag { ...@@ -86,9 +86,9 @@ struct Flag {
return *reinterpret_cast<const char**>(valptr_); return *reinterpret_cast<const char**>(valptr_);
} }
void set_string_value(const char *value, bool owns_ptr) { void set_string_value(const char* value, bool owns_ptr) {
ASSERT(type_ == TYPE_STRING); ASSERT(type_ == TYPE_STRING);
const char **ptr = reinterpret_cast<const char **>(valptr_); const char** ptr = reinterpret_cast<const char**>(valptr_);
if (owns_ptr_ && *ptr != NULL) DeleteArray(*ptr); if (owns_ptr_ && *ptr != NULL) DeleteArray(*ptr);
*ptr = value; *ptr = value;
owns_ptr_ = owns_ptr; owns_ptr_ = owns_ptr;
......
...@@ -158,7 +158,7 @@ Immediate::Immediate(const char* s) { ...@@ -158,7 +158,7 @@ Immediate::Immediate(const char* s) {
} }
Immediate::Immediate(Label *internal_offset) { Immediate::Immediate(Label* internal_offset) {
x_ = reinterpret_cast<int32_t>(internal_offset); x_ = reinterpret_cast<int32_t>(internal_offset);
rmode_ = RelocInfo::INTERNAL_REFERENCE; rmode_ = RelocInfo::INTERNAL_REFERENCE;
} }
......
...@@ -340,7 +340,7 @@ void VirtualFrame::MergeMoveRegistersToRegisters(VirtualFrame* expected) { ...@@ -340,7 +340,7 @@ void VirtualFrame::MergeMoveRegistersToRegisters(VirtualFrame* expected) {
} }
void VirtualFrame::MergeMoveMemoryToRegisters(VirtualFrame *expected) { void VirtualFrame::MergeMoveMemoryToRegisters(VirtualFrame* expected) {
// Move memory, constants, and copies to registers. This is the // Move memory, constants, and copies to registers. This is the
// final step and is done from the bottom up so that the backing // final step and is done from the bottom up so that the backing
// elements of copies are in their correct locations when we // elements of copies are in their correct locations when we
......
...@@ -466,7 +466,7 @@ class LogMessageBuilder BASE_EMBEDDED { ...@@ -466,7 +466,7 @@ class LogMessageBuilder BASE_EMBEDDED {
void Append(const char* format, ...); void Append(const char* format, ...);
void Append(const char* format, va_list args); void Append(const char* format, va_list args);
void Append(const char c); void Append(const char c);
void Append(String *str); void Append(String* str);
void AppendDetailed(String* str, bool show_impl_info); void AppendDetailed(String* str, bool show_impl_info);
void WriteToLogFile(); void WriteToLogFile();
......
...@@ -471,7 +471,7 @@ void MarkCompactCollector::MarkMapContents(Map* map) { ...@@ -471,7 +471,7 @@ void MarkCompactCollector::MarkMapContents(Map* map) {
void MarkCompactCollector::MarkDescriptorArray( void MarkCompactCollector::MarkDescriptorArray(
DescriptorArray *descriptors) { DescriptorArray* descriptors) {
if (descriptors->IsMarked()) return; if (descriptors->IsMarked()) return;
// Empty descriptor array is marked as a root before any maps are marked. // Empty descriptor array is marked as a root before any maps are marked.
ASSERT(descriptors != Heap::empty_descriptor_array()); ASSERT(descriptors != Heap::empty_descriptor_array());
...@@ -871,7 +871,7 @@ void MarkCompactCollector::ClearNonLiveTransitions() { ...@@ -871,7 +871,7 @@ void MarkCompactCollector::ClearNonLiveTransitions() {
// clearing map transitions when necessary. // clearing map transitions when necessary.
current = map; current = map;
bool on_dead_path = !current->IsMarked(); bool on_dead_path = !current->IsMarked();
Object *next; Object* next;
while (SafeIsMap(current)) { while (SafeIsMap(current)) {
next = current->prototype(); next = current->prototype();
// There should never be a dead map above a live map. // There should never be a dead map above a live map.
......
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