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 1196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1207 "__defineSetter__", Builtins::kObjectDefineSetter, 2, | 1207 "__defineSetter__", Builtins::kObjectDefineSetter, 2, |
1208 true); | 1208 true); |
1209 SimpleInstallFunction(isolate->initial_object_prototype(), "hasOwnProperty", | 1209 SimpleInstallFunction(isolate->initial_object_prototype(), "hasOwnProperty", |
1210 Builtins::kObjectHasOwnProperty, 1, true); | 1210 Builtins::kObjectHasOwnProperty, 1, true); |
1211 SimpleInstallFunction(isolate->initial_object_prototype(), | 1211 SimpleInstallFunction(isolate->initial_object_prototype(), |
1212 "__lookupGetter__", Builtins::kObjectLookupGetter, 1, | 1212 "__lookupGetter__", Builtins::kObjectLookupGetter, 1, |
1213 true); | 1213 true); |
1214 SimpleInstallFunction(isolate->initial_object_prototype(), | 1214 SimpleInstallFunction(isolate->initial_object_prototype(), |
1215 "__lookupSetter__", Builtins::kObjectLookupSetter, 1, | 1215 "__lookupSetter__", Builtins::kObjectLookupSetter, 1, |
1216 true); | 1216 true); |
| 1217 SimpleInstallFunction( |
| 1218 isolate->initial_object_prototype(), "propertyIsEnumerable", |
| 1219 Builtins::kObjectPrototypePropertyIsEnumerable, 1, false); |
1217 } | 1220 } |
1218 | 1221 |
1219 Handle<JSObject> global(native_context()->global_object()); | 1222 Handle<JSObject> global(native_context()->global_object()); |
1220 | 1223 |
1221 { // --- F u n c t i o n --- | 1224 { // --- F u n c t i o n --- |
1222 Handle<JSFunction> prototype = empty_function; | 1225 Handle<JSFunction> prototype = empty_function; |
1223 Handle<JSFunction> function_fun = | 1226 Handle<JSFunction> function_fun = |
1224 InstallFunction(global, "Function", JS_FUNCTION_TYPE, JSFunction::kSize, | 1227 InstallFunction(global, "Function", JS_FUNCTION_TYPE, JSFunction::kSize, |
1225 prototype, Builtins::kFunctionConstructor); | 1228 prototype, Builtins::kFunctionConstructor); |
1226 function_fun->set_prototype_or_initial_map( | 1229 function_fun->set_prototype_or_initial_map( |
(...skipping 2871 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4098 } | 4101 } |
4099 | 4102 |
4100 | 4103 |
4101 // Called when the top-level V8 mutex is destroyed. | 4104 // Called when the top-level V8 mutex is destroyed. |
4102 void Bootstrapper::FreeThreadResources() { | 4105 void Bootstrapper::FreeThreadResources() { |
4103 DCHECK(!IsActive()); | 4106 DCHECK(!IsActive()); |
4104 } | 4107 } |
4105 | 4108 |
4106 } // namespace internal | 4109 } // namespace internal |
4107 } // namespace v8 | 4110 } // namespace v8 |
OLD | NEW |