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

Side by Side Diff: src/bootstrapper.cc

Issue 1678303002: [es7] implement exponentiation operator proposal (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Try to make MSVC happy 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 | « no previous file | src/contexts.h » ('j') | src/parsing/parser.cc » ('J')
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 2260 matching lines...) Expand 10 before | Expand all | Expand 10 after
2271 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_do_expressions) 2271 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_do_expressions)
2272 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_iterator_close) 2272 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_iterator_close)
2273 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexp_lookbehind) 2273 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexp_lookbehind)
2274 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexp_property) 2274 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexp_property)
2275 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_function_name) 2275 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_function_name)
2276 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_function_sent) 2276 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_function_sent)
2277 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(promise_extra) 2277 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(promise_extra)
2278 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_tailcalls) 2278 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_tailcalls)
2279 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_instanceof) 2279 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_instanceof)
2280 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_restrictive_declarations) 2280 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_restrictive_declarations)
2281 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_exponentiation_operator)
2281 2282
2282 void InstallPublicSymbol(Factory* factory, Handle<Context> native_context, 2283 void InstallPublicSymbol(Factory* factory, Handle<Context> native_context,
2283 const char* name, Handle<Symbol> value) { 2284 const char* name, Handle<Symbol> value) {
2284 Handle<JSGlobalObject> global( 2285 Handle<JSGlobalObject> global(
2285 JSGlobalObject::cast(native_context->global_object())); 2286 JSGlobalObject::cast(native_context->global_object()));
2286 Handle<String> symbol_string = factory->InternalizeUtf8String("Symbol"); 2287 Handle<String> symbol_string = factory->InternalizeUtf8String("Symbol");
2287 Handle<JSObject> symbol = Handle<JSObject>::cast( 2288 Handle<JSObject> symbol = Handle<JSObject>::cast(
2288 JSObject::GetProperty(global, symbol_string).ToHandleChecked()); 2289 JSObject::GetProperty(global, symbol_string).ToHandleChecked());
2289 Handle<String> name_string = factory->InternalizeUtf8String(name); 2290 Handle<String> name_string = factory->InternalizeUtf8String(name);
2290 PropertyAttributes attributes = 2291 PropertyAttributes attributes =
(...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after
2982 static const char* harmony_restrictive_declarations_natives[] = {nullptr}; 2983 static const char* harmony_restrictive_declarations_natives[] = {nullptr};
2983 static const char* harmony_regexp_property_natives[] = {nullptr}; 2984 static const char* harmony_regexp_property_natives[] = {nullptr};
2984 static const char* harmony_function_name_natives[] = {nullptr}; 2985 static const char* harmony_function_name_natives[] = {nullptr};
2985 static const char* harmony_function_sent_natives[] = {nullptr}; 2986 static const char* harmony_function_sent_natives[] = {nullptr};
2986 static const char* promise_extra_natives[] = {"native promise-extra.js", 2987 static const char* promise_extra_natives[] = {"native promise-extra.js",
2987 nullptr}; 2988 nullptr};
2988 static const char* harmony_object_values_entries_natives[] = {nullptr}; 2989 static const char* harmony_object_values_entries_natives[] = {nullptr};
2989 static const char* harmony_object_own_property_descriptors_natives[] = { 2990 static const char* harmony_object_own_property_descriptors_natives[] = {
2990 nullptr}; 2991 nullptr};
2991 static const char* harmony_array_prototype_values_natives[] = {nullptr}; 2992 static const char* harmony_array_prototype_values_natives[] = {nullptr};
2993 static const char* harmony_exponentiation_operator_natives[] = {nullptr};
2992 2994
2993 for (int i = ExperimentalNatives::GetDebuggerCount(); 2995 for (int i = ExperimentalNatives::GetDebuggerCount();
2994 i < ExperimentalNatives::GetBuiltinsCount(); i++) { 2996 i < ExperimentalNatives::GetBuiltinsCount(); i++) {
2995 #define INSTALL_EXPERIMENTAL_NATIVES(id, desc) \ 2997 #define INSTALL_EXPERIMENTAL_NATIVES(id, desc) \
2996 if (FLAG_##id) { \ 2998 if (FLAG_##id) { \
2997 for (size_t j = 0; id##_natives[j] != NULL; j++) { \ 2999 for (size_t j = 0; id##_natives[j] != NULL; j++) { \
2998 Vector<const char> script_name = ExperimentalNatives::GetScriptName(i); \ 3000 Vector<const char> script_name = ExperimentalNatives::GetScriptName(i); \
2999 if (strncmp(script_name.start(), id##_natives[j], \ 3001 if (strncmp(script_name.start(), id##_natives[j], \
3000 script_name.length()) == 0) { \ 3002 script_name.length()) == 0) { \
3001 if (!Bootstrapper::CompileExperimentalBuiltin(isolate(), i)) { \ 3003 if (!Bootstrapper::CompileExperimentalBuiltin(isolate(), i)) { \
(...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after
3655 } 3657 }
3656 3658
3657 3659
3658 // Called when the top-level V8 mutex is destroyed. 3660 // Called when the top-level V8 mutex is destroyed.
3659 void Bootstrapper::FreeThreadResources() { 3661 void Bootstrapper::FreeThreadResources() {
3660 DCHECK(!IsActive()); 3662 DCHECK(!IsActive());
3661 } 3663 }
3662 3664
3663 } // namespace internal 3665 } // namespace internal
3664 } // namespace v8 3666 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/contexts.h » ('j') | src/parsing/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698