Revision f230a1cf deps/v8/src/bootstrapper.cc
deps/v8/src/bootstrapper.cc | ||
---|---|---|
824 | 824 |
// work in the snapshot case is done in HookUpInnerGlobal. |
825 | 825 |
void Genesis::InitializeGlobal(Handle<GlobalObject> inner_global, |
826 | 826 |
Handle<JSFunction> empty_function) { |
827 |
// --- G l o b a l C o n t e x t ---
|
|
827 |
// --- N a t i v e C o n t e x t ---
|
|
828 | 828 |
// Use the empty function as closure (no scope info). |
829 | 829 |
native_context()->set_closure(*empty_function); |
830 | 830 |
native_context()->set_previous(NULL); |
... | ... | |
1043 | 1043 |
} |
1044 | 1044 |
|
1045 | 1045 |
{ // -- J S O N |
1046 |
Handle<String> name = factory->NewStringFromAscii(CStrVector("JSON"));
|
|
1046 |
Handle<String> name = factory->InternalizeUtf8String("JSON");
|
|
1047 | 1047 |
Handle<JSFunction> cons = factory->NewFunction(name, |
1048 | 1048 |
factory->the_hole_value()); |
1049 | 1049 |
JSFunction::SetInstancePrototype(cons, |
... | ... | |
2067 | 2067 |
"native harmony-array.js") == 0) { |
2068 | 2068 |
if (!CompileExperimentalBuiltin(isolate(), i)) return false; |
2069 | 2069 |
} |
2070 |
if (FLAG_harmony_maths && |
|
2071 |
strcmp(ExperimentalNatives::GetScriptName(i).start(), |
|
2072 |
"native harmony-math.js") == 0) { |
|
2073 |
if (!CompileExperimentalBuiltin(isolate(), i)) return false; |
|
2074 |
} |
|
2070 | 2075 |
} |
2071 | 2076 |
|
2072 | 2077 |
InstallExperimentalNativeFunctions(); |
Also available in: Unified diff