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

Side by Side Diff: src/bootstrapper.cc

Issue 1215863003: Include Harmony Array/TypedArray methods unconditionally (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: remove the flag and move the tests Created 5 years, 5 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 | « BUILD.gn ('k') | 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 1780 matching lines...) Expand 10 before | Expand all | Expand 10 after
1791 NULL, num_elements, "rempio2result"); 1791 NULL, num_elements, "rempio2result");
1792 for (size_t i = 0; i < num_elements; i++) data[i] = 0; 1792 for (size_t i = 0; i < num_elements; i++) data[i] = 0;
1793 } 1793 }
1794 } 1794 }
1795 1795
1796 1796
1797 #define EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(id) \ 1797 #define EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(id) \
1798 void Genesis::InstallNativeFunctions_##id() {} 1798 void Genesis::InstallNativeFunctions_##id() {}
1799 1799
1800 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_modules) 1800 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_modules)
1801 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_arrays)
1802 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_array_includes) 1801 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_array_includes)
1803 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_regexps) 1802 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_regexps)
1804 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_arrow_functions) 1803 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_arrow_functions)
1805 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_tostring) 1804 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_tostring)
1806 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_sloppy) 1805 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_sloppy)
1807 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_unicode) 1806 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_unicode)
1808 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_unicode_regexps) 1807 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_unicode_regexps)
1809 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_computed_property_names) 1808 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_computed_property_names)
1810 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_rest_parameters) 1809 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_rest_parameters)
1811 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_reflect) 1810 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_reflect)
(...skipping 15 matching lines...) Expand all
1827 } 1826 }
1828 } 1827 }
1829 1828
1830 1829
1831 #undef INSTALL_NATIVE 1830 #undef INSTALL_NATIVE
1832 1831
1833 #define EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(id) \ 1832 #define EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(id) \
1834 void Genesis::InitializeGlobal_##id() {} 1833 void Genesis::InitializeGlobal_##id() {}
1835 1834
1836 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_modules) 1835 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_modules)
1837 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_arrays)
1838 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_array_includes) 1836 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_array_includes)
1839 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_arrow_functions) 1837 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_arrow_functions)
1840 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_proxies) 1838 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_proxies)
1841 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_sloppy) 1839 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_sloppy)
1842 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_unicode) 1840 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_unicode)
1843 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_computed_property_names) 1841 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_computed_property_names)
1844 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_rest_parameters) 1842 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_rest_parameters)
1845 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_spreadcalls) 1843 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_spreadcalls)
1846 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_destructuring) 1844 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_destructuring)
1847 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object) 1845 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object)
(...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after
2457 if (FLAG_verify_heap) { 2455 if (FLAG_verify_heap) {
2458 builtins->ObjectVerify(); 2456 builtins->ObjectVerify();
2459 } 2457 }
2460 #endif 2458 #endif
2461 2459
2462 return true; 2460 return true;
2463 } 2461 }
2464 2462
2465 2463
2466 bool Genesis::InstallExperimentalNatives() { 2464 bool Genesis::InstallExperimentalNatives() {
2467 static const char* harmony_arrays_natives[] = {
2468 "native harmony-array.js", "native harmony-typedarray.js", nullptr};
2469 static const char* harmony_array_includes_natives[] = { 2465 static const char* harmony_array_includes_natives[] = {
2470 "native harmony-array-includes.js", nullptr}; 2466 "native harmony-array-includes.js", nullptr};
2471 static const char* harmony_proxies_natives[] = {"native proxy.js", nullptr}; 2467 static const char* harmony_proxies_natives[] = {"native proxy.js", nullptr};
2472 static const char* harmony_modules_natives[] = {nullptr}; 2468 static const char* harmony_modules_natives[] = {nullptr};
2473 static const char* harmony_regexps_natives[] = {"native harmony-regexp.js", 2469 static const char* harmony_regexps_natives[] = {"native harmony-regexp.js",
2474 nullptr}; 2470 nullptr};
2475 static const char* harmony_arrow_functions_natives[] = {nullptr}; 2471 static const char* harmony_arrow_functions_natives[] = {nullptr};
2476 static const char* harmony_tostring_natives[] = {"native harmony-tostring.js", 2472 static const char* harmony_tostring_natives[] = {"native harmony-tostring.js",
2477 nullptr}; 2473 nullptr};
2478 static const char* harmony_sloppy_natives[] = {nullptr}; 2474 static const char* harmony_sloppy_natives[] = {nullptr};
(...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after
3192 } 3188 }
3193 3189
3194 3190
3195 // Called when the top-level V8 mutex is destroyed. 3191 // Called when the top-level V8 mutex is destroyed.
3196 void Bootstrapper::FreeThreadResources() { 3192 void Bootstrapper::FreeThreadResources() {
3197 DCHECK(!IsActive()); 3193 DCHECK(!IsActive());
3198 } 3194 }
3199 3195
3200 } // namespace internal 3196 } // namespace internal
3201 } // namespace v8 3197 } // namespace v8
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698