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

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.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 693 matching lines...) Expand 10 before | Expand all | Expand 10 after
4232 static const char* datetime_format_to_parts_natives[] = {nullptr}; 4233 static const char* datetime_format_to_parts_natives[] = {nullptr};
4233 #endif 4234 #endif
4234 static const char* harmony_restrictive_generators_natives[] = {nullptr}; 4235 static const char* harmony_restrictive_generators_natives[] = {nullptr};
4235 static const char* harmony_trailing_commas_natives[] = {nullptr}; 4236 static const char* harmony_trailing_commas_natives[] = {nullptr};
4236 static const char* harmony_function_tostring_natives[] = {nullptr}; 4237 static const char* harmony_function_tostring_natives[] = {nullptr};
4237 static const char* harmony_class_fields_natives[] = {nullptr}; 4238 static const char* harmony_class_fields_natives[] = {nullptr};
4238 static const char* harmony_object_rest_spread_natives[] = {nullptr}; 4239 static const char* harmony_object_rest_spread_natives[] = {nullptr};
4239 static const char* harmony_async_iteration_natives[] = {nullptr}; 4240 static const char* harmony_async_iteration_natives[] = {nullptr};
4240 static const char* harmony_dynamic_import_natives[] = {nullptr}; 4241 static const char* harmony_dynamic_import_natives[] = {nullptr};
4241 static const char* harmony_promise_finally_natives[] = {nullptr}; 4242 static const char* harmony_promise_finally_natives[] = {nullptr};
4243 static const char* harmony_template_escapes_natives[] = {nullptr};
4242 4244
4243 for (int i = ExperimentalNatives::GetDebuggerCount(); 4245 for (int i = ExperimentalNatives::GetDebuggerCount();
4244 i < ExperimentalNatives::GetBuiltinsCount(); i++) { 4246 i < ExperimentalNatives::GetBuiltinsCount(); i++) {
4245 #define INSTALL_EXPERIMENTAL_NATIVES(id, desc) \ 4247 #define INSTALL_EXPERIMENTAL_NATIVES(id, desc) \
4246 if (FLAG_##id) { \ 4248 if (FLAG_##id) { \
4247 for (size_t j = 0; id##_natives[j] != NULL; j++) { \ 4249 for (size_t j = 0; id##_natives[j] != NULL; j++) { \
4248 Vector<const char> script_name = ExperimentalNatives::GetScriptName(i); \ 4250 Vector<const char> script_name = ExperimentalNatives::GetScriptName(i); \
4249 if (strncmp(script_name.start(), id##_natives[j], \ 4251 if (strncmp(script_name.start(), id##_natives[j], \
4250 script_name.length()) == 0) { \ 4252 script_name.length()) == 0) { \
4251 if (!Bootstrapper::CompileExperimentalBuiltin(isolate(), i)) { \ 4253 if (!Bootstrapper::CompileExperimentalBuiltin(isolate(), i)) { \
(...skipping 735 matching lines...) Expand 10 before | Expand all | Expand 10 after
4987 } 4989 }
4988 4990
4989 4991
4990 // Called when the top-level V8 mutex is destroyed. 4992 // Called when the top-level V8 mutex is destroyed.
4991 void Bootstrapper::FreeThreadResources() { 4993 void Bootstrapper::FreeThreadResources() {
4992 DCHECK(!IsActive()); 4994 DCHECK(!IsActive());
4993 } 4995 }
4994 4996
4995 } // namespace internal 4997 } // namespace internal
4996 } // namespace v8 4998 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/flag-definitions.h » ('j') | src/parsing/scanner.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698