OLD | NEW |
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/code-stubs.h" | 9 #include "src/code-stubs.h" |
10 #include "src/extensions/externalize-string-extension.h" | 10 #include "src/extensions/externalize-string-extension.h" |
(...skipping 2242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2253 | 2253 |
2254 INITIALIZE_FLAG(FLAG_harmony_species) | 2254 INITIALIZE_FLAG(FLAG_harmony_species) |
2255 | 2255 |
2256 #undef INITIALIZE_FLAG | 2256 #undef INITIALIZE_FLAG |
2257 } | 2257 } |
2258 | 2258 |
2259 | 2259 |
2260 #define EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(id) \ | 2260 #define EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(id) \ |
2261 void Genesis::InitializeGlobal_##id() {} | 2261 void Genesis::InitializeGlobal_##id() {} |
2262 | 2262 |
2263 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_modules) | |
2264 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_sloppy) | 2263 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_sloppy) |
2265 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_sloppy_function) | 2264 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_sloppy_function) |
2266 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_sloppy_let) | 2265 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_sloppy_let) |
2267 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object_observe) | 2266 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object_observe) |
2268 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexps) | 2267 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexps) |
2269 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_unicode_regexps) | 2268 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_unicode_regexps) |
2270 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_do_expressions) | 2269 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_do_expressions) |
2271 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_iterator_close) | 2270 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_iterator_close) |
2272 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexp_lookbehind) | 2271 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexp_lookbehind) |
2273 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexp_property) | 2272 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexp_property) |
(...skipping 665 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2939 map->AppendDescriptor(&d); | 2938 map->AppendDescriptor(&d); |
2940 } | 2939 } |
2941 } | 2940 } |
2942 | 2941 |
2943 return true; | 2942 return true; |
2944 } | 2943 } |
2945 | 2944 |
2946 | 2945 |
2947 bool Genesis::InstallExperimentalNatives() { | 2946 bool Genesis::InstallExperimentalNatives() { |
2948 static const char* harmony_proxies_natives[] = {"native proxy.js", nullptr}; | 2947 static const char* harmony_proxies_natives[] = {"native proxy.js", nullptr}; |
2949 static const char* harmony_modules_natives[] = {nullptr}; | |
2950 static const char* harmony_regexps_natives[] = {"native harmony-regexp.js", | 2948 static const char* harmony_regexps_natives[] = {"native harmony-regexp.js", |
2951 nullptr}; | 2949 nullptr}; |
2952 static const char* harmony_iterator_close_natives[] = {nullptr}; | 2950 static const char* harmony_iterator_close_natives[] = {nullptr}; |
2953 static const char* harmony_sloppy_natives[] = {nullptr}; | 2951 static const char* harmony_sloppy_natives[] = {nullptr}; |
2954 static const char* harmony_sloppy_function_natives[] = {nullptr}; | 2952 static const char* harmony_sloppy_function_natives[] = {nullptr}; |
2955 static const char* harmony_sloppy_let_natives[] = {nullptr}; | 2953 static const char* harmony_sloppy_let_natives[] = {nullptr}; |
2956 static const char* harmony_species_natives[] = {"native harmony-species.js", | 2954 static const char* harmony_species_natives[] = {"native harmony-species.js", |
2957 nullptr}; | 2955 nullptr}; |
2958 static const char* harmony_tailcalls_natives[] = {nullptr}; | 2956 static const char* harmony_tailcalls_natives[] = {nullptr}; |
2959 static const char* harmony_unicode_regexps_natives[] = { | 2957 static const char* harmony_unicode_regexps_natives[] = { |
(...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3646 } | 3644 } |
3647 | 3645 |
3648 | 3646 |
3649 // Called when the top-level V8 mutex is destroyed. | 3647 // Called when the top-level V8 mutex is destroyed. |
3650 void Bootstrapper::FreeThreadResources() { | 3648 void Bootstrapper::FreeThreadResources() { |
3651 DCHECK(!IsActive()); | 3649 DCHECK(!IsActive()); |
3652 } | 3650 } |
3653 | 3651 |
3654 } // namespace internal | 3652 } // namespace internal |
3655 } // namespace v8 | 3653 } // namespace v8 |
OLD | NEW |