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

Side by Side Diff: src/bootstrapper.cc

Issue 2156303002: Implement new Function.prototype.toString and fix CreateDynamicFunction parsing (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: add DCHECK for the name anonymous 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
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 3514 matching lines...) Expand 10 before | Expand all | Expand 10 after
3525 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexp_named_captures) 3525 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexp_named_captures)
3526 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexp_property) 3526 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexp_property)
3527 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_function_sent) 3527 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_function_sent)
3528 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_tailcalls) 3528 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_tailcalls)
3529 #ifdef V8_I18N_SUPPORT 3529 #ifdef V8_I18N_SUPPORT
3530 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(datetime_format_to_parts) 3530 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(datetime_format_to_parts)
3531 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(icu_case_mapping) 3531 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(icu_case_mapping)
3532 #endif 3532 #endif
3533 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_restrictive_generators) 3533 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_restrictive_generators)
3534 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_trailing_commas) 3534 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_trailing_commas)
3535 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_function_tostring)
3535 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_class_fields) 3536 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_class_fields)
3536 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object_rest_spread) 3537 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object_rest_spread)
3537 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_dynamic_import) 3538 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_dynamic_import)
3538 3539
3539 void InstallPublicSymbol(Factory* factory, Handle<Context> native_context, 3540 void InstallPublicSymbol(Factory* factory, Handle<Context> native_context,
3540 const char* name, Handle<Symbol> value) { 3541 const char* name, Handle<Symbol> value) {
3541 Handle<JSGlobalObject> global( 3542 Handle<JSGlobalObject> global(
3542 JSGlobalObject::cast(native_context->global_object())); 3543 JSGlobalObject::cast(native_context->global_object()));
3543 Handle<String> symbol_string = factory->InternalizeUtf8String("Symbol"); 3544 Handle<String> symbol_string = factory->InternalizeUtf8String("Symbol");
3544 Handle<JSObject> symbol = Handle<JSObject>::cast( 3545 Handle<JSObject> symbol = Handle<JSObject>::cast(
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after
4117 static const char* harmony_function_sent_natives[] = {nullptr}; 4118 static const char* harmony_function_sent_natives[] = {nullptr};
4118 static const char* harmony_array_prototype_values_natives[] = {nullptr}; 4119 static const char* harmony_array_prototype_values_natives[] = {nullptr};
4119 #ifdef V8_I18N_SUPPORT 4120 #ifdef V8_I18N_SUPPORT
4120 static const char* icu_case_mapping_natives[] = {"native icu-case-mapping.js", 4121 static const char* icu_case_mapping_natives[] = {"native icu-case-mapping.js",
4121 nullptr}; 4122 nullptr};
4122 static const char* datetime_format_to_parts_natives[] = { 4123 static const char* datetime_format_to_parts_natives[] = {
4123 "native datetime-format-to-parts.js", nullptr}; 4124 "native datetime-format-to-parts.js", nullptr};
4124 #endif 4125 #endif
4125 static const char* harmony_restrictive_generators_natives[] = {nullptr}; 4126 static const char* harmony_restrictive_generators_natives[] = {nullptr};
4126 static const char* harmony_trailing_commas_natives[] = {nullptr}; 4127 static const char* harmony_trailing_commas_natives[] = {nullptr};
4128 static const char* harmony_function_tostring_natives[] = {nullptr};
4127 static const char* harmony_class_fields_natives[] = {nullptr}; 4129 static const char* harmony_class_fields_natives[] = {nullptr};
4128 static const char* harmony_object_rest_spread_natives[] = {nullptr}; 4130 static const char* harmony_object_rest_spread_natives[] = {nullptr};
4129 static const char* harmony_async_iteration_natives[] = {nullptr}; 4131 static const char* harmony_async_iteration_natives[] = {nullptr};
4130 static const char* harmony_dynamic_import_natives[] = {nullptr}; 4132 static const char* harmony_dynamic_import_natives[] = {nullptr};
4131 4133
4132 for (int i = ExperimentalNatives::GetDebuggerCount(); 4134 for (int i = ExperimentalNatives::GetDebuggerCount();
4133 i < ExperimentalNatives::GetBuiltinsCount(); i++) { 4135 i < ExperimentalNatives::GetBuiltinsCount(); i++) {
4134 #define INSTALL_EXPERIMENTAL_NATIVES(id, desc) \ 4136 #define INSTALL_EXPERIMENTAL_NATIVES(id, desc) \
4135 if (FLAG_##id) { \ 4137 if (FLAG_##id) { \
4136 for (size_t j = 0; id##_natives[j] != NULL; j++) { \ 4138 for (size_t j = 0; id##_natives[j] != NULL; j++) { \
(...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after
4877 } 4879 }
4878 4880
4879 4881
4880 // Called when the top-level V8 mutex is destroyed. 4882 // Called when the top-level V8 mutex is destroyed.
4881 void Bootstrapper::FreeThreadResources() { 4883 void Bootstrapper::FreeThreadResources() {
4882 DCHECK(!IsActive()); 4884 DCHECK(!IsActive());
4883 } 4885 }
4884 4886
4885 } // namespace internal 4887 } // namespace internal
4886 } // namespace v8 4888 } // namespace v8
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/builtins/builtins-function.cc » ('j') | src/parsing/parser-base.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698