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

Side by Side Diff: src/bootstrapper.cc

Issue 2620943002: [ESnext] Implement Object Rest (Closed)
Patch Set: Remove comment Created 3 years, 11 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 3427 matching lines...) Expand 10 before | Expand all | Expand 10 after
3438 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_function_sent) 3438 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_function_sent)
3439 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_tailcalls) 3439 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_tailcalls)
3440 #ifdef V8_I18N_SUPPORT 3440 #ifdef V8_I18N_SUPPORT
3441 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(datetime_format_to_parts) 3441 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(datetime_format_to_parts)
3442 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(icu_case_mapping) 3442 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(icu_case_mapping)
3443 #endif 3443 #endif
3444 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_async_await) 3444 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_async_await)
3445 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_restrictive_generators) 3445 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_restrictive_generators)
3446 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_trailing_commas) 3446 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_trailing_commas)
3447 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_class_fields) 3447 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_class_fields)
3448 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object_spread) 3448 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object_rest_spread)
3449 3449
3450 void InstallPublicSymbol(Factory* factory, Handle<Context> native_context, 3450 void InstallPublicSymbol(Factory* factory, Handle<Context> native_context,
3451 const char* name, Handle<Symbol> value) { 3451 const char* name, Handle<Symbol> value) {
3452 Handle<JSGlobalObject> global( 3452 Handle<JSGlobalObject> global(
3453 JSGlobalObject::cast(native_context->global_object())); 3453 JSGlobalObject::cast(native_context->global_object()));
3454 Handle<String> symbol_string = factory->InternalizeUtf8String("Symbol"); 3454 Handle<String> symbol_string = factory->InternalizeUtf8String("Symbol");
3455 Handle<JSObject> symbol = Handle<JSObject>::cast( 3455 Handle<JSObject> symbol = Handle<JSObject>::cast(
3456 JSObject::GetProperty(global, symbol_string).ToHandleChecked()); 3456 JSObject::GetProperty(global, symbol_string).ToHandleChecked());
3457 Handle<String> name_string = factory->InternalizeUtf8String(name); 3457 Handle<String> name_string = factory->InternalizeUtf8String(name);
3458 PropertyAttributes attributes = 3458 PropertyAttributes attributes =
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
3998 #ifdef V8_I18N_SUPPORT 3998 #ifdef V8_I18N_SUPPORT
3999 static const char* icu_case_mapping_natives[] = {"native icu-case-mapping.js", 3999 static const char* icu_case_mapping_natives[] = {"native icu-case-mapping.js",
4000 nullptr}; 4000 nullptr};
4001 static const char* datetime_format_to_parts_natives[] = { 4001 static const char* datetime_format_to_parts_natives[] = {
4002 "native datetime-format-to-parts.js", nullptr}; 4002 "native datetime-format-to-parts.js", nullptr};
4003 #endif 4003 #endif
4004 static const char* harmony_async_await_natives[] = {nullptr}; 4004 static const char* harmony_async_await_natives[] = {nullptr};
4005 static const char* harmony_restrictive_generators_natives[] = {nullptr}; 4005 static const char* harmony_restrictive_generators_natives[] = {nullptr};
4006 static const char* harmony_trailing_commas_natives[] = {nullptr}; 4006 static const char* harmony_trailing_commas_natives[] = {nullptr};
4007 static const char* harmony_class_fields_natives[] = {nullptr}; 4007 static const char* harmony_class_fields_natives[] = {nullptr};
4008 static const char* harmony_object_spread_natives[] = {nullptr}; 4008 static const char* harmony_object_rest_spread_natives[] = {nullptr};
4009 4009
4010 for (int i = ExperimentalNatives::GetDebuggerCount(); 4010 for (int i = ExperimentalNatives::GetDebuggerCount();
4011 i < ExperimentalNatives::GetBuiltinsCount(); i++) { 4011 i < ExperimentalNatives::GetBuiltinsCount(); i++) {
4012 #define INSTALL_EXPERIMENTAL_NATIVES(id, desc) \ 4012 #define INSTALL_EXPERIMENTAL_NATIVES(id, desc) \
4013 if (FLAG_##id) { \ 4013 if (FLAG_##id) { \
4014 for (size_t j = 0; id##_natives[j] != NULL; j++) { \ 4014 for (size_t j = 0; id##_natives[j] != NULL; j++) { \
4015 Vector<const char> script_name = ExperimentalNatives::GetScriptName(i); \ 4015 Vector<const char> script_name = ExperimentalNatives::GetScriptName(i); \
4016 if (strncmp(script_name.start(), id##_natives[j], \ 4016 if (strncmp(script_name.start(), id##_natives[j], \
4017 script_name.length()) == 0) { \ 4017 script_name.length()) == 0) { \
4018 if (!Bootstrapper::CompileExperimentalBuiltin(isolate(), i)) { \ 4018 if (!Bootstrapper::CompileExperimentalBuiltin(isolate(), i)) { \
(...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after
4742 } 4742 }
4743 4743
4744 4744
4745 // Called when the top-level V8 mutex is destroyed. 4745 // Called when the top-level V8 mutex is destroyed.
4746 void Bootstrapper::FreeThreadResources() { 4746 void Bootstrapper::FreeThreadResources() {
4747 DCHECK(!IsActive()); 4747 DCHECK(!IsActive());
4748 } 4748 }
4749 4749
4750 } // namespace internal 4750 } // namespace internal
4751 } // namespace v8 4751 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698