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 1064 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1075 native_context()->set_object_is_sealed(*object_is_sealed); | 1075 native_context()->set_object_is_sealed(*object_is_sealed); |
1076 Handle<JSFunction> object_keys = SimpleInstallFunction( | 1076 Handle<JSFunction> object_keys = SimpleInstallFunction( |
1077 object_function, "keys", Builtins::kObjectKeys, 1, false); | 1077 object_function, "keys", Builtins::kObjectKeys, 1, false); |
1078 native_context()->set_object_keys(*object_keys); | 1078 native_context()->set_object_keys(*object_keys); |
1079 SimpleInstallFunction(object_function, "preventExtensions", | 1079 SimpleInstallFunction(object_function, "preventExtensions", |
1080 Builtins::kObjectPreventExtensions, 1, false); | 1080 Builtins::kObjectPreventExtensions, 1, false); |
1081 SimpleInstallFunction(object_function, "seal", Builtins::kObjectSeal, 1, | 1081 SimpleInstallFunction(object_function, "seal", Builtins::kObjectSeal, 1, |
1082 false); | 1082 false); |
1083 | 1083 |
1084 SimpleInstallFunction(isolate->initial_object_prototype(), "hasOwnProperty", | 1084 SimpleInstallFunction(isolate->initial_object_prototype(), "hasOwnProperty", |
1085 Builtins::kObjectHasOwnProperty, 1, false); | 1085 Builtins::kObjectHasOwnProperty, 1, true); |
1086 } | 1086 } |
1087 | 1087 |
1088 Handle<JSObject> global(native_context()->global_object()); | 1088 Handle<JSObject> global(native_context()->global_object()); |
1089 | 1089 |
1090 { // --- F u n c t i o n --- | 1090 { // --- F u n c t i o n --- |
1091 Handle<JSFunction> prototype = empty_function; | 1091 Handle<JSFunction> prototype = empty_function; |
1092 Handle<JSFunction> function_fun = | 1092 Handle<JSFunction> function_fun = |
1093 InstallFunction(global, "Function", JS_FUNCTION_TYPE, JSFunction::kSize, | 1093 InstallFunction(global, "Function", JS_FUNCTION_TYPE, JSFunction::kSize, |
1094 prototype, Builtins::kFunctionConstructor); | 1094 prototype, Builtins::kFunctionConstructor); |
1095 function_fun->set_prototype_or_initial_map( | 1095 function_fun->set_prototype_or_initial_map( |
(...skipping 2534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3630 } | 3630 } |
3631 | 3631 |
3632 | 3632 |
3633 // Called when the top-level V8 mutex is destroyed. | 3633 // Called when the top-level V8 mutex is destroyed. |
3634 void Bootstrapper::FreeThreadResources() { | 3634 void Bootstrapper::FreeThreadResources() { |
3635 DCHECK(!IsActive()); | 3635 DCHECK(!IsActive()); |
3636 } | 3636 } |
3637 | 3637 |
3638 } // namespace internal | 3638 } // namespace internal |
3639 } // namespace v8 | 3639 } // namespace v8 |
OLD | NEW |