OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 7224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7235 static const int kMaxLength = (kMaxSize - kHeaderSize); | 7235 static const int kMaxLength = (kMaxSize - kHeaderSize); |
7236 | 7236 |
7237 // Support for StringInputBuffer. | 7237 // Support for StringInputBuffer. |
7238 inline void SeqAsciiStringReadBlockIntoBuffer(ReadBlockBuffer* buffer, | 7238 inline void SeqAsciiStringReadBlockIntoBuffer(ReadBlockBuffer* buffer, |
7239 unsigned* offset, | 7239 unsigned* offset, |
7240 unsigned chars); | 7240 unsigned chars); |
7241 inline const unibrow::byte* SeqAsciiStringReadBlock(unsigned* remaining, | 7241 inline const unibrow::byte* SeqAsciiStringReadBlock(unsigned* remaining, |
7242 unsigned* offset, | 7242 unsigned* offset, |
7243 unsigned chars); | 7243 unsigned chars); |
7244 | 7244 |
| 7245 #ifdef DEBUG |
| 7246 void SeqAsciiStringVerify(); |
| 7247 #endif |
| 7248 |
7245 private: | 7249 private: |
7246 DISALLOW_IMPLICIT_CONSTRUCTORS(SeqAsciiString); | 7250 DISALLOW_IMPLICIT_CONSTRUCTORS(SeqAsciiString); |
7247 }; | 7251 }; |
7248 | 7252 |
7249 | 7253 |
7250 // The TwoByteString class captures sequential unicode string objects. | 7254 // The TwoByteString class captures sequential unicode string objects. |
7251 // Each character in the TwoByteString is a two-byte uint16_t. | 7255 // Each character in the TwoByteString is a two-byte uint16_t. |
7252 class SeqTwoByteString: public SeqString { | 7256 class SeqTwoByteString: public SeqString { |
7253 public: | 7257 public: |
7254 static const bool kHasAsciiEncoding = false; | 7258 static const bool kHasAsciiEncoding = false; |
(...skipping 1392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8647 } else { | 8651 } else { |
8648 value &= ~(1 << bit_position); | 8652 value &= ~(1 << bit_position); |
8649 } | 8653 } |
8650 return value; | 8654 return value; |
8651 } | 8655 } |
8652 }; | 8656 }; |
8653 | 8657 |
8654 } } // namespace v8::internal | 8658 } } // namespace v8::internal |
8655 | 8659 |
8656 #endif // V8_OBJECTS_H_ | 8660 #endif // V8_OBJECTS_H_ |
OLD | NEW |