OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_STRING_BUILDER_H_ | 5 #ifndef V8_STRING_BUILDER_H_ |
6 #define V8_STRING_BUILDER_H_ | 6 #define V8_STRING_BUILDER_H_ |
7 | 7 |
8 #include "src/objects-inl.h" | 8 #include "src/assert-scope.h" |
| 9 #include "src/factory.h" |
| 10 #include "src/handles.h" |
| 11 #include "src/isolate.h" |
| 12 #include "src/objects.h" |
9 #include "src/utils.h" | 13 #include "src/utils.h" |
10 | 14 |
11 namespace v8 { | 15 namespace v8 { |
12 namespace internal { | 16 namespace internal { |
13 | 17 |
14 const int kStringBuilderConcatHelperLengthBits = 11; | 18 const int kStringBuilderConcatHelperLengthBits = 11; |
15 const int kStringBuilderConcatHelperPositionBits = 19; | 19 const int kStringBuilderConcatHelperPositionBits = 19; |
16 | 20 |
17 typedef BitField<int, 0, kStringBuilderConcatHelperLengthBits> | 21 typedef BitField<int, 0, kStringBuilderConcatHelperLengthBits> |
18 StringBuilderSubstringLength; | 22 StringBuilderSubstringLength; |
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 DCHECK_EQ(String::TWO_BYTE_ENCODING, encoding_); | 426 DCHECK_EQ(String::TWO_BYTE_ENCODING, encoding_); |
423 SeqTwoByteString::cast(*current_part_) | 427 SeqTwoByteString::cast(*current_part_) |
424 ->SeqTwoByteStringSet(current_index_++, c); | 428 ->SeqTwoByteStringSet(current_index_++, c); |
425 } | 429 } |
426 if (current_index_ == part_length_) Extend(); | 430 if (current_index_ == part_length_) Extend(); |
427 } | 431 } |
428 } | 432 } |
429 } // namespace v8::internal | 433 } // namespace v8::internal |
430 | 434 |
431 #endif // V8_STRING_BUILDER_H_ | 435 #endif // V8_STRING_BUILDER_H_ |
OLD | NEW |