| 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 1293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1304 | 1304 |
| 1305 Handle<JSFunction> object_is_frozen = SimpleInstallFunction( | 1305 Handle<JSFunction> object_is_frozen = SimpleInstallFunction( |
| 1306 object_function, "isFrozen", Builtins::kObjectIsFrozen, 1, false); | 1306 object_function, "isFrozen", Builtins::kObjectIsFrozen, 1, false); |
| 1307 native_context()->set_object_is_frozen(*object_is_frozen); | 1307 native_context()->set_object_is_frozen(*object_is_frozen); |
| 1308 | 1308 |
| 1309 Handle<JSFunction> object_is_sealed = SimpleInstallFunction( | 1309 Handle<JSFunction> object_is_sealed = SimpleInstallFunction( |
| 1310 object_function, "isSealed", Builtins::kObjectIsSealed, 1, false); | 1310 object_function, "isSealed", Builtins::kObjectIsSealed, 1, false); |
| 1311 native_context()->set_object_is_sealed(*object_is_sealed); | 1311 native_context()->set_object_is_sealed(*object_is_sealed); |
| 1312 | 1312 |
| 1313 Handle<JSFunction> object_keys = SimpleInstallFunction( | 1313 Handle<JSFunction> object_keys = SimpleInstallFunction( |
| 1314 object_function, "keys", Builtins::kObjectKeys, 1, false); | 1314 object_function, "keys", Builtins::kObjectKeys, 1, true); |
| 1315 native_context()->set_object_keys(*object_keys); | 1315 native_context()->set_object_keys(*object_keys); |
| 1316 SimpleInstallFunction(object_function, factory->entries_string(), | 1316 SimpleInstallFunction(object_function, factory->entries_string(), |
| 1317 Builtins::kObjectEntries, 1, false); | 1317 Builtins::kObjectEntries, 1, false); |
| 1318 SimpleInstallFunction(object_function, factory->values_string(), | 1318 SimpleInstallFunction(object_function, factory->values_string(), |
| 1319 Builtins::kObjectValues, 1, false); | 1319 Builtins::kObjectValues, 1, false); |
| 1320 | 1320 |
| 1321 SimpleInstallFunction(isolate->initial_object_prototype(), | 1321 SimpleInstallFunction(isolate->initial_object_prototype(), |
| 1322 "__defineGetter__", Builtins::kObjectDefineGetter, 2, | 1322 "__defineGetter__", Builtins::kObjectDefineGetter, 2, |
| 1323 true); | 1323 true); |
| 1324 SimpleInstallFunction(isolate->initial_object_prototype(), | 1324 SimpleInstallFunction(isolate->initial_object_prototype(), |
| (...skipping 3958 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5283 } | 5283 } |
| 5284 | 5284 |
| 5285 | 5285 |
| 5286 // Called when the top-level V8 mutex is destroyed. | 5286 // Called when the top-level V8 mutex is destroyed. |
| 5287 void Bootstrapper::FreeThreadResources() { | 5287 void Bootstrapper::FreeThreadResources() { |
| 5288 DCHECK(!IsActive()); | 5288 DCHECK(!IsActive()); |
| 5289 } | 5289 } |
| 5290 | 5290 |
| 5291 } // namespace internal | 5291 } // namespace internal |
| 5292 } // namespace v8 | 5292 } // namespace v8 |
| OLD | NEW |