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

Side by Side Diff: include/v8.h

Issue 2042253002: [icu] Support loading data file from default location (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Format Created 4 years, 6 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 6689 matching lines...) Expand 10 before | Expand all | Expand 10 after
6700 void VisitHandlesForPartialDependence(Isolate* isolate, 6700 void VisitHandlesForPartialDependence(Isolate* isolate,
6701 PersistentHandleVisitor* visitor)); 6701 PersistentHandleVisitor* visitor));
6702 6702
6703 /** 6703 /**
6704 * Initialize the ICU library bundled with V8. The embedder should only 6704 * Initialize the ICU library bundled with V8. The embedder should only
6705 * invoke this method when using the bundled ICU. Returns true on success. 6705 * invoke this method when using the bundled ICU. Returns true on success.
6706 * 6706 *
6707 * If V8 was compiled with the ICU data in an external file, the location 6707 * If V8 was compiled with the ICU data in an external file, the location
6708 * of the data file has to be provided. 6708 * of the data file has to be provided.
6709 */ 6709 */
6710 static bool InitializeICU(const char* icu_data_file = NULL); 6710 V8_DEPRECATE_SOON(
6711 "Use version with default location.",
6712 static bool InitializeICU(const char* icu_data_file = nullptr));
6713
6714 /**
6715 * Initialize the ICU library bundled with V8. The embedder should only
6716 * invoke this method when using the bundled ICU. If V8 was compiled with
6717 * the ICU data in an external file and when the default location of that
6718 * file should be used, a path to the executable must be provided.
6719 * Returns true on success.
6720 *
6721 * The default is a file called icudtl.dat side-by-side with the executable.
6722 *
6723 * Optionally, the location of the data file can be provided to override the
6724 * default.
6725 */
6726 static bool InitializeICUDefaultLocation(const char* exec_path,
6727 const char* icu_data_file = nullptr);
6711 6728
6712 /** 6729 /**
6713 * Initialize the external startup data. The embedder only needs to 6730 * Initialize the external startup data. The embedder only needs to
6714 * invoke this method when external startup data was enabled in a build. 6731 * invoke this method when external startup data was enabled in a build.
6715 * 6732 *
6716 * If V8 was compiled with the startup data in an external file, then 6733 * If V8 was compiled with the startup data in an external file, then
6717 * V8 needs to be given those external files during startup. There are 6734 * V8 needs to be given those external files during startup. There are
6718 * three ways to do this: 6735 * three ways to do this:
6719 * - InitializeExternalStartupData(const char*) 6736 * - InitializeExternalStartupData(const char*)
6720 * This will look in the given directory for files "natives_blob.bin" 6737 * This will look in the given directory for files "natives_blob.bin"
(...skipping 2108 matching lines...) Expand 10 before | Expand all | Expand 10 after
8829 */ 8846 */
8830 8847
8831 8848
8832 } // namespace v8 8849 } // namespace v8
8833 8850
8834 8851
8835 #undef TYPE_CHECK 8852 #undef TYPE_CHECK
8836 8853
8837 8854
8838 #endif // INCLUDE_V8_H_ 8855 #endif // INCLUDE_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