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

Side by Side Diff: src/bootstrapper.cc

Issue 2365123002: Move async/await JS support code out of experimental natives (Closed)
Patch Set: Alphabetize Created 4 years, 2 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
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/ieee754.h" 9 #include "src/base/ieee754.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 3434 matching lines...) Expand 10 before | Expand all | Expand 10 after
3445 nullptr}; 3445 nullptr};
3446 static const char* harmony_array_prototype_values_natives[] = {nullptr}; 3446 static const char* harmony_array_prototype_values_natives[] = {nullptr};
3447 static const char* harmony_string_padding_natives[] = { 3447 static const char* harmony_string_padding_natives[] = {
3448 "native harmony-string-padding.js", nullptr}; 3448 "native harmony-string-padding.js", nullptr};
3449 #ifdef V8_I18N_SUPPORT 3449 #ifdef V8_I18N_SUPPORT
3450 static const char* icu_case_mapping_natives[] = {"native icu-case-mapping.js", 3450 static const char* icu_case_mapping_natives[] = {"native icu-case-mapping.js",
3451 nullptr}; 3451 nullptr};
3452 static const char* datetime_format_to_parts_natives[] = { 3452 static const char* datetime_format_to_parts_natives[] = {
3453 "native datetime-format-to-parts.js", nullptr}; 3453 "native datetime-format-to-parts.js", nullptr};
3454 #endif 3454 #endif
3455 static const char* harmony_async_await_natives[] = { 3455 static const char* harmony_async_await_natives[] = {nullptr};
3456 "native harmony-async-await.js", nullptr};
3457 static const char* harmony_restrictive_generators_natives[] = {nullptr}; 3456 static const char* harmony_restrictive_generators_natives[] = {nullptr};
3458 static const char* harmony_trailing_commas_natives[] = {nullptr}; 3457 static const char* harmony_trailing_commas_natives[] = {nullptr};
3459 static const char* harmony_class_fields_natives[] = {nullptr}; 3458 static const char* harmony_class_fields_natives[] = {nullptr};
3460 3459
3461 for (int i = ExperimentalNatives::GetDebuggerCount(); 3460 for (int i = ExperimentalNatives::GetDebuggerCount();
3462 i < ExperimentalNatives::GetBuiltinsCount(); i++) { 3461 i < ExperimentalNatives::GetBuiltinsCount(); i++) {
3463 #define INSTALL_EXPERIMENTAL_NATIVES(id, desc) \ 3462 #define INSTALL_EXPERIMENTAL_NATIVES(id, desc) \
3464 if (FLAG_##id) { \ 3463 if (FLAG_##id) { \
3465 for (size_t j = 0; id##_natives[j] != NULL; j++) { \ 3464 for (size_t j = 0; id##_natives[j] != NULL; j++) { \
3466 Vector<const char> script_name = ExperimentalNatives::GetScriptName(i); \ 3465 Vector<const char> script_name = ExperimentalNatives::GetScriptName(i); \
(...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after
4185 } 4184 }
4186 4185
4187 4186
4188 // Called when the top-level V8 mutex is destroyed. 4187 // Called when the top-level V8 mutex is destroyed.
4189 void Bootstrapper::FreeThreadResources() { 4188 void Bootstrapper::FreeThreadResources() {
4190 DCHECK(!IsActive()); 4189 DCHECK(!IsActive());
4191 } 4190 }
4192 4191
4193 } // namespace internal 4192 } // namespace internal
4194 } // namespace v8 4193 } // namespace v8
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | src/js/async-await.js » ('j') | src/js/prologue.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698