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 1125183008: [es6] Spread in array literals (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: cleanup Created 5 years, 7 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 | « src/bailout-reason.h ('k') | src/builtins.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 1717 matching lines...) Expand 10 before | Expand all | Expand 10 after
1728 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_tostring) 1728 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_tostring)
1729 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_sloppy) 1729 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_sloppy)
1730 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_unicode) 1730 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_unicode)
1731 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_unicode_regexps) 1731 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_unicode_regexps)
1732 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_computed_property_names) 1732 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_computed_property_names)
1733 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_rest_parameters) 1733 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_rest_parameters)
1734 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_reflect) 1734 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_reflect)
1735 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_spreadcalls) 1735 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_spreadcalls)
1736 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_destructuring) 1736 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_destructuring)
1737 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_object) 1737 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_object)
1738 EMPTY_NATIVE_FUNCTIONS_FOR_FEATURE(harmony_spread_arrays)
1738 1739
1739 1740
1740 void Genesis::InstallNativeFunctions_harmony_proxies() { 1741 void Genesis::InstallNativeFunctions_harmony_proxies() {
1741 if (FLAG_harmony_proxies) { 1742 if (FLAG_harmony_proxies) {
1742 INSTALL_NATIVE(JSFunction, "$proxyDerivedHasTrap", derived_has_trap); 1743 INSTALL_NATIVE(JSFunction, "$proxyDerivedHasTrap", derived_has_trap);
1743 INSTALL_NATIVE(JSFunction, "$proxyDerivedGetTrap", derived_get_trap); 1744 INSTALL_NATIVE(JSFunction, "$proxyDerivedGetTrap", derived_get_trap);
1744 INSTALL_NATIVE(JSFunction, "$proxyDerivedSetTrap", derived_set_trap); 1745 INSTALL_NATIVE(JSFunction, "$proxyDerivedSetTrap", derived_set_trap);
1745 INSTALL_NATIVE(JSFunction, "$proxyEnumerate", proxy_enumerate); 1746 INSTALL_NATIVE(JSFunction, "$proxyEnumerate", proxy_enumerate);
1746 } 1747 }
1747 } 1748 }
(...skipping 10 matching lines...) Expand all
1758 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object_literals) 1759 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object_literals)
1759 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_arrow_functions) 1760 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_arrow_functions)
1760 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_proxies) 1761 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_proxies)
1761 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_sloppy) 1762 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_sloppy)
1762 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_unicode) 1763 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_unicode)
1763 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_computed_property_names) 1764 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_computed_property_names)
1764 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_rest_parameters) 1765 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_rest_parameters)
1765 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_spreadcalls) 1766 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_spreadcalls)
1766 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_destructuring) 1767 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_destructuring)
1767 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object) 1768 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object)
1769 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_spread_arrays)
1768 1770
1769 void Genesis::InitializeGlobal_harmony_regexps() { 1771 void Genesis::InitializeGlobal_harmony_regexps() {
1770 Handle<JSObject> builtins(native_context()->builtins()); 1772 Handle<JSObject> builtins(native_context()->builtins());
1771 1773
1772 Handle<HeapObject> flag(FLAG_harmony_regexps ? heap()->true_value() 1774 Handle<HeapObject> flag(FLAG_harmony_regexps ? heap()->true_value()
1773 : heap()->false_value()); 1775 : heap()->false_value());
1774 Runtime::SetObjectProperty(isolate(), builtins, 1776 Runtime::SetObjectProperty(isolate(), builtins,
1775 factory()->harmony_regexps_string(), flag, 1777 factory()->harmony_regexps_string(), flag,
1776 STRICT).Assert(); 1778 STRICT).Assert();
1777 } 1779 }
(...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after
2392 static const char* harmony_unicode_regexps_natives[] = {nullptr}; 2394 static const char* harmony_unicode_regexps_natives[] = {nullptr};
2393 static const char* harmony_computed_property_names_natives[] = {nullptr}; 2395 static const char* harmony_computed_property_names_natives[] = {nullptr};
2394 static const char* harmony_rest_parameters_natives[] = {nullptr}; 2396 static const char* harmony_rest_parameters_natives[] = {nullptr};
2395 static const char* harmony_reflect_natives[] = {"native harmony-reflect.js", 2397 static const char* harmony_reflect_natives[] = {"native harmony-reflect.js",
2396 nullptr}; 2398 nullptr};
2397 static const char* harmony_spreadcalls_natives[] = { 2399 static const char* harmony_spreadcalls_natives[] = {
2398 "native harmony-spread.js", nullptr}; 2400 "native harmony-spread.js", nullptr};
2399 static const char* harmony_destructuring_natives[] = {nullptr}; 2401 static const char* harmony_destructuring_natives[] = {nullptr};
2400 static const char* harmony_object_natives[] = {"native harmony-object.js", 2402 static const char* harmony_object_natives[] = {"native harmony-object.js",
2401 NULL}; 2403 NULL};
2404 static const char* harmony_spread_arrays_natives[] = {nullptr};
2402 2405
2403 for (int i = ExperimentalNatives::GetDebuggerCount(); 2406 for (int i = ExperimentalNatives::GetDebuggerCount();
2404 i < ExperimentalNatives::GetBuiltinsCount(); i++) { 2407 i < ExperimentalNatives::GetBuiltinsCount(); i++) {
2405 #define INSTALL_EXPERIMENTAL_NATIVES(id, desc) \ 2408 #define INSTALL_EXPERIMENTAL_NATIVES(id, desc) \
2406 if (FLAG_##id) { \ 2409 if (FLAG_##id) { \
2407 for (size_t j = 0; id##_natives[j] != NULL; j++) { \ 2410 for (size_t j = 0; id##_natives[j] != NULL; j++) { \
2408 Vector<const char> script_name = ExperimentalNatives::GetScriptName(i); \ 2411 Vector<const char> script_name = ExperimentalNatives::GetScriptName(i); \
2409 if (strncmp(script_name.start(), id##_natives[j], \ 2412 if (strncmp(script_name.start(), id##_natives[j], \
2410 script_name.length()) == 0) { \ 2413 script_name.length()) == 0) { \
2411 if (!CompileExperimentalBuiltin(isolate(), i)) return false; \ 2414 if (!CompileExperimentalBuiltin(isolate(), i)) return false; \
(...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after
3044 return from + sizeof(NestingCounterType); 3047 return from + sizeof(NestingCounterType);
3045 } 3048 }
3046 3049
3047 3050
3048 // Called when the top-level V8 mutex is destroyed. 3051 // Called when the top-level V8 mutex is destroyed.
3049 void Bootstrapper::FreeThreadResources() { 3052 void Bootstrapper::FreeThreadResources() {
3050 DCHECK(!IsActive()); 3053 DCHECK(!IsActive());
3051 } 3054 }
3052 3055
3053 } } // namespace v8::internal 3056 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/bailout-reason.h ('k') | src/builtins.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698