| 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/utils/random-number-generator.h" | 9 #include "src/base/utils/random-number-generator.h" |
| 10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
| (...skipping 1629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1640 observers_begin_perform_splice); | 1640 observers_begin_perform_splice); |
| 1641 INSTALL_NATIVE(JSFunction, "$observeEndPerformSplice", | 1641 INSTALL_NATIVE(JSFunction, "$observeEndPerformSplice", |
| 1642 observers_end_perform_splice); | 1642 observers_end_perform_splice); |
| 1643 INSTALL_NATIVE(JSFunction, "$observeNativeObjectObserve", | 1643 INSTALL_NATIVE(JSFunction, "$observeNativeObjectObserve", |
| 1644 native_object_observe); | 1644 native_object_observe); |
| 1645 INSTALL_NATIVE(JSFunction, "$observeNativeObjectGetNotifier", | 1645 INSTALL_NATIVE(JSFunction, "$observeNativeObjectGetNotifier", |
| 1646 native_object_get_notifier); | 1646 native_object_get_notifier); |
| 1647 INSTALL_NATIVE(JSFunction, "$observeNativeObjectNotifierPerformChange", | 1647 INSTALL_NATIVE(JSFunction, "$observeNativeObjectNotifierPerformChange", |
| 1648 native_object_notifier_perform_change); | 1648 native_object_notifier_perform_change); |
| 1649 INSTALL_NATIVE(JSFunction, "$arrayValues", array_values_iterator); | 1649 INSTALL_NATIVE(JSFunction, "$arrayValues", array_values_iterator); |
| 1650 INSTALL_NATIVE(JSFunction, "$mapFromArray", map_from_array); |
| 1651 INSTALL_NATIVE(JSFunction, "$setFromArray", set_from_array); |
| 1650 } | 1652 } |
| 1651 | 1653 |
| 1652 | 1654 |
| 1653 void Genesis::InstallExperimentalNativeFunctions() { | 1655 void Genesis::InstallExperimentalNativeFunctions() { |
| 1654 if (FLAG_harmony_proxies) { | 1656 if (FLAG_harmony_proxies) { |
| 1655 INSTALL_NATIVE(JSFunction, "$proxyDerivedHasTrap", derived_has_trap); | 1657 INSTALL_NATIVE(JSFunction, "$proxyDerivedHasTrap", derived_has_trap); |
| 1656 INSTALL_NATIVE(JSFunction, "$proxyDerivedGetTrap", derived_get_trap); | 1658 INSTALL_NATIVE(JSFunction, "$proxyDerivedGetTrap", derived_get_trap); |
| 1657 INSTALL_NATIVE(JSFunction, "$proxyDerivedSetTrap", derived_set_trap); | 1659 INSTALL_NATIVE(JSFunction, "$proxyDerivedSetTrap", derived_set_trap); |
| 1658 INSTALL_NATIVE(JSFunction, "$proxyEnumerate", proxy_enumerate); | 1660 INSTALL_NATIVE(JSFunction, "$proxyEnumerate", proxy_enumerate); |
| 1659 } | 1661 } |
| (...skipping 1390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3050 return from + sizeof(NestingCounterType); | 3052 return from + sizeof(NestingCounterType); |
| 3051 } | 3053 } |
| 3052 | 3054 |
| 3053 | 3055 |
| 3054 // Called when the top-level V8 mutex is destroyed. | 3056 // Called when the top-level V8 mutex is destroyed. |
| 3055 void Bootstrapper::FreeThreadResources() { | 3057 void Bootstrapper::FreeThreadResources() { |
| 3056 DCHECK(!IsActive()); | 3058 DCHECK(!IsActive()); |
| 3057 } | 3059 } |
| 3058 | 3060 |
| 3059 } } // namespace v8::internal | 3061 } } // namespace v8::internal |
| OLD | NEW |