Chromium Code Reviews| Index: src/objects.h |
| diff --git a/src/objects.h b/src/objects.h |
| index 8f854b8060e86124d781b888344efdb79b4bc77e..8ffb96f45627804a88a53a342a3d90c458fb9b5d 100644 |
| --- a/src/objects.h |
| +++ b/src/objects.h |
| @@ -6127,6 +6127,10 @@ class SeqString: public String { |
| // Casting. |
| static inline SeqString* cast(Object* obj); |
| + // Layout description. |
| + static const int kHeaderSize = String::kSize; |
| + static const int kAlignedSize = POINTER_SIZE_ALIGN(kHeaderSize); |
|
Lasse Reichstein
2011/09/20 08:42:01
Do we ever use kAlignedSize any more?
Since we mad
Michael Starzinger
2011/09/20 16:07:39
Done.
|
| + |
| private: |
| DISALLOW_IMPLICIT_CONSTRUCTORS(SeqString); |
| }; |
| @@ -6160,10 +6164,6 @@ class SeqAsciiString: public SeqString { |
| return OBJECT_POINTER_ALIGN(kHeaderSize + length * kCharSize); |
| } |
| - // Layout description. |
| - static const int kHeaderSize = String::kSize; |
| - static const int kAlignedSize = POINTER_SIZE_ALIGN(kHeaderSize); |
| - |
| // Maximal memory usage for a single sequential ASCII string. |
| static const int kMaxSize = 512 * MB - 1; |
| // Maximal length of a single sequential ASCII string. |
| @@ -6214,10 +6214,6 @@ class SeqTwoByteString: public SeqString { |
| return OBJECT_POINTER_ALIGN(kHeaderSize + length * kShortSize); |
| } |
| - // Layout description. |
| - static const int kHeaderSize = String::kSize; |
| - static const int kAlignedSize = POINTER_SIZE_ALIGN(kHeaderSize); |
| - |
| // Maximal memory usage for a single sequential two-byte string. |
| static const int kMaxSize = 512 * MB - 1; |
| // Maximal length of a single sequential two-byte string. |