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

Side by Side Diff: src/bootstrapper.cc

Issue 2329703002: Private fields
Patch Set: some comments Created 4 years, 3 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 | « src/ast/ast-value-factory.h ('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/base/ieee754.h" 9 #include "src/base/ieee754.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 2788 matching lines...) Expand 10 before | Expand all | Expand 10 after
2799 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_tailcalls) 2799 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_tailcalls)
2800 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_restrictive_declarations) 2800 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_restrictive_declarations)
2801 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_string_padding) 2801 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_string_padding)
2802 #ifdef V8_I18N_SUPPORT 2802 #ifdef V8_I18N_SUPPORT
2803 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(icu_case_mapping) 2803 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(icu_case_mapping)
2804 #endif 2804 #endif
2805 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_async_await) 2805 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_async_await)
2806 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_restrictive_generators) 2806 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_restrictive_generators)
2807 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_trailing_commas) 2807 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_trailing_commas)
2808 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_class_fields) 2808 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_class_fields)
2809 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_private_class_fields)
2809 2810
2810 void InstallPublicSymbol(Factory* factory, Handle<Context> native_context, 2811 void InstallPublicSymbol(Factory* factory, Handle<Context> native_context,
2811 const char* name, Handle<Symbol> value) { 2812 const char* name, Handle<Symbol> value) {
2812 Handle<JSGlobalObject> global( 2813 Handle<JSGlobalObject> global(
2813 JSGlobalObject::cast(native_context->global_object())); 2814 JSGlobalObject::cast(native_context->global_object()));
2814 Handle<String> symbol_string = factory->InternalizeUtf8String("Symbol"); 2815 Handle<String> symbol_string = factory->InternalizeUtf8String("Symbol");
2815 Handle<JSObject> symbol = Handle<JSObject>::cast( 2816 Handle<JSObject> symbol = Handle<JSObject>::cast(
2816 JSObject::GetProperty(global, symbol_string).ToHandleChecked()); 2817 JSObject::GetProperty(global, symbol_string).ToHandleChecked());
2817 Handle<String> name_string = factory->InternalizeUtf8String(name); 2818 Handle<String> name_string = factory->InternalizeUtf8String(name);
2818 PropertyAttributes attributes = 2819 PropertyAttributes attributes =
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after
3391 "native harmony-string-padding.js", nullptr}; 3392 "native harmony-string-padding.js", nullptr};
3392 #ifdef V8_I18N_SUPPORT 3393 #ifdef V8_I18N_SUPPORT
3393 static const char* icu_case_mapping_natives[] = {"native icu-case-mapping.js", 3394 static const char* icu_case_mapping_natives[] = {"native icu-case-mapping.js",
3394 nullptr}; 3395 nullptr};
3395 #endif 3396 #endif
3396 static const char* harmony_async_await_natives[] = { 3397 static const char* harmony_async_await_natives[] = {
3397 "native harmony-async-await.js", nullptr}; 3398 "native harmony-async-await.js", nullptr};
3398 static const char* harmony_restrictive_generators_natives[] = {nullptr}; 3399 static const char* harmony_restrictive_generators_natives[] = {nullptr};
3399 static const char* harmony_trailing_commas_natives[] = {nullptr}; 3400 static const char* harmony_trailing_commas_natives[] = {nullptr};
3400 static const char* harmony_class_fields_natives[] = {nullptr}; 3401 static const char* harmony_class_fields_natives[] = {nullptr};
3402 static const char* harmony_private_class_fields_natives[] = {nullptr};
3401 3403
3402 for (int i = ExperimentalNatives::GetDebuggerCount(); 3404 for (int i = ExperimentalNatives::GetDebuggerCount();
3403 i < ExperimentalNatives::GetBuiltinsCount(); i++) { 3405 i < ExperimentalNatives::GetBuiltinsCount(); i++) {
3404 #define INSTALL_EXPERIMENTAL_NATIVES(id, desc) \ 3406 #define INSTALL_EXPERIMENTAL_NATIVES(id, desc) \
3405 if (FLAG_##id) { \ 3407 if (FLAG_##id) { \
3406 for (size_t j = 0; id##_natives[j] != NULL; j++) { \ 3408 for (size_t j = 0; id##_natives[j] != NULL; j++) { \
3407 Vector<const char> script_name = ExperimentalNatives::GetScriptName(i); \ 3409 Vector<const char> script_name = ExperimentalNatives::GetScriptName(i); \
3408 if (strncmp(script_name.start(), id##_natives[j], \ 3410 if (strncmp(script_name.start(), id##_natives[j], \
3409 script_name.length()) == 0) { \ 3411 script_name.length()) == 0) { \
3410 if (!Bootstrapper::CompileExperimentalBuiltin(isolate(), i)) { \ 3412 if (!Bootstrapper::CompileExperimentalBuiltin(isolate(), i)) { \
(...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after
4127 } 4129 }
4128 4130
4129 4131
4130 // Called when the top-level V8 mutex is destroyed. 4132 // Called when the top-level V8 mutex is destroyed.
4131 void Bootstrapper::FreeThreadResources() { 4133 void Bootstrapper::FreeThreadResources() {
4132 DCHECK(!IsActive()); 4134 DCHECK(!IsActive());
4133 } 4135 }
4134 4136
4135 } // namespace internal 4137 } // namespace internal
4136 } // namespace v8 4138 } // namespace v8
OLDNEW
« no previous file with comments | « src/ast/ast-value-factory.h ('k') | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698