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 | |
159 // Create a new string object which holds a substring of a string. | 155 // Create a new string object which holds a substring of a string. |
160 Handle<String> NewSubString(Handle<String> str, | 156 Handle<String> NewSubString(Handle<String> str, |
161 int begin, | 157 int begin, |
162 int end); | 158 int end); |
163 | 159 |
164 // Create a new string object which holds a proper substring of a string. | 160 // Create a new string object which holds a proper substring of a string. |
165 Handle<String> NewProperSubString(Handle<String> str, | 161 Handle<String> NewProperSubString(Handle<String> str, |
166 int begin, | 162 int begin, |
167 int end); | 163 int end); |
168 | 164 |
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
559 } else { | 555 } else { |
560 return NewNumber(static_cast<double>(value), pretenure); | 556 return NewNumber(static_cast<double>(value), pretenure); |
561 } | 557 } |
562 } | 558 } |
563 | 559 |
564 | 560 |
565 | 561 |
566 } } // namespace v8::internal | 562 } } // namespace v8::internal |
567 | 563 |
568 #endif // V8_FACTORY_H_ | 564 #endif // V8_FACTORY_H_ |
OLD | NEW |