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_FACTORY_H_ | 5 #ifndef V8_FACTORY_H_ |
6 #define V8_FACTORY_H_ | 6 #define V8_FACTORY_H_ |
7 | 7 |
8 #include "src/feedback-vector.h" | 8 #include "src/feedback-vector.h" |
9 #include "src/globals.h" | 9 #include "src/globals.h" |
10 #include "src/isolate.h" | 10 #include "src/isolate.h" |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
245 PretenureFlag pretenure = NOT_TENURED); | 245 PretenureFlag pretenure = NOT_TENURED); |
246 | 246 |
247 // Creates a single character string where the character has given code. | 247 // Creates a single character string where the character has given code. |
248 // A cache is used for Latin1 codes. | 248 // A cache is used for Latin1 codes. |
249 Handle<String> LookupSingleCharacterStringFromCode(uint32_t code); | 249 Handle<String> LookupSingleCharacterStringFromCode(uint32_t code); |
250 | 250 |
251 // Create a new cons string object which consists of a pair of strings. | 251 // Create a new cons string object which consists of a pair of strings. |
252 MUST_USE_RESULT MaybeHandle<String> NewConsString(Handle<String> left, | 252 MUST_USE_RESULT MaybeHandle<String> NewConsString(Handle<String> left, |
253 Handle<String> right); | 253 Handle<String> right); |
254 | 254 |
| 255 MUST_USE_RESULT Handle<String> NewConsString(Handle<String> left, |
| 256 Handle<String> right, int length, |
| 257 bool one_byte); |
| 258 |
255 // Create or lookup a single characters tring made up of a utf16 surrogate | 259 // Create or lookup a single characters tring made up of a utf16 surrogate |
256 // pair. | 260 // pair. |
257 Handle<String> NewSurrogatePairString(uint16_t lead, uint16_t trail); | 261 Handle<String> NewSurrogatePairString(uint16_t lead, uint16_t trail); |
258 | 262 |
259 // Create a new string object which holds a proper substring of a string. | 263 // Create a new string object which holds a proper substring of a string. |
260 Handle<String> NewProperSubString(Handle<String> str, | 264 Handle<String> NewProperSubString(Handle<String> str, |
261 int begin, | 265 int begin, |
262 int end); | 266 int end); |
263 | 267 |
264 // Create a new string object which holds a substring of a string. | 268 // Create a new string object which holds a substring of a string. |
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
841 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, | 845 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, |
842 FunctionMode function_mode); | 846 FunctionMode function_mode); |
843 | 847 |
844 void SetClassFunctionInstanceDescriptor(Handle<Map> map); | 848 void SetClassFunctionInstanceDescriptor(Handle<Map> map); |
845 }; | 849 }; |
846 | 850 |
847 } // namespace internal | 851 } // namespace internal |
848 } // namespace v8 | 852 } // namespace v8 |
849 | 853 |
850 #endif // V8_FACTORY_H_ | 854 #endif // V8_FACTORY_H_ |
OLD | NEW |