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

Side by Side Diff: src/bootstrapper.cc

Issue 1287063004: [es6] Implement default parameters (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix TODO 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') | src/parser.cc » ('J')
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 1799 matching lines...) Expand 10 before | Expand all | Expand 10 after
1810 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_modules) 1810 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_modules)
1811 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_array_includes) 1811 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_array_includes)
1812 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_regexps) 1812 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_regexps)
1813 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_arrow_functions) 1813 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_arrow_functions)
1814 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_tostring) 1814 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_tostring)
1815 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_sloppy) 1815 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_sloppy)
1816 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_sloppy_function) 1816 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_sloppy_function)
1817 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_sloppy_let) 1817 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_sloppy_let)
1818 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_unicode_regexps) 1818 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_unicode_regexps)
1819 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_rest_parameters) 1819 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_rest_parameters)
1820 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_default_parameters)
1820 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_reflect) 1821 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_reflect)
1821 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_spreadcalls) 1822 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_spreadcalls)
1822 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_destructuring) 1823 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_destructuring)
1823 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_object) 1824 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_object)
1824 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_object_observe) 1825 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_object_observe)
1825 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_spread_arrays) 1826 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_spread_arrays)
1826 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_sharedarraybuffer) 1827 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_sharedarraybuffer)
1827 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_atomics) 1828 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_atomics)
1828 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_new_target) 1829 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_new_target)
1829 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_concat_spreadable) 1830 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_concat_spreadable)
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
1861 void Genesis::InitializeGlobal_##id() {} 1862 void Genesis::InitializeGlobal_##id() {}
1862 1863
1863 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_modules) 1864 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_modules)
1864 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_array_includes) 1865 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_array_includes)
1865 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_arrow_functions) 1866 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_arrow_functions)
1866 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_proxies) 1867 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_proxies)
1867 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_sloppy) 1868 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_sloppy)
1868 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_sloppy_function) 1869 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_sloppy_function)
1869 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_sloppy_let) 1870 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_sloppy_let)
1870 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_rest_parameters) 1871 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_rest_parameters)
1872 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_default_parameters)
1871 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_spreadcalls) 1873 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_spreadcalls)
1872 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_destructuring) 1874 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_destructuring)
1873 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object) 1875 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object)
1874 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object_observe) 1876 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object_observe)
1875 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_spread_arrays) 1877 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_spread_arrays)
1876 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_atomics) 1878 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_atomics)
1877 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_new_target) 1879 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_new_target)
1878 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_concat_spreadable) 1880 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_concat_spreadable)
1879 1881
1880 void Genesis::InitializeGlobal_harmony_regexps() { 1882 void Genesis::InitializeGlobal_harmony_regexps() {
(...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after
2537 static const char* harmony_regexps_natives[] = {"native harmony-regexp.js", 2539 static const char* harmony_regexps_natives[] = {"native harmony-regexp.js",
2538 nullptr}; 2540 nullptr};
2539 static const char* harmony_arrow_functions_natives[] = {nullptr}; 2541 static const char* harmony_arrow_functions_natives[] = {nullptr};
2540 static const char* harmony_tostring_natives[] = {"native harmony-tostring.js", 2542 static const char* harmony_tostring_natives[] = {"native harmony-tostring.js",
2541 nullptr}; 2543 nullptr};
2542 static const char* harmony_sloppy_natives[] = {nullptr}; 2544 static const char* harmony_sloppy_natives[] = {nullptr};
2543 static const char* harmony_sloppy_function_natives[] = {nullptr}; 2545 static const char* harmony_sloppy_function_natives[] = {nullptr};
2544 static const char* harmony_sloppy_let_natives[] = {nullptr}; 2546 static const char* harmony_sloppy_let_natives[] = {nullptr};
2545 static const char* harmony_unicode_regexps_natives[] = {nullptr}; 2547 static const char* harmony_unicode_regexps_natives[] = {nullptr};
2546 static const char* harmony_rest_parameters_natives[] = {nullptr}; 2548 static const char* harmony_rest_parameters_natives[] = {nullptr};
2549 static const char* harmony_default_parameters_natives[] = {nullptr};
2547 static const char* harmony_reflect_natives[] = {"native harmony-reflect.js", 2550 static const char* harmony_reflect_natives[] = {"native harmony-reflect.js",
2548 nullptr}; 2551 nullptr};
2549 static const char* harmony_spreadcalls_natives[] = { 2552 static const char* harmony_spreadcalls_natives[] = {
2550 "native harmony-spread.js", nullptr}; 2553 "native harmony-spread.js", nullptr};
2551 static const char* harmony_destructuring_natives[] = {nullptr}; 2554 static const char* harmony_destructuring_natives[] = {nullptr};
2552 static const char* harmony_object_natives[] = {"native harmony-object.js", 2555 static const char* harmony_object_natives[] = {"native harmony-object.js",
2553 NULL}; 2556 NULL};
2554 static const char* harmony_object_observe_natives[] = { 2557 static const char* harmony_object_observe_natives[] = {
2555 "native harmony-object-observe.js", nullptr}; 2558 "native harmony-object-observe.js", nullptr};
2556 static const char* harmony_spread_arrays_natives[] = {nullptr}; 2559 static const char* harmony_spread_arrays_natives[] = {nullptr};
(...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after
3262 } 3265 }
3263 3266
3264 3267
3265 // Called when the top-level V8 mutex is destroyed. 3268 // Called when the top-level V8 mutex is destroyed.
3266 void Bootstrapper::FreeThreadResources() { 3269 void Bootstrapper::FreeThreadResources() {
3267 DCHECK(!IsActive()); 3270 DCHECK(!IsActive());
3268 } 3271 }
3269 3272
3270 } // namespace internal 3273 } // namespace internal
3271 } // namespace v8 3274 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/flag-definitions.h » ('j') | src/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698