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

Unified Diff: src/d8.cc

Issue 18899002: Initialize ICU data files in d8 and disable i18n for other code samples (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: updates Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « samples/shell.cc ('k') | src/d8.gyp » ('j') | src/icu_util.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/d8.cc
diff --git a/src/d8.cc b/src/d8.cc
index cb43d2f9c2ca0ce72310ea4938871667abd398b5..21daa0bf5c81dfcd5257d6050f35c336cc0a591f 100644
--- a/src/d8.cc
+++ b/src/d8.cc
@@ -68,6 +68,10 @@
#include "v8.h"
#endif // V8_SHARED
+#if defined(V8_I18N_SUPPORT)
+#include "icu_util.h"
+#endif
+
#if !defined(_WIN32) && !defined(_WIN64)
#include <unistd.h> // NOLINT
#endif
@@ -1582,6 +1586,9 @@ class ShellArrayBufferAllocator : public v8::ArrayBuffer::Allocator {
int Shell::Main(int argc, char* argv[]) {
if (!SetOptions(argc, argv)) return 1;
+#if defined(V8_I18N_SUPPORT)
+ InitializeICU();
+#endif
#ifndef V8_SHARED
i::FLAG_harmony_array_buffer = true;
i::FLAG_harmony_typed_arrays = true;
« no previous file with comments | « samples/shell.cc ('k') | src/d8.gyp » ('j') | src/icu_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698