| 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 1834 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1845 container, "reflect_construct", JS_OBJECT_TYPE, JSObject::kHeaderSize, | 1845 container, "reflect_construct", JS_OBJECT_TYPE, JSObject::kHeaderSize, |
| 1846 MaybeHandle<JSObject>(), Builtins::kReflectConstruct); | 1846 MaybeHandle<JSObject>(), Builtins::kReflectConstruct); |
| 1847 construct->shared()->set_internal_formal_parameter_count(3); | 1847 construct->shared()->set_internal_formal_parameter_count(3); |
| 1848 construct->shared()->set_length(2); | 1848 construct->shared()->set_length(2); |
| 1849 Handle<TypeFeedbackVector> feedback_vector = | 1849 Handle<TypeFeedbackVector> feedback_vector = |
| 1850 TypeFeedbackVector::CreatePushAppliedArgumentsVector(isolate); | 1850 TypeFeedbackVector::CreatePushAppliedArgumentsVector(isolate); |
| 1851 construct->shared()->set_feedback_vector(*feedback_vector); | 1851 construct->shared()->set_feedback_vector(*feedback_vector); |
| 1852 native_context->set_reflect_construct(*construct); | 1852 native_context->set_reflect_construct(*construct); |
| 1853 } | 1853 } |
| 1854 | 1854 |
| 1855 { |
| 1856 Handle<JSFunction> to_string = InstallFunction( |
| 1857 container, "object_to_string", JS_OBJECT_TYPE, JSObject::kHeaderSize, |
| 1858 MaybeHandle<JSObject>(), Builtins::kObjectProtoToString); |
| 1859 to_string->shared()->DontAdaptArguments(); |
| 1860 to_string->shared()->set_length(0); |
| 1861 native_context->set_object_to_string(*to_string); |
| 1862 } |
| 1863 |
| 1855 Handle<JSObject> iterator_prototype; | 1864 Handle<JSObject> iterator_prototype; |
| 1856 | 1865 |
| 1857 { | 1866 { |
| 1858 PrototypeIterator iter(native_context->generator_object_prototype_map()); | 1867 PrototypeIterator iter(native_context->generator_object_prototype_map()); |
| 1859 iter.Advance(); // Advance to the prototype of generator_object_prototype. | 1868 iter.Advance(); // Advance to the prototype of generator_object_prototype. |
| 1860 iterator_prototype = Handle<JSObject>(iter.GetCurrent<JSObject>()); | 1869 iterator_prototype = Handle<JSObject>(iter.GetCurrent<JSObject>()); |
| 1861 | 1870 |
| 1862 JSObject::AddProperty(container, | 1871 JSObject::AddProperty(container, |
| 1863 factory->InternalizeUtf8String("IteratorPrototype"), | 1872 factory->InternalizeUtf8String("IteratorPrototype"), |
| 1864 iterator_prototype, NONE); | 1873 iterator_prototype, NONE); |
| (...skipping 1445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3310 } | 3319 } |
| 3311 | 3320 |
| 3312 | 3321 |
| 3313 // Called when the top-level V8 mutex is destroyed. | 3322 // Called when the top-level V8 mutex is destroyed. |
| 3314 void Bootstrapper::FreeThreadResources() { | 3323 void Bootstrapper::FreeThreadResources() { |
| 3315 DCHECK(!IsActive()); | 3324 DCHECK(!IsActive()); |
| 3316 } | 3325 } |
| 3317 | 3326 |
| 3318 } // namespace internal | 3327 } // namespace internal |
| 3319 } // namespace v8 | 3328 } // namespace v8 |
| OLD | NEW |