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

Side by Side Diff: src/bootstrapper.cc

Issue 455743002: Enable ES6 unscopables (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « src/array.js ('k') | src/contexts.cc » ('j') | no next file with comments »
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/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/extensions/externalize-string-extension.h" 9 #include "src/extensions/externalize-string-extension.h"
10 #include "src/extensions/free-buffer-extension.h" 10 #include "src/extensions/free-buffer-extension.h"
(...skipping 1574 matching lines...) Expand 10 before | Expand all | Expand 10 after
1585 INSTALL_NATIVE(JSFunction, "EndPerformSplice", 1585 INSTALL_NATIVE(JSFunction, "EndPerformSplice",
1586 observers_end_perform_splice); 1586 observers_end_perform_splice);
1587 INSTALL_NATIVE(JSFunction, "NativeObjectObserve", 1587 INSTALL_NATIVE(JSFunction, "NativeObjectObserve",
1588 native_object_observe); 1588 native_object_observe);
1589 INSTALL_NATIVE(JSFunction, "NativeObjectGetNotifier", 1589 INSTALL_NATIVE(JSFunction, "NativeObjectGetNotifier",
1590 native_object_get_notifier); 1590 native_object_get_notifier);
1591 INSTALL_NATIVE(JSFunction, "NativeObjectNotifierPerformChange", 1591 INSTALL_NATIVE(JSFunction, "NativeObjectNotifierPerformChange",
1592 native_object_notifier_perform_change); 1592 native_object_notifier_perform_change);
1593 1593
1594 INSTALL_NATIVE(Symbol, "symbolIterator", iterator_symbol); 1594 INSTALL_NATIVE(Symbol, "symbolIterator", iterator_symbol);
1595 INSTALL_NATIVE(Symbol, "symbolUnscopables", unscopables_symbol);
1595 1596
1596 INSTALL_NATIVE_MATH(abs) 1597 INSTALL_NATIVE_MATH(abs)
1597 INSTALL_NATIVE_MATH(acos) 1598 INSTALL_NATIVE_MATH(acos)
1598 INSTALL_NATIVE_MATH(asin) 1599 INSTALL_NATIVE_MATH(asin)
1599 INSTALL_NATIVE_MATH(atan) 1600 INSTALL_NATIVE_MATH(atan)
1600 INSTALL_NATIVE_MATH(atan2) 1601 INSTALL_NATIVE_MATH(atan2)
1601 INSTALL_NATIVE_MATH(ceil) 1602 INSTALL_NATIVE_MATH(ceil)
1602 INSTALL_NATIVE_MATH(cos) 1603 INSTALL_NATIVE_MATH(cos)
1603 INSTALL_NATIVE_MATH(exp) 1604 INSTALL_NATIVE_MATH(exp)
1604 INSTALL_NATIVE_MATH(floor) 1605 INSTALL_NATIVE_MATH(floor)
(...skipping 10 matching lines...) Expand all
1615 } 1616 }
1616 1617
1617 1618
1618 void Genesis::InstallExperimentalNativeFunctions() { 1619 void Genesis::InstallExperimentalNativeFunctions() {
1619 if (FLAG_harmony_proxies) { 1620 if (FLAG_harmony_proxies) {
1620 INSTALL_NATIVE(JSFunction, "DerivedHasTrap", derived_has_trap); 1621 INSTALL_NATIVE(JSFunction, "DerivedHasTrap", derived_has_trap);
1621 INSTALL_NATIVE(JSFunction, "DerivedGetTrap", derived_get_trap); 1622 INSTALL_NATIVE(JSFunction, "DerivedGetTrap", derived_get_trap);
1622 INSTALL_NATIVE(JSFunction, "DerivedSetTrap", derived_set_trap); 1623 INSTALL_NATIVE(JSFunction, "DerivedSetTrap", derived_set_trap);
1623 INSTALL_NATIVE(JSFunction, "ProxyEnumerate", proxy_enumerate); 1624 INSTALL_NATIVE(JSFunction, "ProxyEnumerate", proxy_enumerate);
1624 } 1625 }
1625
1626 if (FLAG_harmony_unscopables) {
1627 INSTALL_NATIVE(Symbol, "symbolUnscopables", unscopables_symbol);
1628 }
1629 } 1626 }
1630 1627
1631 #undef INSTALL_NATIVE 1628 #undef INSTALL_NATIVE
1632 1629
1633 1630
1634 Handle<JSFunction> Genesis::InstallInternalArray( 1631 Handle<JSFunction> Genesis::InstallInternalArray(
1635 Handle<JSBuiltinsObject> builtins, 1632 Handle<JSBuiltinsObject> builtins,
1636 const char* name, 1633 const char* name,
1637 ElementsKind elements_kind) { 1634 ElementsKind elements_kind) {
1638 // --- I n t e r n a l A r r a y --- 1635 // --- I n t e r n a l A r r a y ---
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
2055 2052
2056 2053
2057 bool Genesis::InstallExperimentalNatives() { 2054 bool Genesis::InstallExperimentalNatives() {
2058 for (int i = ExperimentalNatives::GetDebuggerCount(); 2055 for (int i = ExperimentalNatives::GetDebuggerCount();
2059 i < ExperimentalNatives::GetBuiltinsCount(); 2056 i < ExperimentalNatives::GetBuiltinsCount();
2060 i++) { 2057 i++) {
2061 INSTALL_EXPERIMENTAL_NATIVE(i, proxies, "proxy.js") 2058 INSTALL_EXPERIMENTAL_NATIVE(i, proxies, "proxy.js")
2062 INSTALL_EXPERIMENTAL_NATIVE(i, generators, "generator.js") 2059 INSTALL_EXPERIMENTAL_NATIVE(i, generators, "generator.js")
2063 INSTALL_EXPERIMENTAL_NATIVE(i, strings, "harmony-string.js") 2060 INSTALL_EXPERIMENTAL_NATIVE(i, strings, "harmony-string.js")
2064 INSTALL_EXPERIMENTAL_NATIVE(i, arrays, "harmony-array.js") 2061 INSTALL_EXPERIMENTAL_NATIVE(i, arrays, "harmony-array.js")
2065 INSTALL_EXPERIMENTAL_NATIVE(i, unscopables, "unscopables.js")
2066 } 2062 }
2067 2063
2068 InstallExperimentalNativeFunctions(); 2064 InstallExperimentalNativeFunctions();
2069 return true; 2065 return true;
2070 } 2066 }
2071 2067
2072 2068
2073 static void InstallBuiltinFunctionId(Handle<JSObject> holder, 2069 static void InstallBuiltinFunctionId(Handle<JSObject> holder,
2074 const char* function_name, 2070 const char* function_name,
2075 BuiltinFunctionId id) { 2071 BuiltinFunctionId id) {
(...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after
2693 return from + sizeof(NestingCounterType); 2689 return from + sizeof(NestingCounterType);
2694 } 2690 }
2695 2691
2696 2692
2697 // Called when the top-level V8 mutex is destroyed. 2693 // Called when the top-level V8 mutex is destroyed.
2698 void Bootstrapper::FreeThreadResources() { 2694 void Bootstrapper::FreeThreadResources() {
2699 DCHECK(!IsActive()); 2695 DCHECK(!IsActive());
2700 } 2696 }
2701 2697
2702 } } // namespace v8::internal 2698 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/array.js ('k') | src/contexts.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698