| 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/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 2031 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2042 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_sloppy_let) | 2042 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_sloppy_let) |
| 2043 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_rest_parameters) | 2043 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_rest_parameters) |
| 2044 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_default_parameters) | 2044 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_default_parameters) |
| 2045 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_destructuring) | 2045 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_destructuring) |
| 2046 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object_observe) | 2046 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_object_observe) |
| 2047 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexps) | 2047 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexps) |
| 2048 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_unicode_regexps) | 2048 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_unicode_regexps) |
| 2049 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_completion) | 2049 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_completion) |
| 2050 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_tolength) | 2050 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_tolength) |
| 2051 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_do_expressions) | 2051 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_do_expressions) |
| 2052 EMPTY_INITIALIZE_GLOBAL_FOR_FEATURE(harmony_regexp_lookbehind) |
| 2052 | 2053 |
| 2053 | 2054 |
| 2054 static void SimpleInstallFunction(Handle<JSObject>& base, const char* name, | 2055 static void SimpleInstallFunction(Handle<JSObject>& base, const char* name, |
| 2055 Builtins::Name call, int len, bool adapt) { | 2056 Builtins::Name call, int len, bool adapt) { |
| 2056 Handle<JSFunction> fun = | 2057 Handle<JSFunction> fun = |
| 2057 InstallFunction(base, name, JS_OBJECT_TYPE, JSObject::kHeaderSize, | 2058 InstallFunction(base, name, JS_OBJECT_TYPE, JSObject::kHeaderSize, |
| 2058 MaybeHandle<JSObject>(), call); | 2059 MaybeHandle<JSObject>(), call); |
| 2059 if (adapt) { | 2060 if (adapt) { |
| 2060 fun->shared()->set_internal_formal_parameter_count(len); | 2061 fun->shared()->set_internal_formal_parameter_count(len); |
| 2061 } else { | 2062 } else { |
| (...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2554 "native harmony-object-observe.js", nullptr}; | 2555 "native harmony-object-observe.js", nullptr}; |
| 2555 static const char* harmony_sharedarraybuffer_natives[] = { | 2556 static const char* harmony_sharedarraybuffer_natives[] = { |
| 2556 "native harmony-sharedarraybuffer.js", "native harmony-atomics.js", NULL}; | 2557 "native harmony-sharedarraybuffer.js", "native harmony-atomics.js", NULL}; |
| 2557 static const char* harmony_concat_spreadable_natives[] = {nullptr}; | 2558 static const char* harmony_concat_spreadable_natives[] = {nullptr}; |
| 2558 static const char* harmony_simd_natives[] = {"native harmony-simd.js", | 2559 static const char* harmony_simd_natives[] = {"native harmony-simd.js", |
| 2559 nullptr}; | 2560 nullptr}; |
| 2560 static const char* harmony_tolength_natives[] = {nullptr}; | 2561 static const char* harmony_tolength_natives[] = {nullptr}; |
| 2561 static const char* harmony_completion_natives[] = {nullptr}; | 2562 static const char* harmony_completion_natives[] = {nullptr}; |
| 2562 static const char* harmony_do_expressions_natives[] = {nullptr}; | 2563 static const char* harmony_do_expressions_natives[] = {nullptr}; |
| 2563 static const char* harmony_regexp_subclass_natives[] = {nullptr}; | 2564 static const char* harmony_regexp_subclass_natives[] = {nullptr}; |
| 2565 static const char* harmony_regexp_lookbehind_natives[] = {nullptr}; |
| 2564 | 2566 |
| 2565 for (int i = ExperimentalNatives::GetDebuggerCount(); | 2567 for (int i = ExperimentalNatives::GetDebuggerCount(); |
| 2566 i < ExperimentalNatives::GetBuiltinsCount(); i++) { | 2568 i < ExperimentalNatives::GetBuiltinsCount(); i++) { |
| 2567 #define INSTALL_EXPERIMENTAL_NATIVES(id, desc) \ | 2569 #define INSTALL_EXPERIMENTAL_NATIVES(id, desc) \ |
| 2568 if (FLAG_##id) { \ | 2570 if (FLAG_##id) { \ |
| 2569 for (size_t j = 0; id##_natives[j] != NULL; j++) { \ | 2571 for (size_t j = 0; id##_natives[j] != NULL; j++) { \ |
| 2570 Vector<const char> script_name = ExperimentalNatives::GetScriptName(i); \ | 2572 Vector<const char> script_name = ExperimentalNatives::GetScriptName(i); \ |
| 2571 if (strncmp(script_name.start(), id##_natives[j], \ | 2573 if (strncmp(script_name.start(), id##_natives[j], \ |
| 2572 script_name.length()) == 0) { \ | 2574 script_name.length()) == 0) { \ |
| 2573 if (!Bootstrapper::CompileExperimentalBuiltin(isolate(), i)) { \ | 2575 if (!Bootstrapper::CompileExperimentalBuiltin(isolate(), i)) { \ |
| (...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3242 } | 3244 } |
| 3243 | 3245 |
| 3244 | 3246 |
| 3245 // Called when the top-level V8 mutex is destroyed. | 3247 // Called when the top-level V8 mutex is destroyed. |
| 3246 void Bootstrapper::FreeThreadResources() { | 3248 void Bootstrapper::FreeThreadResources() { |
| 3247 DCHECK(!IsActive()); | 3249 DCHECK(!IsActive()); |
| 3248 } | 3250 } |
| 3249 | 3251 |
| 3250 } // namespace internal | 3252 } // namespace internal |
| 3251 } // namespace v8 | 3253 } // namespace v8 |
| OLD | NEW |