Lines Matching refs:new_target
910 bool FastInitializeDerivedMap(Isolate* isolate, Handle<JSFunction> new_target,
914 if (!new_target->has_prototype_slot()) return false;
917 if (new_target->has_initial_map() &&
918 new_target->initial_map().GetConstructor() == *constructor) {
919 DCHECK(new_target->instance_prototype().IsJSReceiver());
929 if (!IsDerivedConstructor(new_target->shared().kind())) return false;
937 // if 1) the constructor is not in the prototype chain of new_target, or
943 JSFunction::CalculateExpectedNofProperties(isolate, new_target));
957 Handle<HeapObject> prototype(new_target->instance_prototype(), isolate);
958 JSFunction::SetInitialMap(isolate, new_target, map, prototype, constructor);
959 DCHECK(new_target->instance_prototype().IsJSReceiver());
970 Handle<JSReceiver> new_target) {
974 if (*new_target == *constructor) return constructor_initial_map;
980 if (new_target->IsJSFunction()) {
981 Handle<JSFunction> function = Handle<JSFunction>::cast(new_target);
992 if (new_target->IsJSFunction()) {
993 Handle<JSFunction> function = Handle<JSFunction>::cast(new_target);
1006 JSReceiver::GetProperty(isolate, new_target, prototype_string), Map);
1020 JSReceiver::GetFunctionRealm(new_target), Map);
1072 Handle<JSReceiver> new_target) {
1074 GetDerivedMap(isolate, constructor, new_target).ToHandleChecked();
1080 if (*new_target == context.get(ctor_index)) {