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

Side by Side Diff: src/bootstrapper.cc

Issue 1700003002: [esnext] implement String padding proposal (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: remove ToObject Created 4 years, 9 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 | « BUILD.gn ('k') | 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 2354 matching lines...) Expand 10 before | Expand all | Expand 10 after
2365 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_iterator_close) 2365 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_iterator_close)
2366 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexp_lookbehind) 2366 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexp_lookbehind)
2367 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexp_property) 2367 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexp_property)
2368 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_function_name) 2368 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_function_name)
2369 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_function_sent) 2369 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_function_sent)
2370 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(promise_extra) 2370 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(promise_extra)
2371 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_tailcalls) 2371 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_tailcalls)
2372 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_instanceof) 2372 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_instanceof)
2373 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_restrictive_declarations) 2373 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_restrictive_declarations)
2374 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_exponentiation_operator) 2374 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_exponentiation_operator)
2375 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_string_padding)
2375 2376
2376 void InstallPublicSymbol(Factory* factory, Handle<Context> native_context, 2377 void InstallPublicSymbol(Factory* factory, Handle<Context> native_context,
2377 const char* name, Handle<Symbol> value) { 2378 const char* name, Handle<Symbol> value) {
2378 Handle<JSGlobalObject> global( 2379 Handle<JSGlobalObject> global(
2379 JSGlobalObject::cast(native_context->global_object())); 2380 JSGlobalObject::cast(native_context->global_object()));
2380 Handle<String> symbol_string = factory->InternalizeUtf8String("Symbol"); 2381 Handle<String> symbol_string = factory->InternalizeUtf8String("Symbol");
2381 Handle<JSObject> symbol = Handle<JSObject>::cast( 2382 Handle<JSObject> symbol = Handle<JSObject>::cast(
2382 JSObject::GetProperty(global, symbol_string).ToHandleChecked()); 2383 JSObject::GetProperty(global, symbol_string).ToHandleChecked());
2383 Handle<String> name_string = factory->InternalizeUtf8String(name); 2384 Handle<String> name_string = factory->InternalizeUtf8String(name);
2384 PropertyAttributes attributes = 2385 PropertyAttributes attributes =
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after
2948 static const char* harmony_regexp_property_natives[] = {nullptr}; 2949 static const char* harmony_regexp_property_natives[] = {nullptr};
2949 static const char* harmony_function_name_natives[] = {nullptr}; 2950 static const char* harmony_function_name_natives[] = {nullptr};
2950 static const char* harmony_function_sent_natives[] = {nullptr}; 2951 static const char* harmony_function_sent_natives[] = {nullptr};
2951 static const char* promise_extra_natives[] = {"native promise-extra.js", 2952 static const char* promise_extra_natives[] = {"native promise-extra.js",
2952 nullptr}; 2953 nullptr};
2953 static const char* harmony_object_values_entries_natives[] = {nullptr}; 2954 static const char* harmony_object_values_entries_natives[] = {nullptr};
2954 static const char* harmony_object_own_property_descriptors_natives[] = { 2955 static const char* harmony_object_own_property_descriptors_natives[] = {
2955 nullptr}; 2956 nullptr};
2956 static const char* harmony_array_prototype_values_natives[] = {nullptr}; 2957 static const char* harmony_array_prototype_values_natives[] = {nullptr};
2957 static const char* harmony_exponentiation_operator_natives[] = {nullptr}; 2958 static const char* harmony_exponentiation_operator_natives[] = {nullptr};
2959 static const char* harmony_string_padding_natives[] = {
2960 "native harmony-string-padding.js", nullptr};
2958 2961
2959 for (int i = ExperimentalNatives::GetDebuggerCount(); 2962 for (int i = ExperimentalNatives::GetDebuggerCount();
2960 i < ExperimentalNatives::GetBuiltinsCount(); i++) { 2963 i < ExperimentalNatives::GetBuiltinsCount(); i++) {
2961 #define INSTALL_EXPERIMENTAL_NATIVES(id, desc) \ 2964 #define INSTALL_EXPERIMENTAL_NATIVES(id, desc) \
2962 if (FLAG_##id) { \ 2965 if (FLAG_##id) { \
2963 for (size_t j = 0; id##_natives[j] != NULL; j++) { \ 2966 for (size_t j = 0; id##_natives[j] != NULL; j++) { \
2964 Vector<const char> script_name = ExperimentalNatives::GetScriptName(i); \ 2967 Vector<const char> script_name = ExperimentalNatives::GetScriptName(i); \
2965 if (strncmp(script_name.start(), id##_natives[j], \ 2968 if (strncmp(script_name.start(), id##_natives[j], \
2966 script_name.length()) == 0) { \ 2969 script_name.length()) == 0) { \
2967 if (!Bootstrapper::CompileExperimentalBuiltin(isolate(), i)) { \ 2970 if (!Bootstrapper::CompileExperimentalBuiltin(isolate(), i)) { \
(...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after
3621 } 3624 }
3622 3625
3623 3626
3624 // Called when the top-level V8 mutex is destroyed. 3627 // Called when the top-level V8 mutex is destroyed.
3625 void Bootstrapper::FreeThreadResources() { 3628 void Bootstrapper::FreeThreadResources() {
3626 DCHECK(!IsActive()); 3629 DCHECK(!IsActive());
3627 } 3630 }
3628 3631
3629 } // namespace internal 3632 } // namespace internal
3630 } // namespace v8 3633 } // namespace v8
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698