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 1841543003: [esnext] implement frontend changes for async/await proposal (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase for dependent CLs Created 4 years, 7 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
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 2432 matching lines...) Expand 10 before | Expand all | Expand 10 after
2443 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexp_property) 2443 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexp_property)
2444 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_function_name) 2444 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_function_name)
2445 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_function_sent) 2445 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_function_sent)
2446 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(promise_extra) 2446 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(promise_extra)
2447 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_explicit_tailcalls) 2447 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_explicit_tailcalls)
2448 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_tailcalls) 2448 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_tailcalls)
2449 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_instanceof) 2449 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_instanceof)
2450 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_restrictive_declarations) 2450 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_restrictive_declarations)
2451 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_exponentiation_operator) 2451 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_exponentiation_operator)
2452 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_string_padding) 2452 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_string_padding)
2453 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_async_await)
2453 2454
2454 void InstallPublicSymbol(Factory* factory, Handle<Context> native_context, 2455 void InstallPublicSymbol(Factory* factory, Handle<Context> native_context,
2455 const char* name, Handle<Symbol> value) { 2456 const char* name, Handle<Symbol> value) {
2456 Handle<JSGlobalObject> global( 2457 Handle<JSGlobalObject> global(
2457 JSGlobalObject::cast(native_context->global_object())); 2458 JSGlobalObject::cast(native_context->global_object()));
2458 Handle<String> symbol_string = factory->InternalizeUtf8String("Symbol"); 2459 Handle<String> symbol_string = factory->InternalizeUtf8String("Symbol");
2459 Handle<JSObject> symbol = Handle<JSObject>::cast( 2460 Handle<JSObject> symbol = Handle<JSObject>::cast(
2460 JSObject::GetProperty(global, symbol_string).ToHandleChecked()); 2461 JSObject::GetProperty(global, symbol_string).ToHandleChecked());
2461 Handle<String> name_string = factory->InternalizeUtf8String(name); 2462 Handle<String> name_string = factory->InternalizeUtf8String(name);
2462 PropertyAttributes attributes = 2463 PropertyAttributes attributes =
(...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after
3011 static const char* harmony_function_sent_natives[] = {nullptr}; 3012 static const char* harmony_function_sent_natives[] = {nullptr};
3012 static const char* promise_extra_natives[] = {"native promise-extra.js", 3013 static const char* promise_extra_natives[] = {"native promise-extra.js",
3013 nullptr}; 3014 nullptr};
3014 static const char* harmony_object_values_entries_natives[] = {nullptr}; 3015 static const char* harmony_object_values_entries_natives[] = {nullptr};
3015 static const char* harmony_object_own_property_descriptors_natives[] = { 3016 static const char* harmony_object_own_property_descriptors_natives[] = {
3016 nullptr}; 3017 nullptr};
3017 static const char* harmony_array_prototype_values_natives[] = {nullptr}; 3018 static const char* harmony_array_prototype_values_natives[] = {nullptr};
3018 static const char* harmony_exponentiation_operator_natives[] = {nullptr}; 3019 static const char* harmony_exponentiation_operator_natives[] = {nullptr};
3019 static const char* harmony_string_padding_natives[] = { 3020 static const char* harmony_string_padding_natives[] = {
3020 "native harmony-string-padding.js", nullptr}; 3021 "native harmony-string-padding.js", nullptr};
3022 static const char* harmony_async_await_natives[] = {nullptr};
3021 3023
3022 for (int i = ExperimentalNatives::GetDebuggerCount(); 3024 for (int i = ExperimentalNatives::GetDebuggerCount();
3023 i < ExperimentalNatives::GetBuiltinsCount(); i++) { 3025 i < ExperimentalNatives::GetBuiltinsCount(); i++) {
3024 #define INSTALL_EXPERIMENTAL_NATIVES(id, desc) \ 3026 #define INSTALL_EXPERIMENTAL_NATIVES(id, desc) \
3025 if (FLAG_##id) { \ 3027 if (FLAG_##id) { \
3026 for (size_t j = 0; id##_natives[j] != NULL; j++) { \ 3028 for (size_t j = 0; id##_natives[j] != NULL; j++) { \
3027 Vector<const char> script_name = ExperimentalNatives::GetScriptName(i); \ 3029 Vector<const char> script_name = ExperimentalNatives::GetScriptName(i); \
3028 if (strncmp(script_name.start(), id##_natives[j], \ 3030 if (strncmp(script_name.start(), id##_natives[j], \
3029 script_name.length()) == 0) { \ 3031 script_name.length()) == 0) { \
3030 if (!Bootstrapper::CompileExperimentalBuiltin(isolate(), i)) { \ 3032 if (!Bootstrapper::CompileExperimentalBuiltin(isolate(), i)) { \
(...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after
3687 } 3689 }
3688 3690
3689 3691
3690 // Called when the top-level V8 mutex is destroyed. 3692 // Called when the top-level V8 mutex is destroyed.
3691 void Bootstrapper::FreeThreadResources() { 3693 void Bootstrapper::FreeThreadResources() {
3692 DCHECK(!IsActive()); 3694 DCHECK(!IsActive());
3693 } 3695 }
3694 3696
3695 } // namespace internal 3697 } // namespace internal
3696 } // namespace v8 3698 } // namespace v8
OLDNEW
« no previous file with comments | « src/ast/ast-value-factory.h ('k') | src/flag-definitions.h » ('j') | src/parsing/parser-base.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698