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

Side by Side Diff: src/bootstrapper.cc

Issue 1995863002: Improve strictness of Annex B 3.3 for generators and async functions (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix mixed duplicates Created 4 years, 6 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/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/extensions/externalize-string-extension.h" 10 #include "src/extensions/externalize-string-extension.h"
(...skipping 2505 matching lines...) Expand 10 before | Expand all | Expand 10 after
2516 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_explicit_tailcalls) 2516 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_explicit_tailcalls)
2517 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_tailcalls) 2517 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_tailcalls)
2518 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_instanceof) 2518 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_instanceof)
2519 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_restrictive_declarations) 2519 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_restrictive_declarations)
2520 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_exponentiation_operator) 2520 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_exponentiation_operator)
2521 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_string_padding) 2521 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_string_padding)
2522 #ifdef V8_I18N_SUPPORT 2522 #ifdef V8_I18N_SUPPORT
2523 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(icu_case_mapping) 2523 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(icu_case_mapping)
2524 #endif 2524 #endif
2525 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_async_await) 2525 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_async_await)
2526 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_restrictive_generators)
2526 2527
2527 void InstallPublicSymbol(Factory* factory, Handle<Context> native_context, 2528 void InstallPublicSymbol(Factory* factory, Handle<Context> native_context,
2528 const char* name, Handle<Symbol> value) { 2529 const char* name, Handle<Symbol> value) {
2529 Handle<JSGlobalObject> global( 2530 Handle<JSGlobalObject> global(
2530 JSGlobalObject::cast(native_context->global_object())); 2531 JSGlobalObject::cast(native_context->global_object()));
2531 Handle<String> symbol_string = factory->InternalizeUtf8String("Symbol"); 2532 Handle<String> symbol_string = factory->InternalizeUtf8String("Symbol");
2532 Handle<JSObject> symbol = Handle<JSObject>::cast( 2533 Handle<JSObject> symbol = Handle<JSObject>::cast(
2533 JSObject::GetProperty(global, symbol_string).ToHandleChecked()); 2534 JSObject::GetProperty(global, symbol_string).ToHandleChecked());
2534 Handle<String> name_string = factory->InternalizeUtf8String(name); 2535 Handle<String> name_string = factory->InternalizeUtf8String(name);
2535 PropertyAttributes attributes = 2536 PropertyAttributes attributes =
(...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after
3109 static const char* harmony_array_prototype_values_natives[] = {nullptr}; 3110 static const char* harmony_array_prototype_values_natives[] = {nullptr};
3110 static const char* harmony_exponentiation_operator_natives[] = {nullptr}; 3111 static const char* harmony_exponentiation_operator_natives[] = {nullptr};
3111 static const char* harmony_string_padding_natives[] = { 3112 static const char* harmony_string_padding_natives[] = {
3112 "native harmony-string-padding.js", nullptr}; 3113 "native harmony-string-padding.js", nullptr};
3113 #ifdef V8_I18N_SUPPORT 3114 #ifdef V8_I18N_SUPPORT
3114 static const char* icu_case_mapping_natives[] = {"native icu-case-mapping.js", 3115 static const char* icu_case_mapping_natives[] = {"native icu-case-mapping.js",
3115 nullptr}; 3116 nullptr};
3116 #endif 3117 #endif
3117 static const char* harmony_async_await_natives[] = { 3118 static const char* harmony_async_await_natives[] = {
3118 "native harmony-async-await.js", nullptr}; 3119 "native harmony-async-await.js", nullptr};
3120 static const char* harmony_restrictive_generators_natives[] = {nullptr};
3119 3121
3120 for (int i = ExperimentalNatives::GetDebuggerCount(); 3122 for (int i = ExperimentalNatives::GetDebuggerCount();
3121 i < ExperimentalNatives::GetBuiltinsCount(); i++) { 3123 i < ExperimentalNatives::GetBuiltinsCount(); i++) {
3122 #define INSTALL_EXPERIMENTAL_NATIVES(id, desc) \ 3124 #define INSTALL_EXPERIMENTAL_NATIVES(id, desc) \
3123 if (FLAG_##id) { \ 3125 if (FLAG_##id) { \
3124 for (size_t j = 0; id##_natives[j] != NULL; j++) { \ 3126 for (size_t j = 0; id##_natives[j] != NULL; j++) { \
3125 Vector<const char> script_name = ExperimentalNatives::GetScriptName(i); \ 3127 Vector<const char> script_name = ExperimentalNatives::GetScriptName(i); \
3126 if (strncmp(script_name.start(), id##_natives[j], \ 3128 if (strncmp(script_name.start(), id##_natives[j], \
3127 script_name.length()) == 0) { \ 3129 script_name.length()) == 0) { \
3128 if (!Bootstrapper::CompileExperimentalBuiltin(isolate(), i)) { \ 3130 if (!Bootstrapper::CompileExperimentalBuiltin(isolate(), i)) { \
(...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after
3787 } 3789 }
3788 3790
3789 3791
3790 // Called when the top-level V8 mutex is destroyed. 3792 // Called when the top-level V8 mutex is destroyed.
3791 void Bootstrapper::FreeThreadResources() { 3793 void Bootstrapper::FreeThreadResources() {
3792 DCHECK(!IsActive()); 3794 DCHECK(!IsActive());
3793 } 3795 }
3794 3796
3795 } // namespace internal 3797 } // namespace internal
3796 } // namespace v8 3798 } // 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