| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 /** \mainpage V8 API Reference Guide | 5 /** \mainpage V8 API Reference Guide |
| 6 * | 6 * |
| 7 * V8 is Google's open source JavaScript engine. | 7 * V8 is Google's open source JavaScript engine. |
| 8 * | 8 * |
| 9 * This set of documents provides reference material generated from the | 9 * This set of documents provides reference material generated from the |
| 10 * V8 header file, include/v8.h. | 10 * V8 header file, include/v8.h. |
| (...skipping 6230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6241 /** | 6241 /** |
| 6242 * Initialize the ICU library bundled with V8. The embedder should only | 6242 * Initialize the ICU library bundled with V8. The embedder should only |
| 6243 * invoke this method when using the bundled ICU. Returns true on success. | 6243 * invoke this method when using the bundled ICU. Returns true on success. |
| 6244 * | 6244 * |
| 6245 * If V8 was compiled with the ICU data in an external file, the location | 6245 * If V8 was compiled with the ICU data in an external file, the location |
| 6246 * of the data file has to be provided. | 6246 * of the data file has to be provided. |
| 6247 */ | 6247 */ |
| 6248 static bool InitializeICU(const char* icu_data_file = NULL); | 6248 static bool InitializeICU(const char* icu_data_file = NULL); |
| 6249 | 6249 |
| 6250 /** | 6250 /** |
| 6251 * Initialize the external startup data. The embedder only needs to |
| 6252 * invoke this method when external startup data was enabled in a build. |
| 6253 * |
| 6254 * If V8 was compiled with the startup data in an external file, then |
| 6255 * V8 needs to be given those external files during startup. There are |
| 6256 * three ways to do this: |
| 6257 * - InitializeExternalStartupData(const char*) |
| 6258 * This will look in the given directory for files "natives_blob.bin" |
| 6259 * and "snapshot_blob.bin" - which is what the default build calls them. |
| 6260 * - InitializeExternalStartupData(const char*, const char*) |
| 6261 * As above, but will directly use the two given file names. |
| 6262 * - Call SetNativesDataBlob, SetNativesDataBlob. |
| 6263 * This will read the blobs from the given data structures and will |
| 6264 * not perform any file IO. |
| 6265 */ |
| 6266 static void InitializeExternalStartupData(const char* directory_path); |
| 6267 static void InitializeExternalStartupData(const char* natives_blob, |
| 6268 const char* snapshot_blob); |
| 6269 /** |
| 6251 * Sets the v8::Platform to use. This should be invoked before V8 is | 6270 * Sets the v8::Platform to use. This should be invoked before V8 is |
| 6252 * initialized. | 6271 * initialized. |
| 6253 */ | 6272 */ |
| 6254 static void InitializePlatform(Platform* platform); | 6273 static void InitializePlatform(Platform* platform); |
| 6255 | 6274 |
| 6256 /** | 6275 /** |
| 6257 * Clears all references to the v8::Platform. This should be invoked after | 6276 * Clears all references to the v8::Platform. This should be invoked after |
| 6258 * V8 was disposed. | 6277 * V8 was disposed. |
| 6259 */ | 6278 */ |
| 6260 static void ShutdownPlatform(); | 6279 static void ShutdownPlatform(); |
| (...skipping 2077 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8338 */ | 8357 */ |
| 8339 | 8358 |
| 8340 | 8359 |
| 8341 } // namespace v8 | 8360 } // namespace v8 |
| 8342 | 8361 |
| 8343 | 8362 |
| 8344 #undef TYPE_CHECK | 8363 #undef TYPE_CHECK |
| 8345 | 8364 |
| 8346 | 8365 |
| 8347 #endif // V8_H_ | 8366 #endif // V8_H_ |
| OLD | NEW |