Fix formatting around * and &.
authorerik.corry@gmail.com <erik.corry@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 17 Mar 2010 14:53:16 +0000 (14:53 +0000)
committererik.corry@gmail.com <erik.corry@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 17 Mar 2010 14:53:16 +0000 (14:53 +0000)
Review URL: http://codereview.chromium.org/1000007

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4169 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/arm/macro-assembler-arm.h
src/counters.h
src/heap.h
src/ia32/codegen-ia32.h
src/ia32/macro-assembler-ia32.cc
src/ia32/macro-assembler-ia32.h
src/runtime.cc
src/serialize.cc
src/v8.cc

index 5d9e51304a8ce06d9b3619c0ce0aeb81fe538a91..8c70d95873cf635d5c3575883969854a82ed580a 100644 (file)
@@ -415,7 +415,7 @@ class MacroAssembler: public Assembler {
                                                   Register object2,
                                                   Register scratch1,
                                                   Register scratch2,
-                                                  Label *failure);
+                                                  Labelfailure);
 
   // Checks if both objects are sequential ASCII strings and jumps to label
   // if either is not.
index 5f4dca927ec3d12aa6c44e63b6d76902ebbc4152..aed46cfb36e6dc514dc1d384c7afd8f8810239b8 100644 (file)
@@ -65,7 +65,7 @@ class StatsTable : public AllStatic {
   // may receive a different location to store it's counter.
   // The return value must not be cached and re-used across
   // threads, although a single thread is free to cache it.
-  static int *FindLocation(const char* name) {
+  static intFindLocation(const char* name) {
     if (!lookup_function_) return NULL;
     return lookup_function_(name);
   }
index 18ab44bf878b2842cbcb242b15d14d08ded8b6e8..1aee8749a1a0581f41643d9521c1b616caee9a67 100644 (file)
@@ -1165,26 +1165,26 @@ class Heap : public AllStatic {
 
 class HeapStats {
  public:
-  int *start_marker;
-  int *new_space_size;
-  int *new_space_capacity;
-  int *old_pointer_space_size;
-  int *old_pointer_space_capacity;
-  int *old_data_space_size;
-  int *old_data_space_capacity;
-  int *code_space_size;
-  int *code_space_capacity;
-  int *map_space_size;
-  int *map_space_capacity;
-  int *cell_space_size;
-  int *cell_space_capacity;
-  int *lo_space_size;
-  int *global_handle_count;
-  int *weak_global_handle_count;
-  int *pending_global_handle_count;
-  int *near_death_global_handle_count;
-  int *destroyed_global_handle_count;
-  int *end_marker;
+  intstart_marker;
+  intnew_space_size;
+  intnew_space_capacity;
+  intold_pointer_space_size;
+  intold_pointer_space_capacity;
+  intold_data_space_size;
+  intold_data_space_capacity;
+  intcode_space_size;
+  intcode_space_capacity;
+  intmap_space_size;
+  intmap_space_capacity;
+  intcell_space_size;
+  intcell_space_capacity;
+  intlo_space_size;
+  intglobal_handle_count;
+  intweak_global_handle_count;
+  intpending_global_handle_count;
+  intnear_death_global_handle_count;
+  intdestroyed_global_handle_count;
+  intend_marker;
 };
 
 
index 89318ce5ef4cfc225c4b1d4715b4660fdfb00d6b..386dcc05b0aa2e222116d18085dc2e10c1824ba5 100644 (file)
@@ -500,7 +500,7 @@ class CodeGenerator: public AstVisitor {
   bool FoldConstantSmis(Token::Value op, int left, int right);
 
   // Emit code to perform a binary operation on a constant
-  // smi and a likely smi.  Consumes the Result *operand.
+  // smi and a likely smi.  Consumes the Result operand.
   Result ConstantSmiBinaryOperation(Token::Value op,
                                     Result* operand,
                                     Handle<Object> constant_operand,
@@ -511,7 +511,7 @@ class CodeGenerator: public AstVisitor {
 
   // Emit code to perform a binary operation on two likely smis.
   // The code to handle smi arguments is produced inline.
-  // Consumes the Results *left and *right.
+  // Consumes the Results left and right.
   Result LikelySmiBinaryOperation(Token::Value op,
                                   Result* left,
                                   Result* right,
index 703ca793aa36f8df4fbd967ea39afb7be20814a9..b9dd00fd24176d26b6dd0a359fb49ea47400d469 100644 (file)
@@ -1553,7 +1553,7 @@ void MacroAssembler::Abort(const char* msg) {
 void MacroAssembler::JumpIfInstanceTypeIsNotSequentialAscii(
     Register instance_type,
     Register scratch,
-    Label *failure) {
+    Labelfailure) {
   if (!scratch.is(instance_type)) {
     mov(scratch, instance_type);
   }
index 00243d76fdf07c1c909a2060cfa3dd9f4198d02c..99b1568b6fea182b9931e935d4b9f6b4ea7990c9 100644 (file)
@@ -476,7 +476,7 @@ class MacroAssembler: public Assembler {
   // for both instance type and scratch.
   void JumpIfInstanceTypeIsNotSequentialAscii(Register instance_type,
                                               Register scratch,
-                                              Label *on_not_flat_ascii_string);
+                                              Labelon_not_flat_ascii_string);
 
   // Checks if both objects are sequential ASCII strings, and jumps to label
   // if either is not.
@@ -484,7 +484,7 @@ class MacroAssembler: public Assembler {
                                            Register object2,
                                            Register scratch1,
                                            Register scratch2,
-                                           Label *on_not_flat_ascii_strings);
+                                           Labelon_not_flat_ascii_strings);
 
  private:
   bool generating_stub_;
index 4e4856dd80ad71cb94532a74815a4b6946b7760d..16164badd84de9ec3ed08b3beffebad9ebfc8c85 100644 (file)
@@ -5635,7 +5635,7 @@ static const char kMonthInYear[] = {
 
 // This function works for dates from 1970 to 2099.
 static inline void DateYMDFromTimeAfter1970(int date,
-                                            int &year, int &month, int &day) {
+                                            int& year, int& month, int& day) {
 #ifdef DEBUG
   int save_date = date;  // Need this for ASSERT in the end.
 #endif
@@ -5651,7 +5651,7 @@ static inline void DateYMDFromTimeAfter1970(int date,
 
 
 static inline void DateYMDFromTimeSlow(int date,
-                                       int &year, int &month, int &day) {
+                                       int& year, int& month, int& day) {
 #ifdef DEBUG
   int save_date = date;  // Need this for ASSERT in the end.
 #endif
@@ -5699,7 +5699,7 @@ static inline void DateYMDFromTimeSlow(int date,
 
 
 static inline void DateYMDFromTime(int date,
-                                   int &year, int &month, int &day) {
+                                   int& year, int& month, int& day) {
   if (date >= 0 && date < 32 * kDaysIn4Years) {
     DateYMDFromTimeAfter1970(date, year, month, day);
   } else {
index a95a7d6aa79ec238d7b3fcccc6e203d3ebd054ae..0e3815183ffc6681c83e2832b76900518cfede34 100644 (file)
@@ -477,7 +477,7 @@ int ExternalReferenceEncoder::IndexOf(Address key) const {
 
 void ExternalReferenceEncoder::Put(Address key, int index) {
   HashMap::Entry* entry = encodings_.Lookup(key, Hash(key), true);
-  entry->value = reinterpret_cast<void *>(index);
+  entry->value = reinterpret_cast<void*>(index);
 }
 
 
@@ -977,7 +977,7 @@ int SerializerDeserializer::partial_snapshot_cache_length_ = 0;
 // the startup snapshot that correspond to the elements of this cache array.  On
 // deserialization we therefore need to visit the cache array.  This fills it up
 // with pointers to deserialized objects.
-void SerializerDeserializer::Iterate(ObjectVisitor *visitor) {
+void SerializerDeserializer::Iterate(ObjectVisitorvisitor) {
   visitor->VisitPointers(
       &partial_snapshot_cache_[0],
       &partial_snapshot_cache_[partial_snapshot_cache_length_]);
index 39533611705c7ab2dceb0046ab23146aa9e7d4d1..395401d91b2c575ccfe1ca009e403eb3d7b5cc6f 100644 (file)
--- a/src/v8.cc
+++ b/src/v8.cc
@@ -43,7 +43,7 @@ bool V8::has_been_setup_ = false;
 bool V8::has_been_disposed_ = false;
 bool V8::has_fatal_error_ = false;
 
-bool V8::Initialize(Deserializer *des) {
+bool V8::Initialize(Deserializerdes) {
   bool create_heap_objects = des == NULL;
   if (has_been_disposed_ || has_fatal_error_) return false;
   if (IsRunning()) return true;