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