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 3283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3294 | 3294 |
3295 // Support for StringInputBuffer. | 3295 // Support for StringInputBuffer. |
3296 inline const unibrow::byte* ConsStringReadBlock(ReadBlockBuffer* buffer, | 3296 inline const unibrow::byte* ConsStringReadBlock(ReadBlockBuffer* buffer, |
3297 unsigned* offset_ptr, | 3297 unsigned* offset_ptr, |
3298 unsigned chars); | 3298 unsigned chars); |
3299 inline void ConsStringReadBlockIntoBuffer(ReadBlockBuffer* buffer, | 3299 inline void ConsStringReadBlockIntoBuffer(ReadBlockBuffer* buffer, |
3300 unsigned* offset_ptr, | 3300 unsigned* offset_ptr, |
3301 unsigned chars); | 3301 unsigned chars); |
3302 | 3302 |
3303 | 3303 |
3304 // Minimum lenth for a cons string. | 3304 // Minimum length for a cons string. |
3305 static const int kMinLength = 13; | 3305 static const int kMinLength = 13; |
3306 | 3306 |
3307 private: | 3307 private: |
3308 DISALLOW_IMPLICIT_CONSTRUCTORS(ConsString); | 3308 DISALLOW_IMPLICIT_CONSTRUCTORS(ConsString); |
3309 }; | 3309 }; |
3310 | 3310 |
3311 | 3311 |
3312 // The SlicedString class describes string values that are slices of | 3312 // The SlicedString class describes string values that are slices of |
3313 // some other string. SlicedStrings consist of a reference to an | 3313 // some other string. SlicedStrings consist of a reference to an |
3314 // underlying heap-allocated string value, a start index, and the | 3314 // underlying heap-allocated string value, a start index, and the |
(...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4020 } else { | 4020 } else { |
4021 value &= ~(1 << bit_position); | 4021 value &= ~(1 << bit_position); |
4022 } | 4022 } |
4023 return value; | 4023 return value; |
4024 } | 4024 } |
4025 }; | 4025 }; |
4026 | 4026 |
4027 } } // namespace v8::internal | 4027 } } // namespace v8::internal |
4028 | 4028 |
4029 #endif // V8_OBJECTS_H_ | 4029 #endif // V8_OBJECTS_H_ |
OLD | NEW |