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

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: 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
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 6692 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 static bool InitializeICU(const char* icu_data_file = NULL);
6711 6711
6712 /** 6712 /**
6713 * Initialize the ICU library bundled with V8. The embedder should only
6714 * invoke this method when V8 was compiled with the ICU data in an external
6715 * file and when the default location of that file should be used. The
6716 * default is a file called icudtl.dat side-by-side with the executable.
6717 * Returns true on success.
jochen (gone - plz use gerrit) 2016/06/07 19:05:44 or icudtl.dll on windows
Michael Achenbach 2016/06/08 07:08:18 Don't understand. This is only about the data file
Michael Achenbach 2016/06/08 08:00:25 I rewrote the docu a bit.
6718 *
6719 * A path to the executable must be provided. Optionally, the location of the
6720 * data file can be provided to override the default.
6721 */
6722 static bool InitializeICUDefaultLocation(const char* exec_path,
jochen (gone - plz use gerrit) 2016/06/07 19:05:44 what about just replacing the old API? Or at least
Michael Achenbach 2016/06/08 07:08:18 Is chromium at all using the old API? They must ha
Michael Achenbach 2016/06/08 08:00:25 Marked.
6723 const char* icu_data_file = NULL);
jochen (gone - plz use gerrit) 2016/06/07 19:05:44 nullptr
Michael Achenbach 2016/06/08 08:00:25 Done. Also in the old api.
6724
6725 /**
6713 * Initialize the external startup data. The embedder only needs to 6726 * Initialize the external startup data. The embedder only needs to
6714 * invoke this method when external startup data was enabled in a build. 6727 * invoke this method when external startup data was enabled in a build.
6715 * 6728 *
6716 * If V8 was compiled with the startup data in an external file, then 6729 * 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 6730 * V8 needs to be given those external files during startup. There are
6718 * three ways to do this: 6731 * three ways to do this:
6719 * - InitializeExternalStartupData(const char*) 6732 * - InitializeExternalStartupData(const char*)
6720 * This will look in the given directory for files "natives_blob.bin" 6733 * This will look in the given directory for files "natives_blob.bin"
6721 * and "snapshot_blob.bin" - which is what the default build calls them. 6734 * and "snapshot_blob.bin" - which is what the default build calls them.
6722 * - InitializeExternalStartupData(const char*, const char*) 6735 * - InitializeExternalStartupData(const char*, const char*)
(...skipping 2106 matching lines...) Expand 10 before | Expand all | Expand 10 after
8829 */ 8842 */
8830 8843
8831 8844
8832 } // namespace v8 8845 } // namespace v8
8833 8846
8834 8847
8835 #undef TYPE_CHECK 8848 #undef TYPE_CHECK
8836 8849
8837 8850
8838 #endif // INCLUDE_V8_H_ 8851 #endif // INCLUDE_V8_H_
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | samples/hello-world.cc » ('j') | src/file-utils.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698