Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 3218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3229 static const int kSize = kLengthOffset + kIntSize; | 3229 static const int kSize = kLengthOffset + kIntSize; |
| 3230 | 3230 |
| 3231 // Limits on sizes of different types of strings. | 3231 // Limits on sizes of different types of strings. |
| 3232 static const int kMaxShortStringSize = 63; | 3232 static const int kMaxShortStringSize = 63; |
| 3233 static const int kMaxMediumStringSize = 16383; | 3233 static const int kMaxMediumStringSize = 16383; |
| 3234 | 3234 |
| 3235 static const int kMaxArrayIndexSize = 10; | 3235 static const int kMaxArrayIndexSize = 10; |
| 3236 | 3236 |
| 3237 // Max ascii char code. | 3237 // Max ascii char code. |
| 3238 static const int kMaxAsciiCharCode = unibrow::Utf8::kMaxOneByteChar; | 3238 static const int kMaxAsciiCharCode = unibrow::Utf8::kMaxOneByteChar; |
| 3239 static const unsigned kMaxAsciiCharCodeU = unibrow::Utf8::kMaxOneByteChar; | |
|
Lasse Reichstein
2009/02/06 15:50:56
This constant is just an alias for a Unibrow const
| |
| 3239 static const int kMaxUC16CharCode = 0xffff; | 3240 static const int kMaxUC16CharCode = 0xffff; |
| 3240 | 3241 |
| 3241 // Minimum length for a cons or sliced string. | 3242 // Minimum length for a cons or sliced string. |
| 3242 static const int kMinNonFlatLength = 13; | 3243 static const int kMinNonFlatLength = 13; |
| 3243 | 3244 |
| 3244 // Mask constant for checking if a string has a computed hash code | 3245 // Mask constant for checking if a string has a computed hash code |
| 3245 // and if it is an array index. The least significant bit indicates | 3246 // and if it is an array index. The least significant bit indicates |
| 3246 // whether a hash code has been computed. If the hash code has been | 3247 // whether a hash code has been computed. If the hash code has been |
| 3247 // computed the 2nd bit tells whether the string can be used as an | 3248 // computed the 2nd bit tells whether the string can be used as an |
| 3248 // array index. | 3249 // array index. |
| (...skipping 978 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4227 } else { | 4228 } else { |
| 4228 value &= ~(1 << bit_position); | 4229 value &= ~(1 << bit_position); |
| 4229 } | 4230 } |
| 4230 return value; | 4231 return value; |
| 4231 } | 4232 } |
| 4232 }; | 4233 }; |
| 4233 | 4234 |
| 4234 } } // namespace v8::internal | 4235 } } // namespace v8::internal |
| 4235 | 4236 |
| 4236 #endif // V8_OBJECTS_H_ | 4237 #endif // V8_OBJECTS_H_ |
| OLD | NEW |