Home | History | Annotate | Download | only in src

Lines Matching full:receiver

37     // Check we have at least the receiver.
58 Handle<Object> receiver() {
65 // Gets the total number of arguments including the receiver (but
153 if (!args.receiver()->Is##Type()) { \
158 args.receiver())); \
160 Handle<Type> name = Handle<Type>::cast(args.receiver())
218 JSArray* receiver) {
221 // receiver's prototype is the array prototype, then we are done.
222 Object* prototype = receiver->map()->prototype();
230 PrototypeIterator iter(isolate, receiver);
238 Isolate* isolate, Handle<Object> receiver, Arguments* args,
240 if (!receiver->IsJSArray()) return MaybeHandle<FixedArrayBase>();
241 Handle<JSArray> array = Handle<JSArray>::cast(receiver);
315 args.receiver(),
336 Handle<Object> receiver = args.receiver();
338 EnsureJSArrayWithWritableFastElements(isolate, receiver, &args, 1);
345 Handle<JSArray> array = Handle<JSArray>::cast(receiver);
363 Handle<Object> receiver = args.receiver();
365 EnsureJSArrayWithWritableFastElements(isolate, receiver, NULL, 0);
371 Handle<JSArray> array = Handle<JSArray>::cast(receiver);
382 if (IsJSArrayFastElementMovingAllowed(isolate, JSArray::cast(*receiver))) {
399 Handle<Object> receiver = args.receiver();
401 EnsureJSArrayWithWritableFastElements(isolate, receiver, NULL, 0);
404 !IsJSArrayFastElementMovingAllowed(isolate, JSArray::cast(*receiver))) {
407 Handle<JSArray> array = Handle<JSArray>::cast(receiver);
424 Handle<Object> receiver = args.receiver();
426 EnsureJSArrayWithWritableFastElements(isolate, receiver, &args, 1);
431 Handle<JSArray> array = Handle<JSArray>::cast(receiver);
453 Handle<Object> receiver = args.receiver();
465 isolate, species, Object::ArraySpeciesConstructor(isolate, receiver));
469 if (receiver->IsJSArray()) {
471 JSArray* array = JSArray::cast(*receiver);
478 object = Handle<JSObject>::cast(receiver);
480 } else if (receiver->IsJSObject() &&
481 GetSloppyArgumentsLength(isolate, Handle<JSObject>::cast(receiver),
487 object = Handle<JSObject>::cast(receiver);
547 Handle<Object> receiver = args.receiver();
549 EnsureJSArrayWithWritableFastElements(isolate, receiver, &args, 3);
558 isolate, species, Object::ArraySpeciesConstructor(isolate, receiver));
562 Handle<JSArray> array = Handle<JSArray>::cast(receiver);
825 void IterateTypedArrayElements(Isolate* isolate, Handle<JSObject> receiver,
830 ExternalArrayClass::cast(receiver->elements()));
968 bool IterateElementsSlow(Isolate* isolate, Handle<JSReceiver> receiver,
972 Maybe<bool> maybe = JSReceiver::HasElement(receiver, i);
977 Object::GetElement(isolate, receiver, i),
997 bool IterateElements(Isolate* isolate, Handle<JSReceiver> receiver,
1001 if (receiver->IsJSArray()) {
1002 Handle<JSArray> array = Handle<JSArray>::cast(receiver);
1008 isolate, val, Runtime::GetObjectProperty(isolate, receiver, key),
1018 if (!(receiver->IsJSArray() || receiver->IsJSTypedArray())) {
1021 return IterateElementsSlow(isolate, receiver, length, visitor);
1023 Handle<JSObject> array = Handle<JSObject>::cast(receiver);
1045 // have the correct receiver.
1081 // have the correct receiver.
1435 Handle<Object> receiver;
1437 .ToHandle(&receiver)) {
1443 args[0] = *receiver;
1609 Handle<JSReceiver> receiver;
1610 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, receiver,
1614 int enum_length = receiver->map()->EnumLength();
1616 JSObject::cast(*receiver)->elements() ==
1618 DCHECK(receiver->IsJSObject());
1619 DCHECK(!JSObject::cast(*receiver)->HasNamedInterceptor());
1620 DCHECK(!JSObject::cast(*receiver)->IsAccessCheckNeeded());
1621 DCHECK(!HeapObject::cast(receiver->map()->prototype())
1624 DCHECK(JSObject::cast(*receiver)->HasFastProperties());
1629 receiver->map()->instance_descriptors()->GetEnumCache());
1638 JSReceiver::GetKeys(receiver, JSReceiver::OWN_ONLY, ENUMERABLE_STRINGS,
1800 Handle<Object> receiver = args.length() > 3 ? args.at<Object>(3) : target;
1816 Handle<JSReceiver>::cast(target), name, receiver));
1961 Handle<Object> receiver = args.length() > 4 ? args.at<Object>(4) : target;
1975 isolate, receiver, name, Handle<JSReceiver>::cast(target));
2877 CHECK_RECEIVER(JSReceiver, receiver, "Date.prototype [ @@toPrimitive ]");
2881 JSDate::ToPrimitive(receiver, hint));
3042 // Compute number of arguments, ignoring the receiver.
3164 if (!args.receiver()->IsCallable()) {
3227 Handle<Object> receiver = args.receiver();
3228 if (receiver->IsJSBoundFunction()) {
3229 return *JSBoundFunction::ToString(Handle<JSBoundFunction>::cast(receiver));
3230 } else if (receiver->IsJSFunction()) {
3231 return *JSFunction::ToString(Handle<JSFunction>::cast(receiver));
3397 DCHECK(args.receiver()->IsJSReceiver());
3407 Handle<JSObject>::cast(args.receiver())),
3412 Handle<JSReceiver> receiver = args.at<JSReceiver>(0);
3413 if (receiver->IsJSObject() && receiver->IsAccessCheckNeeded()) {
3414 Handle<JSObject> js_receiver = Handle<JSObject>::cast(receiver);
3425 // This function cannot be called with the given receiver. Abort!
3440 LOG(isolate, ApiObjectAccess("call", JSObject::cast(*args.receiver())));
3466 return scope.CloseAndEscape(args.receiver());
3541 Handle<Object> receiver,
3544 // Construct BuiltinArguments object: function, arguments reversed, receiver.
3553 argv[argc + 1] = *receiver;
3579 Handle<Object> receiver = args.receiver();
3582 JSObject* obj = JSObject::cast(*receiver);