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 1180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1191 V8EXPORT static Local<String> New(const uint16_t* data, int length = -1); | 1191 V8EXPORT static Local<String> New(const uint16_t* data, int length = -1); |
1192 | 1192 |
1193 /** Creates a symbol. Returns one if it exists already.*/ | 1193 /** Creates a symbol. Returns one if it exists already.*/ |
1194 V8EXPORT static Local<String> NewSymbol(const char* data, int length = -1); | 1194 V8EXPORT static Local<String> NewSymbol(const char* data, int length = -1); |
1195 | 1195 |
1196 /** | 1196 /** |
1197 * Creates a new string by concatenating the left and the right strings | 1197 * Creates a new string by concatenating the left and the right strings |
1198 * passed in as parameters. | 1198 * passed in as parameters. |
1199 */ | 1199 */ |
1200 V8EXPORT static Local<String> Concat(Handle<String> left, | 1200 V8EXPORT static Local<String> Concat(Handle<String> left, |
1201 Handle<String>right); | 1201 Handle<String> right); |
1202 | 1202 |
1203 /** | 1203 /** |
1204 * Creates a new external string using the data defined in the given | 1204 * Creates a new external string using the data defined in the given |
1205 * resource. When the external string is no longer live on V8's heap the | 1205 * resource. When the external string is no longer live on V8's heap the |
1206 * resource will be disposed by calling its Dispose method. The caller of | 1206 * resource will be disposed by calling its Dispose method. The caller of |
1207 * this function should not otherwise delete or modify the resource. Neither | 1207 * this function should not otherwise delete or modify the resource. Neither |
1208 * should the underlying buffer be deallocated or modified except through the | 1208 * should the underlying buffer be deallocated or modified except through the |
1209 * destructor of the external string resource. | 1209 * destructor of the external string resource. |
1210 */ | 1210 */ |
1211 V8EXPORT static Local<String> NewExternal(ExternalStringResource* resource); | 1211 V8EXPORT static Local<String> NewExternal(ExternalStringResource* resource); |
(...skipping 3070 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4282 | 4282 |
4283 | 4283 |
4284 } // namespace v8 | 4284 } // namespace v8 |
4285 | 4285 |
4286 | 4286 |
4287 #undef V8EXPORT | 4287 #undef V8EXPORT |
4288 #undef TYPE_CHECK | 4288 #undef TYPE_CHECK |
4289 | 4289 |
4290 | 4290 |
4291 #endif // V8_H_ | 4291 #endif // V8_H_ |
OLD | NEW |