| 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 1130 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1141   Isolate* isolate = global_object->GetIsolate(); | 1141   Isolate* isolate = global_object->GetIsolate(); | 
| 1142   Factory* factory = isolate->factory(); | 1142   Factory* factory = isolate->factory(); | 
| 1143 | 1143 | 
| 1144   native_context()->set_osr_code_table(*factory->empty_fixed_array()); | 1144   native_context()->set_osr_code_table(*factory->empty_fixed_array()); | 
| 1145 | 1145 | 
| 1146   Handle<ScriptContextTable> script_context_table = | 1146   Handle<ScriptContextTable> script_context_table = | 
| 1147       factory->NewScriptContextTable(); | 1147       factory->NewScriptContextTable(); | 
| 1148   native_context()->set_script_context_table(*script_context_table); | 1148   native_context()->set_script_context_table(*script_context_table); | 
| 1149   InstallGlobalThisBinding(); | 1149   InstallGlobalThisBinding(); | 
| 1150 | 1150 | 
|  | 1151   // https://tc39.github.io/proposal-global | 
|  | 1152   Handle<String> global_name = factory->global_string(); | 
|  | 1153   JSObject::AddProperty(global_object, global_name, global_object, DONT_ENUM); | 
|  | 1154 | 
| 1151   {  // --- O b j e c t --- | 1155   {  // --- O b j e c t --- | 
| 1152     Handle<String> object_name = factory->Object_string(); | 1156     Handle<String> object_name = factory->Object_string(); | 
| 1153     Handle<JSFunction> object_function = isolate->object_function(); | 1157     Handle<JSFunction> object_function = isolate->object_function(); | 
| 1154     JSObject::AddProperty(global_object, object_name, object_function, | 1158     JSObject::AddProperty(global_object, object_name, object_function, | 
| 1155                           DONT_ENUM); | 1159                           DONT_ENUM); | 
| 1156 | 1160 | 
| 1157     SimpleInstallFunction(object_function, factory->assign_string(), | 1161     SimpleInstallFunction(object_function, factory->assign_string(), | 
| 1158                           Builtins::kObjectAssign, 2, false); | 1162                           Builtins::kObjectAssign, 2, false); | 
| 1159     SimpleInstallFunction(object_function, "getOwnPropertyDescriptor", | 1163     SimpleInstallFunction(object_function, "getOwnPropertyDescriptor", | 
| 1160                           Builtins::kObjectGetOwnPropertyDescriptor, 2, false); | 1164                           Builtins::kObjectGetOwnPropertyDescriptor, 2, false); | 
| (...skipping 3504 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 4665 } | 4669 } | 
| 4666 | 4670 | 
| 4667 | 4671 | 
| 4668 // Called when the top-level V8 mutex is destroyed. | 4672 // Called when the top-level V8 mutex is destroyed. | 
| 4669 void Bootstrapper::FreeThreadResources() { | 4673 void Bootstrapper::FreeThreadResources() { | 
| 4670   DCHECK(!IsActive()); | 4674   DCHECK(!IsActive()); | 
| 4671 } | 4675 } | 
| 4672 | 4676 | 
| 4673 }  // namespace internal | 4677 }  // namespace internal | 
| 4674 }  // namespace v8 | 4678 }  // namespace v8 | 
| OLD | NEW | 
|---|