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

Side by Side Diff: src/bootstrapper.cc

Issue 2665513002: [parser] Lift template literal invalid escape restriction (Closed)
Patch Set: address comments 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/scanner.cc » ('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 3513 matching lines...) Expand 10 before | Expand all | Expand 10 after
3524 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_tailcalls) 3524 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_tailcalls)
3525 #ifdef V8_I18N_SUPPORT 3525 #ifdef V8_I18N_SUPPORT
3526 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(datetime_format_to_parts) 3526 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(datetime_format_to_parts)
3527 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(icu_case_mapping) 3527 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(icu_case_mapping)
3528 #endif 3528 #endif
3529 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_restrictive_generators) 3529 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_restrictive_generators)
3530 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_trailing_commas) 3530 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_trailing_commas)
3531 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_class_fields) 3531 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_class_fields)
3532 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object_rest_spread) 3532 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object_rest_spread)
3533 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_dynamic_import) 3533 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_dynamic_import)
3534 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_template_escapes)
3534 3535
3535 void InstallPublicSymbol(Factory* factory, Handle<Context> native_context, 3536 void InstallPublicSymbol(Factory* factory, Handle<Context> native_context,
3536 const char* name, Handle<Symbol> value) { 3537 const char* name, Handle<Symbol> value) {
3537 Handle<JSGlobalObject> global( 3538 Handle<JSGlobalObject> global(
3538 JSGlobalObject::cast(native_context->global_object())); 3539 JSGlobalObject::cast(native_context->global_object()));
3539 Handle<String> symbol_string = factory->InternalizeUtf8String("Symbol"); 3540 Handle<String> symbol_string = factory->InternalizeUtf8String("Symbol");
3540 Handle<JSObject> symbol = Handle<JSObject>::cast( 3541 Handle<JSObject> symbol = Handle<JSObject>::cast(
3541 JSObject::GetProperty(global, symbol_string).ToHandleChecked()); 3542 JSObject::GetProperty(global, symbol_string).ToHandleChecked());
3542 Handle<String> name_string = factory->InternalizeUtf8String(name); 3543 Handle<String> name_string = factory->InternalizeUtf8String(name);
3543 PropertyAttributes attributes = 3544 PropertyAttributes attributes =
(...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after
4117 nullptr}; 4118 nullptr};
4118 static const char* datetime_format_to_parts_natives[] = { 4119 static const char* datetime_format_to_parts_natives[] = {
4119 "native datetime-format-to-parts.js", nullptr}; 4120 "native datetime-format-to-parts.js", nullptr};
4120 #endif 4121 #endif
4121 static const char* harmony_restrictive_generators_natives[] = {nullptr}; 4122 static const char* harmony_restrictive_generators_natives[] = {nullptr};
4122 static const char* harmony_trailing_commas_natives[] = {nullptr}; 4123 static const char* harmony_trailing_commas_natives[] = {nullptr};
4123 static const char* harmony_class_fields_natives[] = {nullptr}; 4124 static const char* harmony_class_fields_natives[] = {nullptr};
4124 static const char* harmony_object_rest_spread_natives[] = {nullptr}; 4125 static const char* harmony_object_rest_spread_natives[] = {nullptr};
4125 static const char* harmony_async_iteration_natives[] = {nullptr}; 4126 static const char* harmony_async_iteration_natives[] = {nullptr};
4126 static const char* harmony_dynamic_import_natives[] = {nullptr}; 4127 static const char* harmony_dynamic_import_natives[] = {nullptr};
4128 static const char* harmony_template_escapes_natives[] = {nullptr};
4127 4129
4128 for (int i = ExperimentalNatives::GetDebuggerCount(); 4130 for (int i = ExperimentalNatives::GetDebuggerCount();
4129 i < ExperimentalNatives::GetBuiltinsCount(); i++) { 4131 i < ExperimentalNatives::GetBuiltinsCount(); i++) {
4130 #define INSTALL_EXPERIMENTAL_NATIVES(id, desc) \ 4132 #define INSTALL_EXPERIMENTAL_NATIVES(id, desc) \
4131 if (FLAG_##id) { \ 4133 if (FLAG_##id) { \
4132 for (size_t j = 0; id##_natives[j] != NULL; j++) { \ 4134 for (size_t j = 0; id##_natives[j] != NULL; j++) { \
4133 Vector<const char> script_name = ExperimentalNatives::GetScriptName(i); \ 4135 Vector<const char> script_name = ExperimentalNatives::GetScriptName(i); \
4134 if (strncmp(script_name.start(), id##_natives[j], \ 4136 if (strncmp(script_name.start(), id##_natives[j], \
4135 script_name.length()) == 0) { \ 4137 script_name.length()) == 0) { \
4136 if (!Bootstrapper::CompileExperimentalBuiltin(isolate(), i)) { \ 4138 if (!Bootstrapper::CompileExperimentalBuiltin(isolate(), i)) { \
(...skipping 736 matching lines...) Expand 10 before | Expand all | Expand 10 after
4873 } 4875 }
4874 4876
4875 4877
4876 // Called when the top-level V8 mutex is destroyed. 4878 // Called when the top-level V8 mutex is destroyed.
4877 void Bootstrapper::FreeThreadResources() { 4879 void Bootstrapper::FreeThreadResources() {
4878 DCHECK(!IsActive()); 4880 DCHECK(!IsActive());
4879 } 4881 }
4880 4882
4881 } // namespace internal 4883 } // namespace internal
4882 } // namespace v8 4884 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/flag-definitions.h » ('j') | src/parsing/scanner.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698