Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index 85a11e7c55ed9e5061981628288a405834b379f6..85c2a7c1f55b15a14195ea311f5e12da7d8fcbbb 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -45,6 +45,10 @@ |
#include "extensions/statistics-extension.h" |
#include "code-stubs.h" |
+#if defined(V8_I18N_SUPPORT) |
+#include "extensions/i18n/i18n-extension.h" |
+#endif |
+ |
namespace v8 { |
namespace internal { |
@@ -102,6 +106,9 @@ void Bootstrapper::InitializeOncePerProcess() { |
GCExtension::Register(); |
ExternalizeStringExtension::Register(); |
StatisticsExtension::Register(); |
+#if defined(V8_I18N_SUPPORT) |
+ v8_i18n::Extension::Register(); |
+#endif |
} |
@@ -2288,6 +2295,12 @@ bool Genesis::InstallExtensions(Handle<Context> native_context, |
InstallExtension(isolate, "v8/statistics", &extension_states); |
} |
+#if defined(V8_I18N_SUPPORT) |
+ if (FLAG_enable_i18n) { |
+ InstallExtension(isolate, "v8/i18n", &extension_states); |
+ } |
+#endif |
+ |
if (extensions == NULL) return true; |
// Install required extensions |
int count = v8::ImplementationUtilities::GetNameCount(extensions); |