OLD | NEW |
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 1861 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1872 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_default_parameters) | 1872 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_default_parameters) |
1873 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_spread_calls) | 1873 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_spread_calls) |
1874 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_destructuring) | 1874 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_destructuring) |
1875 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object_observe) | 1875 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object_observe) |
1876 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_spread_arrays) | 1876 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_spread_arrays) |
1877 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_new_target) | 1877 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_new_target) |
1878 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_concat_spreadable) | 1878 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_concat_spreadable) |
1879 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexps) | 1879 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexps) |
1880 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_unicode_regexps) | 1880 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_unicode_regexps) |
1881 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_tostring) | 1881 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_tostring) |
| 1882 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_completion) |
1882 | 1883 |
1883 | 1884 |
1884 void Genesis::InitializeGlobal_harmony_tolength() { | 1885 void Genesis::InitializeGlobal_harmony_tolength() { |
1885 Handle<JSObject> builtins(native_context()->builtins()); | 1886 Handle<JSObject> builtins(native_context()->builtins()); |
1886 Handle<Object> flag(factory()->ToBoolean(FLAG_harmony_tolength)); | 1887 Handle<Object> flag(factory()->ToBoolean(FLAG_harmony_tolength)); |
1887 Runtime::SetObjectProperty(isolate(), builtins, | 1888 Runtime::SetObjectProperty(isolate(), builtins, |
1888 factory()->harmony_tolength_string(), flag, | 1889 factory()->harmony_tolength_string(), flag, |
1889 STRICT).Assert(); | 1890 STRICT).Assert(); |
1890 } | 1891 } |
1891 | 1892 |
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2580 "native harmony-object-observe.js", nullptr}; | 2581 "native harmony-object-observe.js", nullptr}; |
2581 static const char* harmony_spread_arrays_natives[] = {nullptr}; | 2582 static const char* harmony_spread_arrays_natives[] = {nullptr}; |
2582 static const char* harmony_sharedarraybuffer_natives[] = { | 2583 static const char* harmony_sharedarraybuffer_natives[] = { |
2583 "native harmony-sharedarraybuffer.js", "native harmony-atomics.js", NULL}; | 2584 "native harmony-sharedarraybuffer.js", "native harmony-atomics.js", NULL}; |
2584 static const char* harmony_new_target_natives[] = {nullptr}; | 2585 static const char* harmony_new_target_natives[] = {nullptr}; |
2585 static const char* harmony_concat_spreadable_natives[] = { | 2586 static const char* harmony_concat_spreadable_natives[] = { |
2586 "native harmony-concat-spreadable.js", nullptr}; | 2587 "native harmony-concat-spreadable.js", nullptr}; |
2587 static const char* harmony_simd_natives[] = {"native harmony-simd.js", | 2588 static const char* harmony_simd_natives[] = {"native harmony-simd.js", |
2588 nullptr}; | 2589 nullptr}; |
2589 static const char* harmony_tolength_natives[] = {nullptr}; | 2590 static const char* harmony_tolength_natives[] = {nullptr}; |
| 2591 static const char* harmony_completion_natives[] = {nullptr}; |
2590 | 2592 |
2591 for (int i = ExperimentalNatives::GetDebuggerCount(); | 2593 for (int i = ExperimentalNatives::GetDebuggerCount(); |
2592 i < ExperimentalNatives::GetBuiltinsCount(); i++) { | 2594 i < ExperimentalNatives::GetBuiltinsCount(); i++) { |
2593 #define INSTALL_EXPERIMENTAL_NATIVES(id, desc) \ | 2595 #define INSTALL_EXPERIMENTAL_NATIVES(id, desc) \ |
2594 if (FLAG_##id) { \ | 2596 if (FLAG_##id) { \ |
2595 for (size_t j = 0; id##_natives[j] != NULL; j++) { \ | 2597 for (size_t j = 0; id##_natives[j] != NULL; j++) { \ |
2596 Vector<const char> script_name = ExperimentalNatives::GetScriptName(i); \ | 2598 Vector<const char> script_name = ExperimentalNatives::GetScriptName(i); \ |
2597 if (strncmp(script_name.start(), id##_natives[j], \ | 2599 if (strncmp(script_name.start(), id##_natives[j], \ |
2598 script_name.length()) == 0) { \ | 2600 script_name.length()) == 0) { \ |
2599 if (!Bootstrapper::CompileExperimentalBuiltin(isolate(), i)) { \ | 2601 if (!Bootstrapper::CompileExperimentalBuiltin(isolate(), i)) { \ |
(...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3279 } | 3281 } |
3280 | 3282 |
3281 | 3283 |
3282 // Called when the top-level V8 mutex is destroyed. | 3284 // Called when the top-level V8 mutex is destroyed. |
3283 void Bootstrapper::FreeThreadResources() { | 3285 void Bootstrapper::FreeThreadResources() { |
3284 DCHECK(!IsActive()); | 3286 DCHECK(!IsActive()); |
3285 } | 3287 } |
3286 | 3288 |
3287 } // namespace internal | 3289 } // namespace internal |
3288 } // namespace v8 | 3290 } // namespace v8 |
OLD | NEW |