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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 Vector<const char> str, | 110 Vector<const char> str, |
111 PretenureFlag pretenure = NOT_TENURED); | 111 PretenureFlag pretenure = NOT_TENURED); |
112 | 112 |
113 Handle<String> NewStringFromTwoByte( | 113 Handle<String> NewStringFromTwoByte( |
114 Vector<const uc16> str, | 114 Vector<const uc16> str, |
115 PretenureFlag pretenure = NOT_TENURED); | 115 PretenureFlag pretenure = NOT_TENURED); |
116 | 116 |
117 // Allocates and partially initializes an ASCII or TwoByte String. The | 117 // Allocates and partially initializes an ASCII or TwoByte String. The |
118 // characters of the string are uninitialized. Currently used in regexp code | 118 // characters of the string are uninitialized. Currently used in regexp code |
119 // only, where they are pretenured. | 119 // only, where they are pretenured. |
120 Handle<String> NewRawAsciiString( | 120 Handle<SeqAsciiString> NewRawAsciiString( |
121 int length, | 121 int length, |
122 PretenureFlag pretenure = NOT_TENURED); | 122 PretenureFlag pretenure = NOT_TENURED); |
123 Handle<String> NewRawTwoByteString( | 123 Handle<SeqTwoByteString> NewRawTwoByteString( |
124 int length, | 124 int length, |
125 PretenureFlag pretenure = NOT_TENURED); | 125 PretenureFlag pretenure = NOT_TENURED); |
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. | 136 // Create a new string object which holds a proper substring of a string. |
137 Handle<String> NewStrictSubString(Handle<String> str, | 137 Handle<String> NewProperSubString(Handle<String> str, |
138 int begin, | 138 int begin, |
139 int end); | 139 int end); |
140 | 140 |
141 // Creates a new external String object. There are two String encodings | 141 // Creates a new external String object. There are two String encodings |
142 // 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 |
143 // 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, |
144 // because we cannot change the underlying buffer. | 144 // because we cannot change the underlying buffer. |
145 Handle<String> NewExternalStringFromAscii( | 145 Handle<String> NewExternalStringFromAscii( |
146 ExternalAsciiString::Resource* resource); | 146 ExternalAsciiString::Resource* resource); |
147 Handle<String> NewExternalStringFromTwoByte( | 147 Handle<String> NewExternalStringFromTwoByte( |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 // Update the map cache in the global context with (keys, map) | 447 // Update the map cache in the global context with (keys, map) |
448 Handle<MapCache> AddToMapCache(Handle<Context> context, | 448 Handle<MapCache> AddToMapCache(Handle<Context> context, |
449 Handle<FixedArray> keys, | 449 Handle<FixedArray> keys, |
450 Handle<Map> map); | 450 Handle<Map> map); |
451 }; | 451 }; |
452 | 452 |
453 | 453 |
454 } } // namespace v8::internal | 454 } } // namespace v8::internal |
455 | 455 |
456 #endif // V8_FACTORY_H_ | 456 #endif // V8_FACTORY_H_ |
OLD | NEW |