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

Side by Side Diff: src/bootstrapper.cc

Issue 1518873004: [es6] Support Function name inference in variable declarations (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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 2095 matching lines...) Expand 10 before | Expand all | Expand 10 after
2106 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_default_parameters) 2106 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_default_parameters)
2107 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_destructuring_bind) 2107 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_destructuring_bind)
2108 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_destructuring_assignment) 2108 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_destructuring_assignment)
2109 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object_observe) 2109 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object_observe)
2110 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexps) 2110 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexps)
2111 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_unicode_regexps) 2111 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_unicode_regexps)
2112 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_completion) 2112 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_completion)
2113 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_tolength) 2113 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_tolength)
2114 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_do_expressions) 2114 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_do_expressions)
2115 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexp_lookbehind) 2115 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexp_lookbehind)
2116 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_function_name)
2116 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(promise_extra) 2117 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(promise_extra)
2117 2118
2118 2119
2119 void InstallPublicSymbol(Factory* factory, Handle<Context> native_context, 2120 void InstallPublicSymbol(Factory* factory, Handle<Context> native_context,
2120 const char* name, Handle<Symbol> value) { 2121 const char* name, Handle<Symbol> value) {
2121 Handle<JSGlobalObject> global( 2122 Handle<JSGlobalObject> global(
2122 JSGlobalObject::cast(native_context->global_object())); 2123 JSGlobalObject::cast(native_context->global_object()));
2123 Handle<String> symbol_string = factory->InternalizeUtf8String("Symbol"); 2124 Handle<String> symbol_string = factory->InternalizeUtf8String("Symbol");
2124 Handle<JSObject> symbol = Handle<JSObject>::cast( 2125 Handle<JSObject> symbol = Handle<JSObject>::cast(
2125 JSObject::GetProperty(global, symbol_string).ToHandleChecked()); 2126 JSObject::GetProperty(global, symbol_string).ToHandleChecked());
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after
2644 static const char* harmony_sharedarraybuffer_natives[] = { 2645 static const char* harmony_sharedarraybuffer_natives[] = {
2645 "native harmony-sharedarraybuffer.js", "native harmony-atomics.js", NULL}; 2646 "native harmony-sharedarraybuffer.js", "native harmony-atomics.js", NULL};
2646 static const char* harmony_concat_spreadable_natives[] = {nullptr}; 2647 static const char* harmony_concat_spreadable_natives[] = {nullptr};
2647 static const char* harmony_simd_natives[] = {"native harmony-simd.js", 2648 static const char* harmony_simd_natives[] = {"native harmony-simd.js",
2648 nullptr}; 2649 nullptr};
2649 static const char* harmony_tolength_natives[] = {nullptr}; 2650 static const char* harmony_tolength_natives[] = {nullptr};
2650 static const char* harmony_completion_natives[] = {nullptr}; 2651 static const char* harmony_completion_natives[] = {nullptr};
2651 static const char* harmony_do_expressions_natives[] = {nullptr}; 2652 static const char* harmony_do_expressions_natives[] = {nullptr};
2652 static const char* harmony_regexp_subclass_natives[] = {nullptr}; 2653 static const char* harmony_regexp_subclass_natives[] = {nullptr};
2653 static const char* harmony_regexp_lookbehind_natives[] = {nullptr}; 2654 static const char* harmony_regexp_lookbehind_natives[] = {nullptr};
2655 static const char* harmony_function_name_natives[] = {nullptr};
2654 static const char* promise_extra_natives[] = {"native promise-extra.js", 2656 static const char* promise_extra_natives[] = {"native promise-extra.js",
2655 nullptr}; 2657 nullptr};
2656 2658
2657 for (int i = ExperimentalNatives::GetDebuggerCount(); 2659 for (int i = ExperimentalNatives::GetDebuggerCount();
2658 i < ExperimentalNatives::GetBuiltinsCount(); i++) { 2660 i < ExperimentalNatives::GetBuiltinsCount(); i++) {
2659 #define INSTALL_EXPERIMENTAL_NATIVES(id, desc) \ 2661 #define INSTALL_EXPERIMENTAL_NATIVES(id, desc) \
2660 if (FLAG_##id) { \ 2662 if (FLAG_##id) { \
2661 for (size_t j = 0; id##_natives[j] != NULL; j++) { \ 2663 for (size_t j = 0; id##_natives[j] != NULL; j++) { \
2662 Vector<const char> script_name = ExperimentalNatives::GetScriptName(i); \ 2664 Vector<const char> script_name = ExperimentalNatives::GetScriptName(i); \
2663 if (strncmp(script_name.start(), id##_natives[j], \ 2665 if (strncmp(script_name.start(), id##_natives[j], \
(...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after
3323 } 3325 }
3324 3326
3325 3327
3326 // Called when the top-level V8 mutex is destroyed. 3328 // Called when the top-level V8 mutex is destroyed.
3327 void Bootstrapper::FreeThreadResources() { 3329 void Bootstrapper::FreeThreadResources() {
3328 DCHECK(!IsActive()); 3330 DCHECK(!IsActive());
3329 } 3331 }
3330 3332
3331 } // namespace internal 3333 } // namespace internal
3332 } // namespace v8 3334 } // namespace v8
OLDNEW
« no previous file with comments | « src/ast/ast.h ('k') | src/flag-definitions.h » ('j') | test/test262/test262.status » ('J')

Powered by Google App Engine
This is Rietveld 408576698