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

Side by Side Diff: src/bootstrapper.cc

Issue 2665513002: [parser] Lift template literal invalid escape restriction (Closed)
Patch Set: add test 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') | src/parsing/parser-base.h » ('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/ieee754.h" 9 #include "src/base/ieee754.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 3508 matching lines...) Expand 10 before | Expand all | Expand 10 after
3519 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexp_named_captures) 3519 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexp_named_captures)
3520 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexp_property) 3520 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexp_property)
3521 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_function_sent) 3521 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_function_sent)
3522 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_tailcalls) 3522 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_tailcalls)
3523 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_restrictive_generators) 3523 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_restrictive_generators)
3524 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_trailing_commas) 3524 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_trailing_commas)
3525 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_function_tostring) 3525 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_function_tostring)
3526 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_class_fields) 3526 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_class_fields)
3527 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object_rest_spread) 3527 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object_rest_spread)
3528 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_dynamic_import) 3528 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_dynamic_import)
3529 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_template_escapes)
3529 3530
3530 void InstallPublicSymbol(Factory* factory, Handle<Context> native_context, 3531 void InstallPublicSymbol(Factory* factory, Handle<Context> native_context,
3531 const char* name, Handle<Symbol> value) { 3532 const char* name, Handle<Symbol> value) {
3532 Handle<JSGlobalObject> global( 3533 Handle<JSGlobalObject> global(
3533 JSGlobalObject::cast(native_context->global_object())); 3534 JSGlobalObject::cast(native_context->global_object()));
3534 Handle<String> symbol_string = factory->InternalizeUtf8String("Symbol"); 3535 Handle<String> symbol_string = factory->InternalizeUtf8String("Symbol");
3535 Handle<JSObject> symbol = Handle<JSObject>::cast( 3536 Handle<JSObject> symbol = Handle<JSObject>::cast(
3536 JSObject::GetProperty(global, symbol_string).ToHandleChecked()); 3537 JSObject::GetProperty(global, symbol_string).ToHandleChecked());
3537 Handle<String> name_string = factory->InternalizeUtf8String(name); 3538 Handle<String> name_string = factory->InternalizeUtf8String(name);
3538 PropertyAttributes attributes = 3539 PropertyAttributes attributes =
(...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after
4146 static const char* icu_case_mapping_natives[] = {nullptr}; 4147 static const char* icu_case_mapping_natives[] = {nullptr};
4147 static const char* datetime_format_to_parts_natives[] = {nullptr}; 4148 static const char* datetime_format_to_parts_natives[] = {nullptr};
4148 #endif 4149 #endif
4149 static const char* harmony_restrictive_generators_natives[] = {nullptr}; 4150 static const char* harmony_restrictive_generators_natives[] = {nullptr};
4150 static const char* harmony_trailing_commas_natives[] = {nullptr}; 4151 static const char* harmony_trailing_commas_natives[] = {nullptr};
4151 static const char* harmony_function_tostring_natives[] = {nullptr}; 4152 static const char* harmony_function_tostring_natives[] = {nullptr};
4152 static const char* harmony_class_fields_natives[] = {nullptr}; 4153 static const char* harmony_class_fields_natives[] = {nullptr};
4153 static const char* harmony_object_rest_spread_natives[] = {nullptr}; 4154 static const char* harmony_object_rest_spread_natives[] = {nullptr};
4154 static const char* harmony_async_iteration_natives[] = {nullptr}; 4155 static const char* harmony_async_iteration_natives[] = {nullptr};
4155 static const char* harmony_dynamic_import_natives[] = {nullptr}; 4156 static const char* harmony_dynamic_import_natives[] = {nullptr};
4157 static const char* harmony_template_escapes_natives[] = {nullptr};
4156 4158
4157 for (int i = ExperimentalNatives::GetDebuggerCount(); 4159 for (int i = ExperimentalNatives::GetDebuggerCount();
4158 i < ExperimentalNatives::GetBuiltinsCount(); i++) { 4160 i < ExperimentalNatives::GetBuiltinsCount(); i++) {
4159 #define INSTALL_EXPERIMENTAL_NATIVES(id, desc) \ 4161 #define INSTALL_EXPERIMENTAL_NATIVES(id, desc) \
4160 if (FLAG_##id) { \ 4162 if (FLAG_##id) { \
4161 for (size_t j = 0; id##_natives[j] != NULL; j++) { \ 4163 for (size_t j = 0; id##_natives[j] != NULL; j++) { \
4162 Vector<const char> script_name = ExperimentalNatives::GetScriptName(i); \ 4164 Vector<const char> script_name = ExperimentalNatives::GetScriptName(i); \
4163 if (strncmp(script_name.start(), id##_natives[j], \ 4165 if (strncmp(script_name.start(), id##_natives[j], \
4164 script_name.length()) == 0) { \ 4166 script_name.length()) == 0) { \
4165 if (!Bootstrapper::CompileExperimentalBuiltin(isolate(), i)) { \ 4167 if (!Bootstrapper::CompileExperimentalBuiltin(isolate(), i)) { \
(...skipping 735 matching lines...) Expand 10 before | Expand all | Expand 10 after
4901 } 4903 }
4902 4904
4903 4905
4904 // Called when the top-level V8 mutex is destroyed. 4906 // Called when the top-level V8 mutex is destroyed.
4905 void Bootstrapper::FreeThreadResources() { 4907 void Bootstrapper::FreeThreadResources() {
4906 DCHECK(!IsActive()); 4908 DCHECK(!IsActive());
4907 } 4909 }
4908 4910
4909 } // namespace internal 4911 } // namespace internal
4910 } // namespace v8 4912 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/flag-definitions.h » ('j') | src/parsing/parser-base.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698