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

Side by Side Diff: src/bootstrapper.cc

Issue 1170263002: Revert of [es6] Parsing of new.target (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 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/flag-definitions.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/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 1750 matching lines...) Expand 10 before | Expand all | Expand 10 after
1761 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_unicode_regexps) 1761 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_unicode_regexps)
1762 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_computed_property_names) 1762 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_computed_property_names)
1763 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_rest_parameters) 1763 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_rest_parameters)
1764 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_reflect) 1764 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_reflect)
1765 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_spreadcalls) 1765 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_spreadcalls)
1766 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_destructuring) 1766 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_destructuring)
1767 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_object) 1767 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_object)
1768 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_spread_arrays) 1768 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_spread_arrays)
1769 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_sharedarraybuffer) 1769 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_sharedarraybuffer)
1770 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_atomics) 1770 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_atomics)
1771 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_new_target)
1772 1771
1773 1772
1774 void Genesis::InstallNativeFunctions_harmony_proxies() { 1773 void Genesis::InstallNativeFunctions_harmony_proxies() {
1775 if (FLAG_harmony_proxies) { 1774 if (FLAG_harmony_proxies) {
1776 INSTALL_NATIVE(JSFunction, "$proxyDerivedHasTrap", derived_has_trap); 1775 INSTALL_NATIVE(JSFunction, "$proxyDerivedHasTrap", derived_has_trap);
1777 INSTALL_NATIVE(JSFunction, "$proxyDerivedGetTrap", derived_get_trap); 1776 INSTALL_NATIVE(JSFunction, "$proxyDerivedGetTrap", derived_get_trap);
1778 INSTALL_NATIVE(JSFunction, "$proxyDerivedSetTrap", derived_set_trap); 1777 INSTALL_NATIVE(JSFunction, "$proxyDerivedSetTrap", derived_set_trap);
1779 INSTALL_NATIVE(JSFunction, "$proxyEnumerate", proxy_enumerate); 1778 INSTALL_NATIVE(JSFunction, "$proxyEnumerate", proxy_enumerate);
1780 } 1779 }
1781 } 1780 }
(...skipping 13 matching lines...) Expand all
1795 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_proxies) 1794 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_proxies)
1796 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_sloppy) 1795 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_sloppy)
1797 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_unicode) 1796 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_unicode)
1798 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_computed_property_names) 1797 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_computed_property_names)
1799 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_rest_parameters) 1798 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_rest_parameters)
1800 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_spreadcalls) 1799 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_spreadcalls)
1801 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_destructuring) 1800 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_destructuring)
1802 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object) 1801 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object)
1803 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_spread_arrays) 1802 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_spread_arrays)
1804 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_atomics) 1803 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_atomics)
1805 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_new_target)
1806 1804
1807 void Genesis::InitializeGlobal_harmony_regexps() { 1805 void Genesis::InitializeGlobal_harmony_regexps() {
1808 Handle<JSObject> builtins(native_context()->builtins()); 1806 Handle<JSObject> builtins(native_context()->builtins());
1809 1807
1810 Handle<HeapObject> flag(FLAG_harmony_regexps ? heap()->true_value() 1808 Handle<HeapObject> flag(FLAG_harmony_regexps ? heap()->true_value()
1811 : heap()->false_value()); 1809 : heap()->false_value());
1812 Runtime::SetObjectProperty(isolate(), builtins, 1810 Runtime::SetObjectProperty(isolate(), builtins,
1813 factory()->harmony_regexps_string(), flag, 1811 factory()->harmony_regexps_string(), flag,
1814 STRICT).Assert(); 1812 STRICT).Assert();
1815 } 1813 }
(...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after
2442 static const char* harmony_spreadcalls_natives[] = { 2440 static const char* harmony_spreadcalls_natives[] = {
2443 "native harmony-spread.js", nullptr}; 2441 "native harmony-spread.js", nullptr};
2444 static const char* harmony_destructuring_natives[] = {nullptr}; 2442 static const char* harmony_destructuring_natives[] = {nullptr};
2445 static const char* harmony_object_natives[] = {"native harmony-object.js", 2443 static const char* harmony_object_natives[] = {"native harmony-object.js",
2446 NULL}; 2444 NULL};
2447 static const char* harmony_spread_arrays_natives[] = {nullptr}; 2445 static const char* harmony_spread_arrays_natives[] = {nullptr};
2448 static const char* harmony_sharedarraybuffer_natives[] = { 2446 static const char* harmony_sharedarraybuffer_natives[] = {
2449 "native harmony-sharedarraybuffer.js", NULL}; 2447 "native harmony-sharedarraybuffer.js", NULL};
2450 static const char* harmony_atomics_natives[] = {"native harmony-atomics.js", 2448 static const char* harmony_atomics_natives[] = {"native harmony-atomics.js",
2451 nullptr}; 2449 nullptr};
2452 static const char* harmony_new_target_natives[] = {nullptr};
2453 2450
2454 for (int i = ExperimentalNatives::GetDebuggerCount(); 2451 for (int i = ExperimentalNatives::GetDebuggerCount();
2455 i < ExperimentalNatives::GetBuiltinsCount(); i++) { 2452 i < ExperimentalNatives::GetBuiltinsCount(); i++) {
2456 #define INSTALL_EXPERIMENTAL_NATIVES(id, desc) \ 2453 #define INSTALL_EXPERIMENTAL_NATIVES(id, desc) \
2457 if (FLAG_##id) { \ 2454 if (FLAG_##id) { \
2458 for (size_t j = 0; id##_natives[j] != NULL; j++) { \ 2455 for (size_t j = 0; id##_natives[j] != NULL; j++) { \
2459 Vector<const char> script_name = ExperimentalNatives::GetScriptName(i); \ 2456 Vector<const char> script_name = ExperimentalNatives::GetScriptName(i); \
2460 if (strncmp(script_name.start(), id##_natives[j], \ 2457 if (strncmp(script_name.start(), id##_natives[j], \
2461 script_name.length()) == 0) { \ 2458 script_name.length()) == 0) { \
2462 if (!CompileExperimentalBuiltin(isolate(), i)) return false; \ 2459 if (!CompileExperimentalBuiltin(isolate(), i)) return false; \
(...skipping 685 matching lines...) Expand 10 before | Expand all | Expand 10 after
3148 } 3145 }
3149 3146
3150 3147
3151 // Called when the top-level V8 mutex is destroyed. 3148 // Called when the top-level V8 mutex is destroyed.
3152 void Bootstrapper::FreeThreadResources() { 3149 void Bootstrapper::FreeThreadResources() {
3153 DCHECK(!IsActive()); 3150 DCHECK(!IsActive());
3154 } 3151 }
3155 3152
3156 } // namespace internal 3153 } // namespace internal
3157 } // namespace v8 3154 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698