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 1647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1658 observers_begin_perform_splice); | 1658 observers_begin_perform_splice); |
1659 INSTALL_NATIVE(JSFunction, "$observeEndPerformSplice", | 1659 INSTALL_NATIVE(JSFunction, "$observeEndPerformSplice", |
1660 observers_end_perform_splice); | 1660 observers_end_perform_splice); |
1661 INSTALL_NATIVE(JSFunction, "$observeNativeObjectObserve", | 1661 INSTALL_NATIVE(JSFunction, "$observeNativeObjectObserve", |
1662 native_object_observe); | 1662 native_object_observe); |
1663 INSTALL_NATIVE(JSFunction, "$observeNativeObjectGetNotifier", | 1663 INSTALL_NATIVE(JSFunction, "$observeNativeObjectGetNotifier", |
1664 native_object_get_notifier); | 1664 native_object_get_notifier); |
1665 INSTALL_NATIVE(JSFunction, "$observeNativeObjectNotifierPerformChange", | 1665 INSTALL_NATIVE(JSFunction, "$observeNativeObjectNotifierPerformChange", |
1666 native_object_notifier_perform_change); | 1666 native_object_notifier_perform_change); |
1667 INSTALL_NATIVE(JSFunction, "$arrayValues", array_values_iterator); | 1667 INSTALL_NATIVE(JSFunction, "$arrayValues", array_values_iterator); |
| 1668 INSTALL_NATIVE(JSFunction, "$mapFromArray", map_from_array); |
| 1669 INSTALL_NATIVE(JSFunction, "$setFromArray", set_from_array); |
1668 } | 1670 } |
1669 | 1671 |
1670 | 1672 |
1671 void Genesis::InstallExperimentalNativeFunctions() { | 1673 void Genesis::InstallExperimentalNativeFunctions() { |
1672 if (FLAG_harmony_proxies) { | 1674 if (FLAG_harmony_proxies) { |
1673 INSTALL_NATIVE(JSFunction, "$proxyDerivedHasTrap", derived_has_trap); | 1675 INSTALL_NATIVE(JSFunction, "$proxyDerivedHasTrap", derived_has_trap); |
1674 INSTALL_NATIVE(JSFunction, "$proxyDerivedGetTrap", derived_get_trap); | 1676 INSTALL_NATIVE(JSFunction, "$proxyDerivedGetTrap", derived_get_trap); |
1675 INSTALL_NATIVE(JSFunction, "$proxyDerivedSetTrap", derived_set_trap); | 1677 INSTALL_NATIVE(JSFunction, "$proxyDerivedSetTrap", derived_set_trap); |
1676 INSTALL_NATIVE(JSFunction, "$proxyEnumerate", proxy_enumerate); | 1678 INSTALL_NATIVE(JSFunction, "$proxyEnumerate", proxy_enumerate); |
1677 } | 1679 } |
(...skipping 1399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3077 return from + sizeof(NestingCounterType); | 3079 return from + sizeof(NestingCounterType); |
3078 } | 3080 } |
3079 | 3081 |
3080 | 3082 |
3081 // Called when the top-level V8 mutex is destroyed. | 3083 // Called when the top-level V8 mutex is destroyed. |
3082 void Bootstrapper::FreeThreadResources() { | 3084 void Bootstrapper::FreeThreadResources() { |
3083 DCHECK(!IsActive()); | 3085 DCHECK(!IsActive()); |
3084 } | 3086 } |
3085 | 3087 |
3086 } } // namespace v8::internal | 3088 } } // namespace v8::internal |
OLD | NEW |