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 1793 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1804 NONE); | 1804 NONE); |
1805 PRIVATE_SYMBOL_LIST(EXPORT_PRIVATE_SYMBOL) | 1805 PRIVATE_SYMBOL_LIST(EXPORT_PRIVATE_SYMBOL) |
1806 #undef EXPORT_PRIVATE_SYMBOL | 1806 #undef EXPORT_PRIVATE_SYMBOL |
1807 | 1807 |
1808 #define EXPORT_PUBLIC_SYMBOL(NAME, DESCRIPTION) \ | 1808 #define EXPORT_PUBLIC_SYMBOL(NAME, DESCRIPTION) \ |
1809 Handle<String> NAME##_name = \ | 1809 Handle<String> NAME##_name = \ |
1810 isolate->factory()->NewStringFromAsciiChecked(#NAME); \ | 1810 isolate->factory()->NewStringFromAsciiChecked(#NAME); \ |
1811 JSObject::AddProperty(container, NAME##_name, isolate->factory()->NAME(), \ | 1811 JSObject::AddProperty(container, NAME##_name, isolate->factory()->NAME(), \ |
1812 NONE); | 1812 NONE); |
1813 PUBLIC_SYMBOL_LIST(EXPORT_PUBLIC_SYMBOL) | 1813 PUBLIC_SYMBOL_LIST(EXPORT_PUBLIC_SYMBOL) |
| 1814 WELL_KNOWN_SYMBOL_LIST(EXPORT_PUBLIC_SYMBOL) |
1814 #undef EXPORT_PUBLIC_SYMBOL | 1815 #undef EXPORT_PUBLIC_SYMBOL |
1815 | 1816 |
1816 { | 1817 { |
1817 Handle<JSFunction> apply = InstallFunction( | 1818 Handle<JSFunction> apply = InstallFunction( |
1818 container, "reflect_apply", JS_OBJECT_TYPE, JSObject::kHeaderSize, | 1819 container, "reflect_apply", JS_OBJECT_TYPE, JSObject::kHeaderSize, |
1819 MaybeHandle<JSObject>(), Builtins::kReflectApply); | 1820 MaybeHandle<JSObject>(), Builtins::kReflectApply); |
1820 apply->shared()->set_internal_formal_parameter_count(3); | 1821 apply->shared()->set_internal_formal_parameter_count(3); |
1821 apply->shared()->set_length(3); | 1822 apply->shared()->set_length(3); |
1822 Handle<TypeFeedbackVector> feedback_vector = | 1823 Handle<TypeFeedbackVector> feedback_vector = |
1823 TypeFeedbackVector::CreatePushAppliedArgumentsVector(isolate); | 1824 TypeFeedbackVector::CreatePushAppliedArgumentsVector(isolate); |
(...skipping 1455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3279 } | 3280 } |
3280 | 3281 |
3281 | 3282 |
3282 // Called when the top-level V8 mutex is destroyed. | 3283 // Called when the top-level V8 mutex is destroyed. |
3283 void Bootstrapper::FreeThreadResources() { | 3284 void Bootstrapper::FreeThreadResources() { |
3284 DCHECK(!IsActive()); | 3285 DCHECK(!IsActive()); |
3285 } | 3286 } |
3286 | 3287 |
3287 } // namespace internal | 3288 } // namespace internal |
3288 } // namespace v8 | 3289 } // namespace v8 |
OLD | NEW |