Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index d5b46de0c322cfe2b49fce059c5adc96392f892e..49333eb21ca0854e2b4d0fdc6b2f8e72a8d6b850 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 |
} |
@@ -2279,6 +2286,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); |