| 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 1085 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1096 Builtins::kObjectCreate, 2, false); | 1096 Builtins::kObjectCreate, 2, false); |
| 1097 Handle<JSFunction> object_freeze = SimpleInstallFunction( | 1097 Handle<JSFunction> object_freeze = SimpleInstallFunction( |
| 1098 object_function, "freeze", Builtins::kObjectFreeze, 1, false); | 1098 object_function, "freeze", Builtins::kObjectFreeze, 1, false); |
| 1099 native_context()->set_object_freeze(*object_freeze); | 1099 native_context()->set_object_freeze(*object_freeze); |
| 1100 SimpleInstallFunction(object_function, "getOwnPropertyDescriptor", | 1100 SimpleInstallFunction(object_function, "getOwnPropertyDescriptor", |
| 1101 Builtins::kObjectGetOwnPropertyDescriptor, 2, false); | 1101 Builtins::kObjectGetOwnPropertyDescriptor, 2, false); |
| 1102 SimpleInstallFunction(object_function, "getOwnPropertyNames", | 1102 SimpleInstallFunction(object_function, "getOwnPropertyNames", |
| 1103 Builtins::kObjectGetOwnPropertyNames, 1, false); | 1103 Builtins::kObjectGetOwnPropertyNames, 1, false); |
| 1104 SimpleInstallFunction(object_function, "getOwnPropertySymbols", | 1104 SimpleInstallFunction(object_function, "getOwnPropertySymbols", |
| 1105 Builtins::kObjectGetOwnPropertySymbols, 1, false); | 1105 Builtins::kObjectGetOwnPropertySymbols, 1, false); |
| 1106 SimpleInstallFunction(object_function, "is", Builtins::kObjectIs, 2, true); |
| 1106 Handle<JSFunction> object_is_extensible = | 1107 Handle<JSFunction> object_is_extensible = |
| 1107 SimpleInstallFunction(object_function, "isExtensible", | 1108 SimpleInstallFunction(object_function, "isExtensible", |
| 1108 Builtins::kObjectIsExtensible, 1, false); | 1109 Builtins::kObjectIsExtensible, 1, false); |
| 1109 native_context()->set_object_is_extensible(*object_is_extensible); | 1110 native_context()->set_object_is_extensible(*object_is_extensible); |
| 1110 Handle<JSFunction> object_is_frozen = SimpleInstallFunction( | 1111 Handle<JSFunction> object_is_frozen = SimpleInstallFunction( |
| 1111 object_function, "isFrozen", Builtins::kObjectIsFrozen, 1, false); | 1112 object_function, "isFrozen", Builtins::kObjectIsFrozen, 1, false); |
| 1112 native_context()->set_object_is_frozen(*object_is_frozen); | 1113 native_context()->set_object_is_frozen(*object_is_frozen); |
| 1113 Handle<JSFunction> object_is_sealed = SimpleInstallFunction( | 1114 Handle<JSFunction> object_is_sealed = SimpleInstallFunction( |
| 1114 object_function, "isSealed", Builtins::kObjectIsSealed, 1, false); | 1115 object_function, "isSealed", Builtins::kObjectIsSealed, 1, false); |
| 1115 native_context()->set_object_is_sealed(*object_is_sealed); | 1116 native_context()->set_object_is_sealed(*object_is_sealed); |
| (...skipping 2535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3651 } | 3652 } |
| 3652 | 3653 |
| 3653 | 3654 |
| 3654 // Called when the top-level V8 mutex is destroyed. | 3655 // Called when the top-level V8 mutex is destroyed. |
| 3655 void Bootstrapper::FreeThreadResources() { | 3656 void Bootstrapper::FreeThreadResources() { |
| 3656 DCHECK(!IsActive()); | 3657 DCHECK(!IsActive()); |
| 3657 } | 3658 } |
| 3658 | 3659 |
| 3659 } // namespace internal | 3660 } // namespace internal |
| 3660 } // namespace v8 | 3661 } // namespace v8 |
| OLD | NEW |