Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: src/bootstrapper.cc

Issue 1075773003: Wrap proxy.js in a function. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/proxy.js » ('j') | src/proxy.js » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/extensions/externalize-string-extension.h" 10 #include "src/extensions/externalize-string-extension.h"
(...skipping 1552 matching lines...) Expand 10 before | Expand all | Expand 10 after
1563 INSTALL_NATIVE(JSFunction, "NativeObjectGetNotifier", 1563 INSTALL_NATIVE(JSFunction, "NativeObjectGetNotifier",
1564 native_object_get_notifier); 1564 native_object_get_notifier);
1565 INSTALL_NATIVE(JSFunction, "NativeObjectNotifierPerformChange", 1565 INSTALL_NATIVE(JSFunction, "NativeObjectNotifierPerformChange",
1566 native_object_notifier_perform_change); 1566 native_object_notifier_perform_change);
1567 INSTALL_NATIVE(JSFunction, "ArrayValues", array_values_iterator); 1567 INSTALL_NATIVE(JSFunction, "ArrayValues", array_values_iterator);
1568 } 1568 }
1569 1569
1570 1570
1571 void Genesis::InstallExperimentalNativeFunctions() { 1571 void Genesis::InstallExperimentalNativeFunctions() {
1572 if (FLAG_harmony_proxies) { 1572 if (FLAG_harmony_proxies) {
1573 INSTALL_NATIVE(JSFunction, "DerivedHasTrap", derived_has_trap); 1573 INSTALL_NATIVE(JSFunction, "$proxyDerivedHasTrap", derived_has_trap);
1574 INSTALL_NATIVE(JSFunction, "DerivedGetTrap", derived_get_trap); 1574 INSTALL_NATIVE(JSFunction, "$proxyDerivedGetTrap", derived_get_trap);
1575 INSTALL_NATIVE(JSFunction, "DerivedSetTrap", derived_set_trap); 1575 INSTALL_NATIVE(JSFunction, "$proxyDerivedSetTrap", derived_set_trap);
1576 INSTALL_NATIVE(JSFunction, "ProxyEnumerate", proxy_enumerate); 1576 INSTALL_NATIVE(JSFunction, "$proxyEnumerate", proxy_enumerate);
1577 } 1577 }
1578 1578
1579 #define INSTALL_NATIVE_FUNCTIONS_FOR(id, descr) InstallNativeFunctions_##id(); 1579 #define INSTALL_NATIVE_FUNCTIONS_FOR(id, descr) InstallNativeFunctions_##id();
1580 HARMONY_INPROGRESS(INSTALL_NATIVE_FUNCTIONS_FOR) 1580 HARMONY_INPROGRESS(INSTALL_NATIVE_FUNCTIONS_FOR)
1581 HARMONY_STAGED(INSTALL_NATIVE_FUNCTIONS_FOR) 1581 HARMONY_STAGED(INSTALL_NATIVE_FUNCTIONS_FOR)
1582 HARMONY_SHIPPING(INSTALL_NATIVE_FUNCTIONS_FOR) 1582 HARMONY_SHIPPING(INSTALL_NATIVE_FUNCTIONS_FOR)
1583 #undef INSTALL_NATIVE_FUNCTIONS_FOR 1583 #undef INSTALL_NATIVE_FUNCTIONS_FOR
1584 } 1584 }
1585 1585
1586 1586
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
1653 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_unicode) 1653 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_unicode)
1654 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_unicode_regexps) 1654 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_unicode_regexps)
1655 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_computed_property_names) 1655 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_computed_property_names)
1656 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_rest_parameters) 1656 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_rest_parameters)
1657 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_reflect) 1657 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_reflect)
1658 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_spreadcalls) 1658 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_spreadcalls)
1659 1659
1660 1660
1661 void Genesis::InstallNativeFunctions_harmony_proxies() { 1661 void Genesis::InstallNativeFunctions_harmony_proxies() {
1662 if (FLAG_harmony_proxies) { 1662 if (FLAG_harmony_proxies) {
1663 INSTALL_NATIVE(JSFunction, "DerivedHasTrap", derived_has_trap); 1663 INSTALL_NATIVE(JSFunction, "$proxyDerivedHasTrap", derived_has_trap);
1664 INSTALL_NATIVE(JSFunction, "DerivedGetTrap", derived_get_trap); 1664 INSTALL_NATIVE(JSFunction, "$proxyDerivedGetTrap", derived_get_trap);
1665 INSTALL_NATIVE(JSFunction, "DerivedSetTrap", derived_set_trap); 1665 INSTALL_NATIVE(JSFunction, "$proxyDerivedSetTrap", derived_set_trap);
1666 INSTALL_NATIVE(JSFunction, "ProxyEnumerate", proxy_enumerate); 1666 INSTALL_NATIVE(JSFunction, "$proxyEnumerate", proxy_enumerate);
1667 } 1667 }
1668 } 1668 }
1669 1669
1670 #undef INSTALL_NATIVE 1670 #undef INSTALL_NATIVE
1671 1671
1672 #define EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(id) \ 1672 #define EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(id) \
1673 void Genesis::InitializeGlobal_##id() {} 1673 void Genesis::InitializeGlobal_##id() {}
1674 1674
1675 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_modules) 1675 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_modules)
1676 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_arrays) 1676 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_arrays)
(...skipping 1265 matching lines...) Expand 10 before | Expand all | Expand 10 after
2942 return from + sizeof(NestingCounterType); 2942 return from + sizeof(NestingCounterType);
2943 } 2943 }
2944 2944
2945 2945
2946 // Called when the top-level V8 mutex is destroyed. 2946 // Called when the top-level V8 mutex is destroyed.
2947 void Bootstrapper::FreeThreadResources() { 2947 void Bootstrapper::FreeThreadResources() {
2948 DCHECK(!IsActive()); 2948 DCHECK(!IsActive());
2949 } 2949 }
2950 2950
2951 } } // namespace v8::internal 2951 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/proxy.js » ('j') | src/proxy.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698