| 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 1313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1324 "__defineSetter__", Builtins::kObjectDefineSetter, 2, | 1324 "__defineSetter__", Builtins::kObjectDefineSetter, 2, |
| 1325 true); | 1325 true); |
| 1326 SimpleInstallFunction(isolate->initial_object_prototype(), "hasOwnProperty", | 1326 SimpleInstallFunction(isolate->initial_object_prototype(), "hasOwnProperty", |
| 1327 Builtins::kObjectHasOwnProperty, 1, true); | 1327 Builtins::kObjectHasOwnProperty, 1, true); |
| 1328 SimpleInstallFunction(isolate->initial_object_prototype(), | 1328 SimpleInstallFunction(isolate->initial_object_prototype(), |
| 1329 "__lookupGetter__", Builtins::kObjectLookupGetter, 1, | 1329 "__lookupGetter__", Builtins::kObjectLookupGetter, 1, |
| 1330 true); | 1330 true); |
| 1331 SimpleInstallFunction(isolate->initial_object_prototype(), | 1331 SimpleInstallFunction(isolate->initial_object_prototype(), |
| 1332 "__lookupSetter__", Builtins::kObjectLookupSetter, 1, | 1332 "__lookupSetter__", Builtins::kObjectLookupSetter, 1, |
| 1333 true); | 1333 true); |
| 1334 SimpleInstallFunction(isolate->initial_object_prototype(), "isPrototypeOf", |
| 1335 Builtins::kObjectPrototypeIsPrototypeOf, 1, true); |
| 1334 SimpleInstallFunction( | 1336 SimpleInstallFunction( |
| 1335 isolate->initial_object_prototype(), "propertyIsEnumerable", | 1337 isolate->initial_object_prototype(), "propertyIsEnumerable", |
| 1336 Builtins::kObjectPrototypePropertyIsEnumerable, 1, false); | 1338 Builtins::kObjectPrototypePropertyIsEnumerable, 1, false); |
| 1337 Handle<JSFunction> object_to_string = SimpleInstallFunction( | 1339 Handle<JSFunction> object_to_string = SimpleInstallFunction( |
| 1338 isolate->initial_object_prototype(), factory->toString_string(), | 1340 isolate->initial_object_prototype(), factory->toString_string(), |
| 1339 Builtins::kObjectProtoToString, 0, true); | 1341 Builtins::kObjectProtoToString, 0, true); |
| 1340 native_context()->set_object_to_string(*object_to_string); | 1342 native_context()->set_object_to_string(*object_to_string); |
| 1341 Handle<JSFunction> object_value_of = SimpleInstallFunction( | 1343 Handle<JSFunction> object_value_of = SimpleInstallFunction( |
| 1342 isolate->initial_object_prototype(), "valueOf", | 1344 isolate->initial_object_prototype(), "valueOf", |
| 1343 Builtins::kObjectPrototypeValueOf, 0, true); | 1345 Builtins::kObjectPrototypeValueOf, 0, true); |
| (...skipping 4008 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5352 } | 5354 } |
| 5353 | 5355 |
| 5354 | 5356 |
| 5355 // Called when the top-level V8 mutex is destroyed. | 5357 // Called when the top-level V8 mutex is destroyed. |
| 5356 void Bootstrapper::FreeThreadResources() { | 5358 void Bootstrapper::FreeThreadResources() { |
| 5357 DCHECK(!IsActive()); | 5359 DCHECK(!IsActive()); |
| 5358 } | 5360 } |
| 5359 | 5361 |
| 5360 } // namespace internal | 5362 } // namespace internal |
| 5361 } // namespace v8 | 5363 } // namespace v8 |
| OLD | NEW |