| 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 1269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1280 Builtins::kObjectHasOwnProperty, 1, true); | 1280 Builtins::kObjectHasOwnProperty, 1, true); |
| 1281 SimpleInstallFunction(isolate->initial_object_prototype(), | 1281 SimpleInstallFunction(isolate->initial_object_prototype(), |
| 1282 "__lookupGetter__", Builtins::kObjectLookupGetter, 1, | 1282 "__lookupGetter__", Builtins::kObjectLookupGetter, 1, |
| 1283 true); | 1283 true); |
| 1284 SimpleInstallFunction(isolate->initial_object_prototype(), | 1284 SimpleInstallFunction(isolate->initial_object_prototype(), |
| 1285 "__lookupSetter__", Builtins::kObjectLookupSetter, 1, | 1285 "__lookupSetter__", Builtins::kObjectLookupSetter, 1, |
| 1286 true); | 1286 true); |
| 1287 SimpleInstallFunction( | 1287 SimpleInstallFunction( |
| 1288 isolate->initial_object_prototype(), "propertyIsEnumerable", | 1288 isolate->initial_object_prototype(), "propertyIsEnumerable", |
| 1289 Builtins::kObjectPrototypePropertyIsEnumerable, 1, false); | 1289 Builtins::kObjectPrototypePropertyIsEnumerable, 1, false); |
| 1290 Handle<JSFunction> object_value_of = SimpleInstallFunction( |
| 1291 isolate->initial_object_prototype(), "valueOf", |
| 1292 Builtins::kObjectPrototypeValueOf, 0, true); |
| 1293 native_context()->set_object_value_of(*object_value_of); |
| 1290 | 1294 |
| 1291 SimpleInstallGetterSetter(isolate->initial_object_prototype(), | 1295 SimpleInstallGetterSetter(isolate->initial_object_prototype(), |
| 1292 factory->proto_string(), | 1296 factory->proto_string(), |
| 1293 Builtins::kObjectPrototypeGetProto, | 1297 Builtins::kObjectPrototypeGetProto, |
| 1294 Builtins::kObjectPrototypeSetProto, DONT_ENUM); | 1298 Builtins::kObjectPrototypeSetProto, DONT_ENUM); |
| 1295 } | 1299 } |
| 1296 | 1300 |
| 1297 Handle<JSObject> global(native_context()->global_object()); | 1301 Handle<JSObject> global(native_context()->global_object()); |
| 1298 | 1302 |
| 1299 { // --- F u n c t i o n --- | 1303 { // --- F u n c t i o n --- |
| (...skipping 3803 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5103 } | 5107 } |
| 5104 | 5108 |
| 5105 | 5109 |
| 5106 // Called when the top-level V8 mutex is destroyed. | 5110 // Called when the top-level V8 mutex is destroyed. |
| 5107 void Bootstrapper::FreeThreadResources() { | 5111 void Bootstrapper::FreeThreadResources() { |
| 5108 DCHECK(!IsActive()); | 5112 DCHECK(!IsActive()); |
| 5109 } | 5113 } |
| 5110 | 5114 |
| 5111 } // namespace internal | 5115 } // namespace internal |
| 5112 } // namespace v8 | 5116 } // namespace v8 |
| OLD | NEW |