OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/bootstrapper.h" | 5 #include "src/bootstrapper.h" |
6 | 6 |
7 #include "src/accessors.h" | 7 #include "src/accessors.h" |
8 #include "src/api-natives.h" | 8 #include "src/api-natives.h" |
9 #include "src/base/ieee754.h" | 9 #include "src/base/ieee754.h" |
10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
(...skipping 1098 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1109 // Set extension and global object. | 1109 // Set extension and global object. |
1110 native_context()->set_extension(*global_object); | 1110 native_context()->set_extension(*global_object); |
1111 // Security setup: Set the security token of the native context to the global | 1111 // Security setup: Set the security token of the native context to the global |
1112 // object. This makes the security check between two different contexts fail | 1112 // object. This makes the security check between two different contexts fail |
1113 // by default even in case of global object reinitialization. | 1113 // by default even in case of global object reinitialization. |
1114 native_context()->set_security_token(*global_object); | 1114 native_context()->set_security_token(*global_object); |
1115 | 1115 |
1116 Isolate* isolate = global_object->GetIsolate(); | 1116 Isolate* isolate = global_object->GetIsolate(); |
1117 Factory* factory = isolate->factory(); | 1117 Factory* factory = isolate->factory(); |
1118 | 1118 |
| 1119 native_context()->set_osrd_function_table(*factory->empty_fixed_array()); |
| 1120 |
1119 Handle<ScriptContextTable> script_context_table = | 1121 Handle<ScriptContextTable> script_context_table = |
1120 factory->NewScriptContextTable(); | 1122 factory->NewScriptContextTable(); |
1121 native_context()->set_script_context_table(*script_context_table); | 1123 native_context()->set_script_context_table(*script_context_table); |
1122 InstallGlobalThisBinding(); | 1124 InstallGlobalThisBinding(); |
1123 | 1125 |
1124 { // --- O b j e c t --- | 1126 { // --- O b j e c t --- |
1125 Handle<String> object_name = factory->Object_string(); | 1127 Handle<String> object_name = factory->Object_string(); |
1126 Handle<JSFunction> object_function = isolate->object_function(); | 1128 Handle<JSFunction> object_function = isolate->object_function(); |
1127 JSObject::AddProperty(global_object, object_name, object_function, | 1129 JSObject::AddProperty(global_object, object_name, object_function, |
1128 DONT_ENUM); | 1130 DONT_ENUM); |
(...skipping 3474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4603 } | 4605 } |
4604 | 4606 |
4605 | 4607 |
4606 // Called when the top-level V8 mutex is destroyed. | 4608 // Called when the top-level V8 mutex is destroyed. |
4607 void Bootstrapper::FreeThreadResources() { | 4609 void Bootstrapper::FreeThreadResources() { |
4608 DCHECK(!IsActive()); | 4610 DCHECK(!IsActive()); |
4609 } | 4611 } |
4610 | 4612 |
4611 } // namespace internal | 4613 } // namespace internal |
4612 } // namespace v8 | 4614 } // namespace v8 |
OLD | NEW |