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

Side by Side Diff: src/bootstrapper.cc

Issue 384963002: ES6 Unscopables (Closed) Base URL: http://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 | « BUILD.gn ('k') | src/contexts.h » ('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 1607 matching lines...) Expand 10 before | Expand all | Expand 10 after
1618 } 1618 }
1619 1619
1620 1620
1621 void Genesis::InstallExperimentalNativeFunctions() { 1621 void Genesis::InstallExperimentalNativeFunctions() {
1622 if (FLAG_harmony_proxies) { 1622 if (FLAG_harmony_proxies) {
1623 INSTALL_NATIVE(JSFunction, "DerivedHasTrap", derived_has_trap); 1623 INSTALL_NATIVE(JSFunction, "DerivedHasTrap", derived_has_trap);
1624 INSTALL_NATIVE(JSFunction, "DerivedGetTrap", derived_get_trap); 1624 INSTALL_NATIVE(JSFunction, "DerivedGetTrap", derived_get_trap);
1625 INSTALL_NATIVE(JSFunction, "DerivedSetTrap", derived_set_trap); 1625 INSTALL_NATIVE(JSFunction, "DerivedSetTrap", derived_set_trap);
1626 INSTALL_NATIVE(JSFunction, "ProxyEnumerate", proxy_enumerate); 1626 INSTALL_NATIVE(JSFunction, "ProxyEnumerate", proxy_enumerate);
1627 } 1627 }
1628
1629 if (FLAG_harmony_unscopables) {
1630 INSTALL_NATIVE(Symbol, "symbolUnscopables", unscopables_symbol);
1631 }
1628 } 1632 }
1629 1633
1630 #undef INSTALL_NATIVE 1634 #undef INSTALL_NATIVE
1631 1635
1632 1636
1633 Handle<JSFunction> Genesis::InstallInternalArray( 1637 Handle<JSFunction> Genesis::InstallInternalArray(
1634 Handle<JSBuiltinsObject> builtins, 1638 Handle<JSBuiltinsObject> builtins,
1635 const char* name, 1639 const char* name,
1636 ElementsKind elements_kind) { 1640 ElementsKind elements_kind) {
1637 // --- I n t e r n a l A r r a y --- 1641 // --- I n t e r n a l A r r a y ---
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
2056 bool Genesis::InstallExperimentalNatives() { 2060 bool Genesis::InstallExperimentalNatives() {
2057 for (int i = ExperimentalNatives::GetDebuggerCount(); 2061 for (int i = ExperimentalNatives::GetDebuggerCount();
2058 i < ExperimentalNatives::GetBuiltinsCount(); 2062 i < ExperimentalNatives::GetBuiltinsCount();
2059 i++) { 2063 i++) {
2060 INSTALL_EXPERIMENTAL_NATIVE(i, proxies, "proxy.js") 2064 INSTALL_EXPERIMENTAL_NATIVE(i, proxies, "proxy.js")
2061 INSTALL_EXPERIMENTAL_NATIVE(i, generators, "generator.js") 2065 INSTALL_EXPERIMENTAL_NATIVE(i, generators, "generator.js")
2062 INSTALL_EXPERIMENTAL_NATIVE(i, iteration, "array-iterator.js") 2066 INSTALL_EXPERIMENTAL_NATIVE(i, iteration, "array-iterator.js")
2063 INSTALL_EXPERIMENTAL_NATIVE(i, iteration, "string-iterator.js") 2067 INSTALL_EXPERIMENTAL_NATIVE(i, iteration, "string-iterator.js")
2064 INSTALL_EXPERIMENTAL_NATIVE(i, strings, "harmony-string.js") 2068 INSTALL_EXPERIMENTAL_NATIVE(i, strings, "harmony-string.js")
2065 INSTALL_EXPERIMENTAL_NATIVE(i, arrays, "harmony-array.js") 2069 INSTALL_EXPERIMENTAL_NATIVE(i, arrays, "harmony-array.js")
2070 INSTALL_EXPERIMENTAL_NATIVE(i, unscopables, "unscopables.js")
2066 } 2071 }
2067 2072
2068 InstallExperimentalNativeFunctions(); 2073 InstallExperimentalNativeFunctions();
2069 return true; 2074 return true;
2070 } 2075 }
2071 2076
2072 2077
2073 static void InstallBuiltinFunctionId(Handle<JSObject> holder, 2078 static void InstallBuiltinFunctionId(Handle<JSObject> holder,
2074 const char* function_name, 2079 const char* function_name,
2075 BuiltinFunctionId id) { 2080 BuiltinFunctionId id) {
(...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after
2693 return from + sizeof(NestingCounterType); 2698 return from + sizeof(NestingCounterType);
2694 } 2699 }
2695 2700
2696 2701
2697 // Called when the top-level V8 mutex is destroyed. 2702 // Called when the top-level V8 mutex is destroyed.
2698 void Bootstrapper::FreeThreadResources() { 2703 void Bootstrapper::FreeThreadResources() {
2699 DCHECK(!IsActive()); 2704 DCHECK(!IsActive());
2700 } 2705 }
2701 2706
2702 } } // namespace v8::internal 2707 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | src/contexts.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698