Reviewers: William Hesse,

Description:
Minor cleanups.

Please review this at http://codereview.chromium.org/8008

SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/

Affected files:
   M     src/objects.h
   M     src/objects.cc


Index: src/objects.cc
===================================================================
--- src/objects.cc      (revision 535)
+++ src/objects.cc      (working copy)
@@ -2878,15 +2878,15 @@
    StringRepresentationTag string_tag = representation_tag();
    String* string = this;
    if (string_tag == kSlicedStringTag) {
-      SlicedString* sliced = SlicedString::cast(string);
-      offset += sliced->start();
-      string = String::cast(sliced->buffer());
-      string_tag = string->representation_tag();
+    SlicedString* sliced = SlicedString::cast(string);
+    offset += sliced->start();
+    string = String::cast(sliced->buffer());
+    string_tag = string->representation_tag();
    } else if (string_tag == kConsStringTag) {
-      ConsString* cons = ConsString::cast(string);
-      ASSERT(String::cast(cons->second())->length() == 0);
-      string = String::cast(cons->first());
-      string_tag = string->representation_tag();
+    ConsString* cons = ConsString::cast(string);
+    ASSERT(String::cast(cons->second())->length() == 0);
+    string = String::cast(cons->first());
+    string_tag = string->representation_tag();
    }
    if (string_tag == kSeqStringTag) {
      SeqAsciiString* seq = SeqAsciiString::cast(string);
@@ -2909,15 +2909,15 @@
    StringRepresentationTag string_tag = representation_tag();
    String* string = this;
    if (string_tag == kSlicedStringTag) {
-      SlicedString* sliced = SlicedString::cast(string);
-      offset += sliced->start();
-      string = String::cast(sliced->buffer());
-      string_tag = string->representation_tag();
+    SlicedString* sliced = SlicedString::cast(string);
+    offset += sliced->start();
+    string = String::cast(sliced->buffer());
+    string_tag = string->representation_tag();
    } else if (string_tag == kConsStringTag) {
-      ConsString* cons = ConsString::cast(string);
-      ASSERT(String::cast(cons->second())->length() == 0);
-      string = String::cast(cons->first());
-      string_tag = string->representation_tag();
+    ConsString* cons = ConsString::cast(string);
+    ASSERT(String::cast(cons->second())->length() == 0);
+    string = String::cast(cons->first());
+    string_tag = string->representation_tag();
    }
    if (string_tag == kSeqStringTag) {
      SeqTwoByteString* seq = SeqTwoByteString::cast(string);
Index: src/objects.h
===================================================================
--- src/objects.h       (revision 535)
+++ src/objects.h       (working copy)
@@ -3301,7 +3301,7 @@
                                              unsigned chars);


-  // Minimum lenth for a cons string.
+  // Minimum length for a cons string.
    static const int kMinLength = 13;

   private:



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

Reply via email to