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

Side by Side Diff: src/bootstrapper.cc

Issue 2315733003: Class fields, part 1 (parsing and infrastructure) (Closed)
Patch Set: whitespace 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/scopes.h ('k') | src/compiler/ast-graph-builder.cc » ('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 2787 matching lines...) Expand 10 before | Expand all | Expand 10 after
2798 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_explicit_tailcalls) 2798 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_explicit_tailcalls)
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 2809
2809 void InstallPublicSymbol(Factory* factory, Handle<Context> native_context, 2810 void InstallPublicSymbol(Factory* factory, Handle<Context> native_context,
2810 const char* name, Handle<Symbol> value) { 2811 const char* name, Handle<Symbol> value) {
2811 Handle<JSGlobalObject> global( 2812 Handle<JSGlobalObject> global(
2812 JSGlobalObject::cast(native_context->global_object())); 2813 JSGlobalObject::cast(native_context->global_object()));
2813 Handle<String> symbol_string = factory->InternalizeUtf8String("Symbol"); 2814 Handle<String> symbol_string = factory->InternalizeUtf8String("Symbol");
2814 Handle<JSObject> symbol = Handle<JSObject>::cast( 2815 Handle<JSObject> symbol = Handle<JSObject>::cast(
2815 JSObject::GetProperty(global, symbol_string).ToHandleChecked()); 2816 JSObject::GetProperty(global, symbol_string).ToHandleChecked());
2816 Handle<String> name_string = factory->InternalizeUtf8String(name); 2817 Handle<String> name_string = factory->InternalizeUtf8String(name);
2817 PropertyAttributes attributes = 2818 PropertyAttributes attributes =
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after
3389 static const char* harmony_string_padding_natives[] = { 3390 static const char* harmony_string_padding_natives[] = {
3390 "native harmony-string-padding.js", nullptr}; 3391 "native harmony-string-padding.js", nullptr};
3391 #ifdef V8_I18N_SUPPORT 3392 #ifdef V8_I18N_SUPPORT
3392 static const char* icu_case_mapping_natives[] = {"native icu-case-mapping.js", 3393 static const char* icu_case_mapping_natives[] = {"native icu-case-mapping.js",
3393 nullptr}; 3394 nullptr};
3394 #endif 3395 #endif
3395 static const char* harmony_async_await_natives[] = { 3396 static const char* harmony_async_await_natives[] = {
3396 "native harmony-async-await.js", nullptr}; 3397 "native harmony-async-await.js", nullptr};
3397 static const char* harmony_restrictive_generators_natives[] = {nullptr}; 3398 static const char* harmony_restrictive_generators_natives[] = {nullptr};
3398 static const char* harmony_trailing_commas_natives[] = {nullptr}; 3399 static const char* harmony_trailing_commas_natives[] = {nullptr};
3400 static const char* harmony_class_fields_natives[] = {nullptr};
3399 3401
3400 for (int i = ExperimentalNatives::GetDebuggerCount(); 3402 for (int i = ExperimentalNatives::GetDebuggerCount();
3401 i < ExperimentalNatives::GetBuiltinsCount(); i++) { 3403 i < ExperimentalNatives::GetBuiltinsCount(); i++) {
3402 #define INSTALL_EXPERIMENTAL_NATIVES(id, desc) \ 3404 #define INSTALL_EXPERIMENTAL_NATIVES(id, desc) \
3403 if (FLAG_##id) { \ 3405 if (FLAG_##id) { \
3404 for (size_t j = 0; id##_natives[j] != NULL; j++) { \ 3406 for (size_t j = 0; id##_natives[j] != NULL; j++) { \
3405 Vector<const char> script_name = ExperimentalNatives::GetScriptName(i); \ 3407 Vector<const char> script_name = ExperimentalNatives::GetScriptName(i); \
3406 if (strncmp(script_name.start(), id##_natives[j], \ 3408 if (strncmp(script_name.start(), id##_natives[j], \
3407 script_name.length()) == 0) { \ 3409 script_name.length()) == 0) { \
3408 if (!Bootstrapper::CompileExperimentalBuiltin(isolate(), i)) { \ 3410 if (!Bootstrapper::CompileExperimentalBuiltin(isolate(), i)) { \
(...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after
4125 } 4127 }
4126 4128
4127 4129
4128 // Called when the top-level V8 mutex is destroyed. 4130 // Called when the top-level V8 mutex is destroyed.
4129 void Bootstrapper::FreeThreadResources() { 4131 void Bootstrapper::FreeThreadResources() {
4130 DCHECK(!IsActive()); 4132 DCHECK(!IsActive());
4131 } 4133 }
4132 4134
4133 } // namespace internal 4135 } // namespace internal
4134 } // namespace v8 4136 } // namespace v8
OLDNEW
« no previous file with comments | « src/ast/scopes.h ('k') | src/compiler/ast-graph-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698