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

Side by Side Diff: src/bootstrapper.cc

Issue 2661933003: [ESnext] Parse dynamic import expression (Closed)
Patch Set: fix Created 3 years, 10 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') | 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/ieee754.h" 9 #include "src/base/ieee754.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 3498 matching lines...) Expand 10 before | Expand all | Expand 10 after
3509 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_function_sent) 3509 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_function_sent)
3510 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_tailcalls) 3510 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_tailcalls)
3511 #ifdef V8_I18N_SUPPORT 3511 #ifdef V8_I18N_SUPPORT
3512 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(datetime_format_to_parts) 3512 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(datetime_format_to_parts)
3513 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(icu_case_mapping) 3513 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(icu_case_mapping)
3514 #endif 3514 #endif
3515 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_restrictive_generators) 3515 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_restrictive_generators)
3516 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_trailing_commas) 3516 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_trailing_commas)
3517 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_class_fields) 3517 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_class_fields)
3518 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object_rest_spread) 3518 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object_rest_spread)
3519 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_dynamic_import)
3519 3520
3520 void InstallPublicSymbol(Factory* factory, Handle<Context> native_context, 3521 void InstallPublicSymbol(Factory* factory, Handle<Context> native_context,
3521 const char* name, Handle<Symbol> value) { 3522 const char* name, Handle<Symbol> value) {
3522 Handle<JSGlobalObject> global( 3523 Handle<JSGlobalObject> global(
3523 JSGlobalObject::cast(native_context->global_object())); 3524 JSGlobalObject::cast(native_context->global_object()));
3524 Handle<String> symbol_string = factory->InternalizeUtf8String("Symbol"); 3525 Handle<String> symbol_string = factory->InternalizeUtf8String("Symbol");
3525 Handle<JSObject> symbol = Handle<JSObject>::cast( 3526 Handle<JSObject> symbol = Handle<JSObject>::cast(
3526 JSObject::GetProperty(global, symbol_string).ToHandleChecked()); 3527 JSObject::GetProperty(global, symbol_string).ToHandleChecked());
3527 Handle<String> name_string = factory->InternalizeUtf8String(name); 3528 Handle<String> name_string = factory->InternalizeUtf8String(name);
3528 PropertyAttributes attributes = 3529 PropertyAttributes attributes =
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after
4078 static const char* icu_case_mapping_natives[] = {"native icu-case-mapping.js", 4079 static const char* icu_case_mapping_natives[] = {"native icu-case-mapping.js",
4079 nullptr}; 4080 nullptr};
4080 static const char* datetime_format_to_parts_natives[] = { 4081 static const char* datetime_format_to_parts_natives[] = {
4081 "native datetime-format-to-parts.js", nullptr}; 4082 "native datetime-format-to-parts.js", nullptr};
4082 #endif 4083 #endif
4083 static const char* harmony_restrictive_generators_natives[] = {nullptr}; 4084 static const char* harmony_restrictive_generators_natives[] = {nullptr};
4084 static const char* harmony_trailing_commas_natives[] = {nullptr}; 4085 static const char* harmony_trailing_commas_natives[] = {nullptr};
4085 static const char* harmony_class_fields_natives[] = {nullptr}; 4086 static const char* harmony_class_fields_natives[] = {nullptr};
4086 static const char* harmony_object_rest_spread_natives[] = {nullptr}; 4087 static const char* harmony_object_rest_spread_natives[] = {nullptr};
4087 static const char* harmony_async_iteration_natives[] = {nullptr}; 4088 static const char* harmony_async_iteration_natives[] = {nullptr};
4089 static const char* harmony_dynamic_import_natives[] = {nullptr};
4088 4090
4089 for (int i = ExperimentalNatives::GetDebuggerCount(); 4091 for (int i = ExperimentalNatives::GetDebuggerCount();
4090 i < ExperimentalNatives::GetBuiltinsCount(); i++) { 4092 i < ExperimentalNatives::GetBuiltinsCount(); i++) {
4091 #define INSTALL_EXPERIMENTAL_NATIVES(id, desc) \ 4093 #define INSTALL_EXPERIMENTAL_NATIVES(id, desc) \
4092 if (FLAG_##id) { \ 4094 if (FLAG_##id) { \
4093 for (size_t j = 0; id##_natives[j] != NULL; j++) { \ 4095 for (size_t j = 0; id##_natives[j] != NULL; j++) { \
4094 Vector<const char> script_name = ExperimentalNatives::GetScriptName(i); \ 4096 Vector<const char> script_name = ExperimentalNatives::GetScriptName(i); \
4095 if (strncmp(script_name.start(), id##_natives[j], \ 4097 if (strncmp(script_name.start(), id##_natives[j], \
4096 script_name.length()) == 0) { \ 4098 script_name.length()) == 0) { \
4097 if (!Bootstrapper::CompileExperimentalBuiltin(isolate(), i)) { \ 4099 if (!Bootstrapper::CompileExperimentalBuiltin(isolate(), i)) { \
(...skipping 726 matching lines...) Expand 10 before | Expand all | Expand 10 after
4824 } 4826 }
4825 4827
4826 4828
4827 // Called when the top-level V8 mutex is destroyed. 4829 // Called when the top-level V8 mutex is destroyed.
4828 void Bootstrapper::FreeThreadResources() { 4830 void Bootstrapper::FreeThreadResources() {
4829 DCHECK(!IsActive()); 4831 DCHECK(!IsActive());
4830 } 4832 }
4831 4833
4832 } // namespace internal 4834 } // namespace internal
4833 } // namespace v8 4835 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698