OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 | 126 |
127 // Create a new cons string object which consists of a pair of strings. | 127 // Create a new cons string object which consists of a pair of strings. |
128 Handle<String> NewConsString(Handle<String> first, | 128 Handle<String> NewConsString(Handle<String> first, |
129 Handle<String> second); | 129 Handle<String> second); |
130 | 130 |
131 // Create a new string object which holds a substring of a string. | 131 // Create a new string object which holds a substring of a string. |
132 Handle<String> NewSubString(Handle<String> str, | 132 Handle<String> NewSubString(Handle<String> str, |
133 int begin, | 133 int begin, |
134 int end); | 134 int end); |
135 | 135 |
| 136 // Create a new string object which holds a strict substring of a string. |
| 137 Handle<String> NewStrictSubString(Handle<String> str, |
| 138 int begin, |
| 139 int end); |
| 140 |
136 // Creates a new external String object. There are two String encodings | 141 // Creates a new external String object. There are two String encodings |
137 // in the system: ASCII and two byte. Unlike other String types, it does | 142 // in the system: ASCII and two byte. Unlike other String types, it does |
138 // not make sense to have a UTF-8 factory function for external strings, | 143 // not make sense to have a UTF-8 factory function for external strings, |
139 // because we cannot change the underlying buffer. | 144 // because we cannot change the underlying buffer. |
140 Handle<String> NewExternalStringFromAscii( | 145 Handle<String> NewExternalStringFromAscii( |
141 ExternalAsciiString::Resource* resource); | 146 ExternalAsciiString::Resource* resource); |
142 Handle<String> NewExternalStringFromTwoByte( | 147 Handle<String> NewExternalStringFromTwoByte( |
143 ExternalTwoByteString::Resource* resource); | 148 ExternalTwoByteString::Resource* resource); |
144 | 149 |
145 // Create a global (but otherwise uninitialized) context. | 150 // Create a global (but otherwise uninitialized) context. |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
442 // Update the map cache in the global context with (keys, map) | 447 // Update the map cache in the global context with (keys, map) |
443 Handle<MapCache> AddToMapCache(Handle<Context> context, | 448 Handle<MapCache> AddToMapCache(Handle<Context> context, |
444 Handle<FixedArray> keys, | 449 Handle<FixedArray> keys, |
445 Handle<Map> map); | 450 Handle<Map> map); |
446 }; | 451 }; |
447 | 452 |
448 | 453 |
449 } } // namespace v8::internal | 454 } } // namespace v8::internal |
450 | 455 |
451 #endif // V8_FACTORY_H_ | 456 #endif // V8_FACTORY_H_ |
OLD | NEW |