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

Side by Side Diff: src/bootstrapper.cc

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