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

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: Created 4 years, 10 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/contexts.h » ('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 2303 matching lines...) Expand 10 before | Expand all | Expand 10 after
2314 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_destructuring_assignment) 2314 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_destructuring_assignment)
2315 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object_observe) 2315 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object_observe)
2316 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexps) 2316 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexps)
2317 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_unicode_regexps) 2317 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_unicode_regexps)
2318 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_do_expressions) 2318 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_do_expressions)
2319 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexp_lookbehind) 2319 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexp_lookbehind)
2320 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_function_name) 2320 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_function_name)
2321 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_function_sent) 2321 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_function_sent)
2322 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(promise_extra) 2322 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(promise_extra)
2323 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_tailcalls) 2323 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_tailcalls)
2324 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_exponentiation_operator)
2324 2325
2325 void InstallPublicSymbol(Factory* factory, Handle<Context> native_context, 2326 void InstallPublicSymbol(Factory* factory, Handle<Context> native_context,
2326 const char* name, Handle<Symbol> value) { 2327 const char* name, Handle<Symbol> value) {
2327 Handle<JSGlobalObject> global( 2328 Handle<JSGlobalObject> global(
2328 JSGlobalObject::cast(native_context->global_object())); 2329 JSGlobalObject::cast(native_context->global_object()));
2329 Handle<String> symbol_string = factory->InternalizeUtf8String("Symbol"); 2330 Handle<String> symbol_string = factory->InternalizeUtf8String("Symbol");
2330 Handle<JSObject> symbol = Handle<JSObject>::cast( 2331 Handle<JSObject> symbol = Handle<JSObject>::cast(
2331 JSObject::GetProperty(global, symbol_string).ToHandleChecked()); 2332 JSObject::GetProperty(global, symbol_string).ToHandleChecked());
2332 Handle<String> name_string = factory->InternalizeUtf8String(name); 2333 Handle<String> name_string = factory->InternalizeUtf8String(name);
2333 PropertyAttributes attributes = 2334 PropertyAttributes attributes =
(...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after
2961 static const char* harmony_do_expressions_natives[] = {nullptr}; 2962 static const char* harmony_do_expressions_natives[] = {nullptr};
2962 static const char* harmony_regexp_subclass_natives[] = {nullptr}; 2963 static const char* harmony_regexp_subclass_natives[] = {nullptr};
2963 static const char* harmony_regexp_lookbehind_natives[] = {nullptr}; 2964 static const char* harmony_regexp_lookbehind_natives[] = {nullptr};
2964 static const char* harmony_function_name_natives[] = {nullptr}; 2965 static const char* harmony_function_name_natives[] = {nullptr};
2965 static const char* harmony_function_sent_natives[] = {nullptr}; 2966 static const char* harmony_function_sent_natives[] = {nullptr};
2966 static const char* promise_extra_natives[] = {"native promise-extra.js", 2967 static const char* promise_extra_natives[] = {"native promise-extra.js",
2967 nullptr}; 2968 nullptr};
2968 static const char* harmony_object_values_entries_natives[] = {nullptr}; 2969 static const char* harmony_object_values_entries_natives[] = {nullptr};
2969 static const char* harmony_object_own_property_descriptors_natives[] = { 2970 static const char* harmony_object_own_property_descriptors_natives[] = {
2970 nullptr}; 2971 nullptr};
2972 static const char* harmony_exponentiation_operator_natives[] = {nullptr};
2971 2973
2972 for (int i = ExperimentalNatives::GetDebuggerCount(); 2974 for (int i = ExperimentalNatives::GetDebuggerCount();
2973 i < ExperimentalNatives::GetBuiltinsCount(); i++) { 2975 i < ExperimentalNatives::GetBuiltinsCount(); i++) {
2974 #define INSTALL_EXPERIMENTAL_NATIVES(id, desc) \ 2976 #define INSTALL_EXPERIMENTAL_NATIVES(id, desc) \
2975 if (FLAG_##id) { \ 2977 if (FLAG_##id) { \
2976 for (size_t j = 0; id##_natives[j] != NULL; j++) { \ 2978 for (size_t j = 0; id##_natives[j] != NULL; j++) { \
2977 Vector<const char> script_name = ExperimentalNatives::GetScriptName(i); \ 2979 Vector<const char> script_name = ExperimentalNatives::GetScriptName(i); \
2978 if (strncmp(script_name.start(), id##_natives[j], \ 2980 if (strncmp(script_name.start(), id##_natives[j], \
2979 script_name.length()) == 0) { \ 2981 script_name.length()) == 0) { \
2980 if (!Bootstrapper::CompileExperimentalBuiltin(isolate(), i)) { \ 2982 if (!Bootstrapper::CompileExperimentalBuiltin(isolate(), i)) { \
(...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after
3635 } 3637 }
3636 3638
3637 3639
3638 // Called when the top-level V8 mutex is destroyed. 3640 // Called when the top-level V8 mutex is destroyed.
3639 void Bootstrapper::FreeThreadResources() { 3641 void Bootstrapper::FreeThreadResources() {
3640 DCHECK(!IsActive()); 3642 DCHECK(!IsActive());
3641 } 3643 }
3642 3644
3643 } // namespace internal 3645 } // namespace internal
3644 } // namespace v8 3646 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/contexts.h » ('j') | src/contexts.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698