| Index: src/bootstrapper.cc
|
| diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
|
| index 7ee75b2cab0d01cc731308ae8f002333d35d7050..5d91247e96cca36a0c5b3da8341339f597d71823 100644
|
| --- a/src/bootstrapper.cc
|
| +++ b/src/bootstrapper.cc
|
| @@ -1796,6 +1796,8 @@ void Bootstrapper::ExportFromRuntime(Isolate* isolate,
|
| MaybeHandle<JSObject>(), Builtins::kReflectApply);
|
| apply->shared()->set_internal_formal_parameter_count(3);
|
| apply->shared()->set_length(3);
|
| + apply->shared()->set_feedback_vector(
|
| + *TypeFeedbackVector::CreatePushAppliedArgumentsVector(isolate));
|
| isolate->native_context()->set_reflect_apply(*apply);
|
|
|
| Handle<JSFunction> construct = InstallFunction(
|
| @@ -1803,6 +1805,8 @@ void Bootstrapper::ExportFromRuntime(Isolate* isolate,
|
| MaybeHandle<JSObject>(), Builtins::kReflectConstruct);
|
| construct->shared()->set_internal_formal_parameter_count(3);
|
| construct->shared()->set_length(2);
|
| + construct->shared()->set_feedback_vector(
|
| + *TypeFeedbackVector::CreatePushAppliedArgumentsVector(isolate));
|
| isolate->native_context()->set_reflect_construct(*construct);
|
| }
|
|
|
| @@ -2381,6 +2385,8 @@ bool Genesis::InstallNatives(ContextType context_type) {
|
| Handle<JSFunction> apply =
|
| InstallFunction(proto, "apply", JS_OBJECT_TYPE, JSObject::kHeaderSize,
|
| MaybeHandle<JSObject>(), Builtins::kFunctionApply);
|
| + apply->shared()->set_feedback_vector(
|
| + *TypeFeedbackVector::CreatePushAppliedArgumentsVector(isolate()));
|
|
|
| // Make sure that Function.prototype.call appears to be compiled.
|
| // The code will never be called, but inline caching for call will
|
|
|