Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Side by Side Diff: include/v8.h

Issue 1292053002: Rework startup-data-util. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Same as Patch Set 3, but revert the "Test for all platforms" bits. Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « BUILD.gn ('k') | samples/hello-world.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | samples/hello-world.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698