Lines Matching defs:constructor

555   // constructor on the map provides the most accurate name.
562 Handle<JSFunction> constructor =
565 SharedFunctionInfo::DebugName(handle(constructor->shared(), isolate));
568 return std::make_pair(constructor, name);
592 // B.prototype.constructor = B;
594 // The constructor name for `B.prototype` must yield "A", so we don't take
595 // "constructor" into account for the receiver itself, but only starting
604 auto constructor = Handle<JSFunction>::cast(maybe_constructor);
606 handle(constructor->shared(), isolate));
610 return std::make_pair(constructor, name);
635 // Externals are JSObjects with null as a constructor.
637 Object constructor = receiver.map().GetConstructor();
639 if (constructor.IsJSFunction()) {
640 function = JSFunction::cast(constructor);
641 } else if (constructor.IsFunctionTemplateInfo()) {
2293 MaybeHandle<JSObject> JSObject::New(Handle<JSFunction> constructor,
2297 // - a subclass of constructor,
2298 // - a proxy wrapper around constructor, or
2299 // - the constructor itself.
2300 // If called through Reflect.construct, it's guaranteed to be a constructor.
2301 Isolate* const isolate = constructor->GetIsolate();
2302 DCHECK(constructor->IsConstructor());
2304 DCHECK(!constructor->has_initial_map() ||
2306 constructor->initial_map().instance_type()));
2311 JSFunction::GetDerivedMap(isolate, constructor, new_target), JSObject);
2818 Object constructor = map_of_this.GetConstructor();
2820 if (constructor.IsHeapObject() &&
2821 !heap->Contains(HeapObject::cast(constructor))) {
2825 if (constructor.IsJSFunction()) {
2826 if (!heap->Contains(JSFunction::cast(constructor).shared())) {
2830 JSFunction::cast(constructor).shared().Name();
2840 } else if (constructor.IsFunctionTemplateInfo()) {
2928 JSFunction constructor = JSFunction::cast(maybe_constructor);
2933 return constructor.initial_map() == heap_object.map();
4744 // Replace the pointer to the exact constructor with the Object function
4749 JSFunction constructor = JSFunction::cast(maybe_constructor);
4750 if (!constructor.shared().IsApiFunction()) {
4751 Context context = constructor.native_context();
5399 MaybeHandle<JSDate> JSDate::New(Handle<JSFunction> constructor,
5401 Isolate* const isolate = constructor->GetIsolate();
5405 JSObject::New(constructor, new_target, Handle<AllocationSite>::null()),