| 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 1110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1121 // Set extension and global object. | 1121 // Set extension and global object. |
| 1122 native_context()->set_extension(*global_object); | 1122 native_context()->set_extension(*global_object); |
| 1123 // Security setup: Set the security token of the native context to the global | 1123 // Security setup: Set the security token of the native context to the global |
| 1124 // object. This makes the security check between two different contexts fail | 1124 // object. This makes the security check between two different contexts fail |
| 1125 // by default even in case of global object reinitialization. | 1125 // by default even in case of global object reinitialization. |
| 1126 native_context()->set_security_token(*global_object); | 1126 native_context()->set_security_token(*global_object); |
| 1127 | 1127 |
| 1128 Isolate* isolate = global_object->GetIsolate(); | 1128 Isolate* isolate = global_object->GetIsolate(); |
| 1129 Factory* factory = isolate->factory(); | 1129 Factory* factory = isolate->factory(); |
| 1130 | 1130 |
| 1131 native_context()->set_osr_code_table(*factory->empty_fixed_array()); | |
| 1132 | |
| 1133 Handle<ScriptContextTable> script_context_table = | 1131 Handle<ScriptContextTable> script_context_table = |
| 1134 factory->NewScriptContextTable(); | 1132 factory->NewScriptContextTable(); |
| 1135 native_context()->set_script_context_table(*script_context_table); | 1133 native_context()->set_script_context_table(*script_context_table); |
| 1136 InstallGlobalThisBinding(); | 1134 InstallGlobalThisBinding(); |
| 1137 | 1135 |
| 1138 { // --- O b j e c t --- | 1136 { // --- O b j e c t --- |
| 1139 Handle<String> object_name = factory->Object_string(); | 1137 Handle<String> object_name = factory->Object_string(); |
| 1140 Handle<JSFunction> object_function = isolate->object_function(); | 1138 Handle<JSFunction> object_function = isolate->object_function(); |
| 1141 JSObject::AddProperty(global_object, object_name, object_function, | 1139 JSObject::AddProperty(global_object, object_name, object_function, |
| 1142 DONT_ENUM); | 1140 DONT_ENUM); |
| (...skipping 3509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4652 } | 4650 } |
| 4653 | 4651 |
| 4654 | 4652 |
| 4655 // Called when the top-level V8 mutex is destroyed. | 4653 // Called when the top-level V8 mutex is destroyed. |
| 4656 void Bootstrapper::FreeThreadResources() { | 4654 void Bootstrapper::FreeThreadResources() { |
| 4657 DCHECK(!IsActive()); | 4655 DCHECK(!IsActive()); |
| 4658 } | 4656 } |
| 4659 | 4657 |
| 4660 } // namespace internal | 4658 } // namespace internal |
| 4661 } // namespace v8 | 4659 } // namespace v8 |
| OLD | NEW |