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

Side by Side Diff: src/bootstrapper.cc

Issue 1361403003: Implement ES6 completion semantics (--harmony-completion). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Proper rebase. Created 5 years, 2 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/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/utils/random-number-generator.h" 9 #include "src/base/utils/random-number-generator.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 1862 matching lines...) Expand 10 before | Expand all | Expand 10 after
1873 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_default_parameters) 1873 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_default_parameters)
1874 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_spread_calls) 1874 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_spread_calls)
1875 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_destructuring) 1875 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_destructuring)
1876 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object_observe) 1876 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object_observe)
1877 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_spread_arrays) 1877 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_spread_arrays)
1878 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_new_target) 1878 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_new_target)
1879 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_concat_spreadable) 1879 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_concat_spreadable)
1880 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexps) 1880 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexps)
1881 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_unicode_regexps) 1881 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_unicode_regexps)
1882 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_tostring) 1882 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_tostring)
1883 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_completion)
1883 1884
1884 1885
1885 void Genesis::InitializeGlobal_harmony_tolength() { 1886 void Genesis::InitializeGlobal_harmony_tolength() {
1886 Handle<JSObject> builtins(native_context()->builtins()); 1887 Handle<JSObject> builtins(native_context()->builtins());
1887 Handle<Object> flag(factory()->ToBoolean(FLAG_harmony_tolength)); 1888 Handle<Object> flag(factory()->ToBoolean(FLAG_harmony_tolength));
1888 Runtime::SetObjectProperty(isolate(), builtins, 1889 Runtime::SetObjectProperty(isolate(), builtins,
1889 factory()->harmony_tolength_string(), flag, 1890 factory()->harmony_tolength_string(), flag,
1890 STRICT).Assert(); 1891 STRICT).Assert();
1891 } 1892 }
1892 1893
(...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after
2599 "native harmony-object-observe.js", nullptr}; 2600 "native harmony-object-observe.js", nullptr};
2600 static const char* harmony_spread_arrays_natives[] = {nullptr}; 2601 static const char* harmony_spread_arrays_natives[] = {nullptr};
2601 static const char* harmony_sharedarraybuffer_natives[] = { 2602 static const char* harmony_sharedarraybuffer_natives[] = {
2602 "native harmony-sharedarraybuffer.js", "native harmony-atomics.js", NULL}; 2603 "native harmony-sharedarraybuffer.js", "native harmony-atomics.js", NULL};
2603 static const char* harmony_new_target_natives[] = {nullptr}; 2604 static const char* harmony_new_target_natives[] = {nullptr};
2604 static const char* harmony_concat_spreadable_natives[] = { 2605 static const char* harmony_concat_spreadable_natives[] = {
2605 "native harmony-concat-spreadable.js", nullptr}; 2606 "native harmony-concat-spreadable.js", nullptr};
2606 static const char* harmony_simd_natives[] = {"native harmony-simd.js", 2607 static const char* harmony_simd_natives[] = {"native harmony-simd.js",
2607 nullptr}; 2608 nullptr};
2608 static const char* harmony_tolength_natives[] = {nullptr}; 2609 static const char* harmony_tolength_natives[] = {nullptr};
2610 static const char* harmony_completion_natives[] = {nullptr};
2609 2611
2610 for (int i = ExperimentalNatives::GetDebuggerCount(); 2612 for (int i = ExperimentalNatives::GetDebuggerCount();
2611 i < ExperimentalNatives::GetBuiltinsCount(); i++) { 2613 i < ExperimentalNatives::GetBuiltinsCount(); i++) {
2612 #define INSTALL_EXPERIMENTAL_NATIVES(id, desc) \ 2614 #define INSTALL_EXPERIMENTAL_NATIVES(id, desc) \
2613 if (FLAG_##id) { \ 2615 if (FLAG_##id) { \
2614 for (size_t j = 0; id##_natives[j] != NULL; j++) { \ 2616 for (size_t j = 0; id##_natives[j] != NULL; j++) { \
2615 Vector<const char> script_name = ExperimentalNatives::GetScriptName(i); \ 2617 Vector<const char> script_name = ExperimentalNatives::GetScriptName(i); \
2616 if (strncmp(script_name.start(), id##_natives[j], \ 2618 if (strncmp(script_name.start(), id##_natives[j], \
2617 script_name.length()) == 0) { \ 2619 script_name.length()) == 0) { \
2618 if (!Bootstrapper::CompileExperimentalBuiltin(isolate(), i)) { \ 2620 if (!Bootstrapper::CompileExperimentalBuiltin(isolate(), i)) { \
(...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after
3298 } 3300 }
3299 3301
3300 3302
3301 // Called when the top-level V8 mutex is destroyed. 3303 // Called when the top-level V8 mutex is destroyed.
3302 void Bootstrapper::FreeThreadResources() { 3304 void Bootstrapper::FreeThreadResources() {
3303 DCHECK(!IsActive()); 3305 DCHECK(!IsActive());
3304 } 3306 }
3305 3307
3306 } // namespace internal 3308 } // namespace internal
3307 } // namespace v8 3309 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698