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 6202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6213 /** | 6213 /** |
6214 * Initialize the ICU library bundled with V8. The embedder should only | 6214 * Initialize the ICU library bundled with V8. The embedder should only |
6215 * invoke this method when using the bundled ICU. Returns true on success. | 6215 * invoke this method when using the bundled ICU. Returns true on success. |
6216 * | 6216 * |
6217 * If V8 was compiled with the ICU data in an external file, the location | 6217 * If V8 was compiled with the ICU data in an external file, the location |
6218 * of the data file has to be provided. | 6218 * of the data file has to be provided. |
6219 */ | 6219 */ |
6220 static bool InitializeICU(const char* icu_data_file = NULL); | 6220 static bool InitializeICU(const char* icu_data_file = NULL); |
6221 | 6221 |
6222 /** | 6222 /** |
| 6223 * Initialize the external startup data. The embedder only needs to |
| 6224 * invoke this method when external startup data was enabled in a build. |
| 6225 * |
| 6226 * If V8 was compiled with the startup data in an external file, then |
| 6227 * V8 needs to be given those external files during startup. There are |
| 6228 * three ways to do this: |
| 6229 * - InitializeExternalStartupData(const char*) |
| 6230 * This will look in the given directory for files "natives_blob.bin" |
| 6231 * and "snapshot_blob.bin" - which is what the default build calls them. |
| 6232 * - InitializeExternalStartupData(const char*, const char*) |
| 6233 * As above, but will directly use the two given file names. |
| 6234 * - Call SetNativesDataBlob, SetNativesDataBlob. |
| 6235 * This will read the blobs from the given data structures and will |
| 6236 * not perform any file IO. |
| 6237 */ |
| 6238 static void InitializeExternalStartupData(const char* directory_path); |
| 6239 static void InitializeExternalStartupData(const char* natives_blob, |
| 6240 const char* snapshot_blob); |
| 6241 /** |
6223 * Sets the v8::Platform to use. This should be invoked before V8 is | 6242 * Sets the v8::Platform to use. This should be invoked before V8 is |
6224 * initialized. | 6243 * initialized. |
6225 */ | 6244 */ |
6226 static void InitializePlatform(Platform* platform); | 6245 static void InitializePlatform(Platform* platform); |
6227 | 6246 |
6228 /** | 6247 /** |
6229 * Clears all references to the v8::Platform. This should be invoked after | 6248 * Clears all references to the v8::Platform. This should be invoked after |
6230 * V8 was disposed. | 6249 * V8 was disposed. |
6231 */ | 6250 */ |
6232 static void ShutdownPlatform(); | 6251 static void ShutdownPlatform(); |
(...skipping 2084 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8317 */ | 8336 */ |
8318 | 8337 |
8319 | 8338 |
8320 } // namespace v8 | 8339 } // namespace v8 |
8321 | 8340 |
8322 | 8341 |
8323 #undef TYPE_CHECK | 8342 #undef TYPE_CHECK |
8324 | 8343 |
8325 | 8344 |
8326 #endif // V8_H_ | 8345 #endif // V8_H_ |
OLD | NEW |