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 1693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1704 observers_begin_perform_splice); | 1704 observers_begin_perform_splice); |
1705 INSTALL_NATIVE(JSFunction, "$observeEndPerformSplice", | 1705 INSTALL_NATIVE(JSFunction, "$observeEndPerformSplice", |
1706 observers_end_perform_splice); | 1706 observers_end_perform_splice); |
1707 INSTALL_NATIVE(JSFunction, "$observeNativeObjectObserve", | 1707 INSTALL_NATIVE(JSFunction, "$observeNativeObjectObserve", |
1708 native_object_observe); | 1708 native_object_observe); |
1709 INSTALL_NATIVE(JSFunction, "$observeNativeObjectGetNotifier", | 1709 INSTALL_NATIVE(JSFunction, "$observeNativeObjectGetNotifier", |
1710 native_object_get_notifier); | 1710 native_object_get_notifier); |
1711 INSTALL_NATIVE(JSFunction, "$observeNativeObjectNotifierPerformChange", | 1711 INSTALL_NATIVE(JSFunction, "$observeNativeObjectNotifierPerformChange", |
1712 native_object_notifier_perform_change); | 1712 native_object_notifier_perform_change); |
1713 INSTALL_NATIVE(JSFunction, "$arrayValues", array_values_iterator); | 1713 INSTALL_NATIVE(JSFunction, "$arrayValues", array_values_iterator); |
| 1714 INSTALL_NATIVE(JSFunction, "$mapGet", map_get); |
| 1715 INSTALL_NATIVE(JSFunction, "$mapSet", map_set); |
| 1716 INSTALL_NATIVE(JSFunction, "$mapHas", map_has); |
| 1717 INSTALL_NATIVE(JSFunction, "$mapDelete", map_delete); |
| 1718 INSTALL_NATIVE(JSFunction, "$setAdd", set_add); |
| 1719 INSTALL_NATIVE(JSFunction, "$setHas", set_has); |
| 1720 INSTALL_NATIVE(JSFunction, "$setDelete", set_delete); |
1714 INSTALL_NATIVE(JSFunction, "$mapFromArray", map_from_array); | 1721 INSTALL_NATIVE(JSFunction, "$mapFromArray", map_from_array); |
1715 INSTALL_NATIVE(JSFunction, "$setFromArray", set_from_array); | 1722 INSTALL_NATIVE(JSFunction, "$setFromArray", set_from_array); |
1716 } | 1723 } |
1717 | 1724 |
1718 | 1725 |
1719 void Genesis::InstallExperimentalNativeFunctions() { | 1726 void Genesis::InstallExperimentalNativeFunctions() { |
1720 if (FLAG_harmony_proxies) { | 1727 if (FLAG_harmony_proxies) { |
1721 INSTALL_NATIVE(JSFunction, "$proxyDerivedHasTrap", derived_has_trap); | 1728 INSTALL_NATIVE(JSFunction, "$proxyDerivedHasTrap", derived_has_trap); |
1722 INSTALL_NATIVE(JSFunction, "$proxyDerivedGetTrap", derived_get_trap); | 1729 INSTALL_NATIVE(JSFunction, "$proxyDerivedGetTrap", derived_get_trap); |
1723 INSTALL_NATIVE(JSFunction, "$proxyDerivedSetTrap", derived_set_trap); | 1730 INSTALL_NATIVE(JSFunction, "$proxyDerivedSetTrap", derived_set_trap); |
(...skipping 1467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3191 } | 3198 } |
3192 | 3199 |
3193 | 3200 |
3194 // Called when the top-level V8 mutex is destroyed. | 3201 // Called when the top-level V8 mutex is destroyed. |
3195 void Bootstrapper::FreeThreadResources() { | 3202 void Bootstrapper::FreeThreadResources() { |
3196 DCHECK(!IsActive()); | 3203 DCHECK(!IsActive()); |
3197 } | 3204 } |
3198 | 3205 |
3199 } // namespace internal | 3206 } // namespace internal |
3200 } // namespace v8 | 3207 } // namespace v8 |
OLD | NEW |