Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index 545d015a228a95bd3d38a2745c7f2f47ff6f66cf..07a6c932c41649676caed9738e3d21cfcae50857 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -982,6 +982,14 @@ void Genesis::InitializeGlobal(Handle<GlobalObject> global_object, |
} |
} |
+ { |
+ // --- S y m b o l --- |
+ Handle<JSFunction> symbol_fun = InstallFunction( |
+ global, "Symbol", JS_VALUE_TYPE, JSValue::kSize, |
+ isolate->initial_object_prototype(), Builtins::kIllegal); |
+ native_context()->set_symbol_function(*symbol_fun); |
+ } |
+ |
{ // --- D a t e --- |
// Builtin functions for Date.prototype. |
Handle<JSFunction> date_fun = |
@@ -1134,14 +1142,6 @@ void Genesis::InitializeGlobal(Handle<GlobalObject> global_object, |
InstallFunction(global, "WeakSet", JS_WEAK_SET_TYPE, JSWeakSet::kSize, |
isolate->initial_object_prototype(), Builtins::kIllegal); |
- { |
- // --- S y m b o l --- |
- Handle<JSFunction> symbol_fun = InstallFunction( |
- global, "Symbol", JS_VALUE_TYPE, JSValue::kSize, |
- isolate->initial_object_prototype(), Builtins::kIllegal); |
- native_context()->set_symbol_function(*symbol_fun); |
- } |
- |
{ // --- sloppy arguments map |
// Make sure we can recognize argument objects at runtime. |
// This is done by introducing an anonymous function with |
@@ -1621,6 +1621,7 @@ void Genesis::InstallNativeFunctions() { |
native_object_get_notifier); |
INSTALL_NATIVE(JSFunction, "NativeObjectNotifierPerformChange", |
native_object_notifier_perform_change); |
+ |
INSTALL_NATIVE(Symbol, "symbolIterator", iterator_symbol); |
INSTALL_NATIVE_MATH(abs) |