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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 int length, | 145 int length, |
146 PretenureFlag pretenure = NOT_TENURED); | 146 PretenureFlag pretenure = NOT_TENURED); |
147 Handle<SeqTwoByteString> NewRawTwoByteString( | 147 Handle<SeqTwoByteString> NewRawTwoByteString( |
148 int length, | 148 int length, |
149 PretenureFlag pretenure = NOT_TENURED); | 149 PretenureFlag pretenure = NOT_TENURED); |
150 | 150 |
151 // Create a new cons string object which consists of a pair of strings. | 151 // Create a new cons string object which consists of a pair of strings. |
152 Handle<String> NewConsString(Handle<String> first, | 152 Handle<String> NewConsString(Handle<String> first, |
153 Handle<String> second); | 153 Handle<String> second); |
154 | 154 |
| 155 // Create a new sequential string containing the concatenation of the inputs. |
| 156 Handle<String> NewFlatConcatString(Handle<String> first, |
| 157 Handle<String> second); |
| 158 |
155 // Create a new string object which holds a substring of a string. | 159 // Create a new string object which holds a substring of a string. |
156 Handle<String> NewSubString(Handle<String> str, | 160 Handle<String> NewSubString(Handle<String> str, |
157 int begin, | 161 int begin, |
158 int end); | 162 int end); |
159 | 163 |
160 // Create a new string object which holds a proper substring of a string. | 164 // Create a new string object which holds a proper substring of a string. |
161 Handle<String> NewProperSubString(Handle<String> str, | 165 Handle<String> NewProperSubString(Handle<String> str, |
162 int begin, | 166 int begin, |
163 int end); | 167 int end); |
164 | 168 |
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
555 } else { | 559 } else { |
556 return NewNumber(static_cast<double>(value), pretenure); | 560 return NewNumber(static_cast<double>(value), pretenure); |
557 } | 561 } |
558 } | 562 } |
559 | 563 |
560 | 564 |
561 | 565 |
562 } } // namespace v8::internal | 566 } } // namespace v8::internal |
563 | 567 |
564 #endif // V8_FACTORY_H_ | 568 #endif // V8_FACTORY_H_ |
OLD | NEW |