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/code-stubs.h" | 9 #include "src/code-stubs.h" |
10 #include "src/extensions/externalize-string-extension.h" | 10 #include "src/extensions/externalize-string-extension.h" |
(...skipping 1080 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1091 Handle<JSFunction> object_function = isolate->object_function(); | 1091 Handle<JSFunction> object_function = isolate->object_function(); |
1092 JSObject::AddProperty(global_object, object_name, object_function, | 1092 JSObject::AddProperty(global_object, object_name, object_function, |
1093 DONT_ENUM); | 1093 DONT_ENUM); |
1094 SimpleInstallFunction(object_function, factory->assign_string(), | 1094 SimpleInstallFunction(object_function, factory->assign_string(), |
1095 Builtins::kObjectAssign, 2, false); | 1095 Builtins::kObjectAssign, 2, false); |
1096 SimpleInstallFunction(object_function, factory->create_string(), | 1096 SimpleInstallFunction(object_function, factory->create_string(), |
1097 Builtins::kObjectCreate, 2, false); | 1097 Builtins::kObjectCreate, 2, false); |
1098 Handle<JSFunction> object_freeze = SimpleInstallFunction( | 1098 Handle<JSFunction> object_freeze = SimpleInstallFunction( |
1099 object_function, "freeze", Builtins::kObjectFreeze, 1, false); | 1099 object_function, "freeze", Builtins::kObjectFreeze, 1, false); |
1100 native_context()->set_object_freeze(*object_freeze); | 1100 native_context()->set_object_freeze(*object_freeze); |
1101 SimpleInstallFunction(object_function, "getOwnPropertyDescriptor", | |
1102 Builtins::kObjectGetOwnPropertyDescriptor, 2, false); | |
1103 SimpleInstallFunction(object_function, "getOwnPropertySymbols", | 1101 SimpleInstallFunction(object_function, "getOwnPropertySymbols", |
1104 Builtins::kObjectGetOwnPropertySymbols, 1, false); | 1102 Builtins::kObjectGetOwnPropertySymbols, 1, false); |
1105 Handle<JSFunction> object_is_extensible = | 1103 Handle<JSFunction> object_is_extensible = |
1106 SimpleInstallFunction(object_function, "isExtensible", | 1104 SimpleInstallFunction(object_function, "isExtensible", |
1107 Builtins::kObjectIsExtensible, 1, false); | 1105 Builtins::kObjectIsExtensible, 1, false); |
1108 native_context()->set_object_is_extensible(*object_is_extensible); | 1106 native_context()->set_object_is_extensible(*object_is_extensible); |
1109 Handle<JSFunction> object_is_frozen = SimpleInstallFunction( | 1107 Handle<JSFunction> object_is_frozen = SimpleInstallFunction( |
1110 object_function, "isFrozen", Builtins::kObjectIsFrozen, 1, false); | 1108 object_function, "isFrozen", Builtins::kObjectIsFrozen, 1, false); |
1111 native_context()->set_object_is_frozen(*object_is_frozen); | 1109 native_context()->set_object_is_frozen(*object_is_frozen); |
1112 Handle<JSFunction> object_is_sealed = SimpleInstallFunction( | 1110 Handle<JSFunction> object_is_sealed = SimpleInstallFunction( |
(...skipping 2412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3525 } | 3523 } |
3526 | 3524 |
3527 | 3525 |
3528 // Called when the top-level V8 mutex is destroyed. | 3526 // Called when the top-level V8 mutex is destroyed. |
3529 void Bootstrapper::FreeThreadResources() { | 3527 void Bootstrapper::FreeThreadResources() { |
3530 DCHECK(!IsActive()); | 3528 DCHECK(!IsActive()); |
3531 } | 3529 } |
3532 | 3530 |
3533 } // namespace internal | 3531 } // namespace internal |
3534 } // namespace v8 | 3532 } // namespace v8 |
OLD | NEW |