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

Side by Side Diff: src/bootstrapper.cc

Issue 1282093002: Split function block scoping into a separate flag (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 5 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
« 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 1822 matching lines...) Expand 10 before | Expand all | Expand 10 after
1833 1833
1834 #define EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(id) \ 1834 #define EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(id) \
1835 void Genesis::InstallNativeFunctions_##id() {} 1835 void Genesis::InstallNativeFunctions_##id() {}
1836 1836
1837 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_modules) 1837 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_modules)
1838 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_array_includes) 1838 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_array_includes)
1839 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_regexps) 1839 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_regexps)
1840 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_arrow_functions) 1840 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_arrow_functions)
1841 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_tostring) 1841 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_tostring)
1842 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_sloppy) 1842 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_sloppy)
1843 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_sloppy_function)
1843 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_sloppy_let) 1844 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_sloppy_let)
1844 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_unicode_regexps) 1845 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_unicode_regexps)
1845 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_rest_parameters) 1846 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_rest_parameters)
1846 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_reflect) 1847 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_reflect)
1847 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_spreadcalls) 1848 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_spreadcalls)
1848 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_destructuring) 1849 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_destructuring)
1849 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_object) 1850 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_object)
1850 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_object_observe) 1851 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_object_observe)
1851 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_spread_arrays) 1852 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_spread_arrays)
1852 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_sharedarraybuffer) 1853 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_sharedarraybuffer)
(...skipping 16 matching lines...) Expand all
1869 #undef INSTALL_NATIVE 1870 #undef INSTALL_NATIVE
1870 1871
1871 #define EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(id) \ 1872 #define EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(id) \
1872 void Genesis::InitializeGlobal_##id() {} 1873 void Genesis::InitializeGlobal_##id() {}
1873 1874
1874 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_modules) 1875 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_modules)
1875 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_array_includes) 1876 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_array_includes)
1876 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_arrow_functions) 1877 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_arrow_functions)
1877 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_proxies) 1878 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_proxies)
1878 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_sloppy) 1879 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_sloppy)
1880 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_sloppy_function)
1879 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_sloppy_let) 1881 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_sloppy_let)
1880 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_rest_parameters) 1882 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_rest_parameters)
1881 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_spreadcalls) 1883 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_spreadcalls)
1882 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_destructuring) 1884 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_destructuring)
1883 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object) 1885 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object)
1884 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object_observe) 1886 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object_observe)
1885 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_spread_arrays) 1887 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_spread_arrays)
1886 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_atomics) 1888 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_atomics)
1887 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_new_target) 1889 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_new_target)
1888 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_concat_spreadable) 1890 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_concat_spreadable)
(...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after
2551 static const char* harmony_array_includes_natives[] = { 2553 static const char* harmony_array_includes_natives[] = {
2552 "native harmony-array-includes.js", nullptr}; 2554 "native harmony-array-includes.js", nullptr};
2553 static const char* harmony_proxies_natives[] = {"native proxy.js", nullptr}; 2555 static const char* harmony_proxies_natives[] = {"native proxy.js", nullptr};
2554 static const char* harmony_modules_natives[] = {nullptr}; 2556 static const char* harmony_modules_natives[] = {nullptr};
2555 static const char* harmony_regexps_natives[] = {"native harmony-regexp.js", 2557 static const char* harmony_regexps_natives[] = {"native harmony-regexp.js",
2556 nullptr}; 2558 nullptr};
2557 static const char* harmony_arrow_functions_natives[] = {nullptr}; 2559 static const char* harmony_arrow_functions_natives[] = {nullptr};
2558 static const char* harmony_tostring_natives[] = {"native harmony-tostring.js", 2560 static const char* harmony_tostring_natives[] = {"native harmony-tostring.js",
2559 nullptr}; 2561 nullptr};
2560 static const char* harmony_sloppy_natives[] = {nullptr}; 2562 static const char* harmony_sloppy_natives[] = {nullptr};
2563 static const char* harmony_sloppy_function_natives[] = {nullptr};
2561 static const char* harmony_sloppy_let_natives[] = {nullptr}; 2564 static const char* harmony_sloppy_let_natives[] = {nullptr};
2562 static const char* harmony_unicode_regexps_natives[] = {nullptr}; 2565 static const char* harmony_unicode_regexps_natives[] = {nullptr};
2563 static const char* harmony_rest_parameters_natives[] = {nullptr}; 2566 static const char* harmony_rest_parameters_natives[] = {nullptr};
2564 static const char* harmony_reflect_natives[] = {"native harmony-reflect.js", 2567 static const char* harmony_reflect_natives[] = {"native harmony-reflect.js",
2565 nullptr}; 2568 nullptr};
2566 static const char* harmony_spreadcalls_natives[] = { 2569 static const char* harmony_spreadcalls_natives[] = {
2567 "native harmony-spread.js", nullptr}; 2570 "native harmony-spread.js", nullptr};
2568 static const char* harmony_destructuring_natives[] = {nullptr}; 2571 static const char* harmony_destructuring_natives[] = {nullptr};
2569 static const char* harmony_object_natives[] = {"native harmony-object.js", 2572 static const char* harmony_object_natives[] = {"native harmony-object.js",
2570 NULL}; 2573 NULL};
(...skipping 689 matching lines...) Expand 10 before | Expand all | Expand 10 after
3260 } 3263 }
3261 3264
3262 3265
3263 // Called when the top-level V8 mutex is destroyed. 3266 // Called when the top-level V8 mutex is destroyed.
3264 void Bootstrapper::FreeThreadResources() { 3267 void Bootstrapper::FreeThreadResources() {
3265 DCHECK(!IsActive()); 3268 DCHECK(!IsActive());
3266 } 3269 }
3267 3270
3268 } // namespace internal 3271 } // namespace internal
3269 } // namespace v8 3272 } // 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