Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index 7105eb25e2380a347b93b2e94b6a04d3a79d99c2..5b616af5df5eb65db42a5e86c2bf0ada21432d3f 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -1625,7 +1625,6 @@ EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_tostring) |
EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_proxies) |
EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_templates) |
EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_sloppy) |
-EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_unicode) |
void Genesis::InitializeGlobal_harmony_regexps() { |
Handle<JSObject> builtins(native_context()->builtins()); |
@@ -1639,6 +1638,18 @@ void Genesis::InitializeGlobal_harmony_regexps() { |
} |
+void Genesis::InitializeGlobal_harmony_unicode() { |
+ Handle<JSObject> builtins(native_context()->builtins()); |
+ |
+ Handle<HeapObject> flag(FLAG_harmony_unicode ? heap()->true_value() |
+ : heap()->false_value()); |
+ PropertyAttributes attributes = |
+ static_cast<PropertyAttributes>(DONT_DELETE | READ_ONLY); |
+ Runtime::DefineObjectProperty(builtins, factory()->harmony_unicode_string(), |
+ flag, attributes).Assert(); |
+} |
+ |
+ |
Handle<JSFunction> Genesis::InstallInternalArray( |
Handle<JSBuiltinsObject> builtins, |
const char* name, |