Home | History | Annotate | Download | only in src

Lines Matching defs:self

1722   auto self = Utils::OpenHandle(this, true);
1725 if (self.is_null()) return Local<Value>();
1726 auto context = ContextFromHeapObject(self);
2334 auto self = Utils::OpenHandle(this);
2335 return self->start_position();
2340 auto self = Utils::OpenHandle(this);
2341 return self->end_position();
2368 auto self = Utils::OpenHandle(this);
2372 i::Handle<i::Object> args[] = {self};
2378 int start = self->start_position();
2379 int end = self->end_position();
2394 auto self = Utils::OpenHandle(this);
2396 i::Handle<i::Object>(self->script(), isolate));
2405 auto self = Utils::OpenHandle(this);
2407 i::Handle<i::Object>(self->script(), isolate));
2449 auto self = Utils::OpenHandle(this);
2450 auto obj = i::Object::GetElement(isolate, self, index).ToHandleChecked();
2488 i::Handle<i::JSObject> self = Utils::OpenHandle(f);
2490 i::Object::GetProperty(isolate, self, propertyName).ToHandleChecked();
2515 i::Handle<i::JSObject> self = Utils::OpenHandle(f);
2517 i::Object::GetProperty(isolate, self, propertyName).ToHandleChecked();
2543 i::Handle<i::JSObject> self = Utils::OpenHandle(f);
2545 i::Object::GetProperty(isolate, self, propertyName).ToHandleChecked();
2886 auto self = Utils::OpenHandle(this);
2887 return i::Object::IsPromise(self);
3375 auto self = Utils::OpenHandle(this);
3376 if (self->IsSmi()) {
3377 if (i::Smi::cast(*self)->value() >= 0) return Utils::Uint32ToLocal(self);
3383 !i::Object::ToString(isolate, self).ToHandle(&string_obj);
3401 auto self = Utils::OpenHandle(this);
3402 if (self->IsSmi()) {
3403 if (i::Smi::cast(*self)->value() >= 0) return Utils::Uint32ToLocal(self);
3406 auto context = ContextFromHeapObject(self);
3412 auto self = Utils::OpenHandle(this);
3414 return i::Object::Equals(self, other);
3419 auto self = Utils::OpenHandle(this);
3421 if (self->IsSmi() && other->IsSmi()) {
3422 return self->Number() == other->Number();
3424 if (self->IsJSObject() && other->IsJSObject()) {
3425 return *self == *other;
3427 auto heap_object = self->IsSmi() ? other : self;
3434 auto self = Utils::OpenHandle(this);
3436 return self->StrictEquals(*other);
3441 auto self = Utils::OpenHandle(this);
3443 return self->SameValue(*other);
3450 auto self = Utils::OpenHandle(this);
3454 i::Runtime::SetObjectProperty(isolate, self, key_obj, value_obj,
3470 auto self = Utils::OpenHandle(this);
3472 has_pending_exception = i::Object::SetElement(isolate, self, index, value_obj,
3490 i::Handle<i::JSReceiver> self = Utils::OpenHandle(this);
3495 isolate, self, key_obj, i::LookupIterator::OWN);
3509 i::Handle<i::JSReceiver> self = Utils::OpenHandle(this);
3512 i::LookupIterator it(isolate, self, index, i::LookupIterator::OWN);
3527 i::Handle<i::JSReceiver> self = Utils::OpenHandle(this);
3531 if (self->IsAccessCheckNeeded() &&
3533 i::Handle<i::JSObject>::cast(self))) {
3534 isolate->ReportFailedAccessCheck(i::Handle<i::JSObject>::cast(self));
3544 isolate, self, key_obj, &desc, i::Object::DONT_THROW);
3569 auto self = i::Handle<i::JSObject>::cast(Utils::OpenHandle(this));
3573 DefineObjectProperty(self, key_obj, value_obj,
3587 i::Handle<i::JSObject> self =
3592 DefineObjectProperty(self, key_obj, value_obj,
3610 auto self = Utils::OpenHandle(this);
3614 !i::Runtime::GetObjectProperty(isolate, self, key_obj).ToHandle(&result);
3628 auto self = Utils::OpenHandle(this);
3631 !i::Object::GetElement(isolate, self, index).ToHandle(&result);
3653 auto self = Utils::OpenHandle(this);
3661 auto result = i::JSReceiver::GetPropertyAttributes(self, key_name);
3705 auto self = Utils::OpenHandle(this);
3706 i::PrototypeIterator iter(isolate, self);
3714 auto self = Utils::OpenHandle(this);
3719 auto result = i::JSReceiver::SetPrototype(self, value_obj, false,
3752 auto self = Utils::OpenHandle(this);
3755 !i::JSReceiver::GetKeys(self, i::JSReceiver::INCLUDE_PROTOS,
3776 auto self = Utils::OpenHandle(this);
3778 has_pending_exception = !i::JSReceiver::GetKeys(self, i::JSReceiver::OWN_ONLY,
3815 auto self = Utils::OpenHandle(this);
3816 i::Handle<i::String> name = i::JSReceiver::GetConstructorName(self);
3823 auto self = Utils::OpenHandle(this);
3826 i::Runtime::DeleteObjectProperty(isolate, self, key_obj, i::SLOPPY);
3847 auto self = Utils::OpenHandle(this);
3853 maybe = i::JSReceiver::HasElement(self, index);
3858 maybe = i::JSReceiver::HasProperty(self, name);
3881 auto self = Utils::OpenHandle(this);
3882 Maybe<bool> result = i::JSReceiver::DeleteElement(self, index);
3897 auto self = Utils::OpenHandle(this);
3898 auto maybe = i::JSReceiver::HasElement(self, index);
3912 static Maybe<bool> ObjectSetAccessor(Local<Context> context, Object* self,
3918 if (!Utils::OpenHandle(self)->IsJSObject()) return Just(false);
3920 i::Handle<i::JSObject>::cast(Utils::OpenHandle(self));
3976 auto self = Utils::OpenHandle(this);
3977 if (!self->IsJSObject()) return;
3981 i::JSObject::DefineAccessor(i::Handle<i::JSObject>::cast(self),
3991 auto self = Utils::OpenHandle(this);
3993 auto result = i::JSReceiver::HasOwnProperty(self, key_val);
4010 auto self = Utils::OpenHandle(this);
4011 if (!self->IsJSObject()) return Just(false);
4014 i::Handle<i::JSObject>::cast(self), key_val);
4031 auto self = Utils::OpenHandle(this);
4032 if (!self->IsJSObject()) return Just(false);
4034 i::Handle<i::JSObject>::cast(self), index);
4051 auto self = Utils::OpenHandle(this);
4052 if (!self->IsJSObject()) return Just(false);
4055 i::Handle<i::JSObject>::cast(self), key_val);
4069 auto self = Utils::OpenHandle(this);
4070 return self->IsJSObject() &&
4071 i::Handle<i::JSObject>::cast(self)->HasNamedInterceptor();
4076 auto self = Utils::OpenHandle(this);
4077 return self->IsJSObject() &&
4078 i::Handle<i::JSObject>::cast(self)->HasIndexedInterceptor();
4086 i::Handle<i::JSReceiver> self = Utils::OpenHandle(this);
4087 if (!self->IsJSObject()) return MaybeLocal<Value>();
4089 i::PrototypeIterator iter(isolate, self);
4094 isolate, self, key_obj, proto,
4118 i::Handle<i::JSReceiver> self = Utils::OpenHandle(this);
4119 if (!self->IsJSObject()) return Nothing<PropertyAttribute>();
4121 i::PrototypeIterator iter(isolate, self);
4126 isolate, self, key_obj, proto,
4147 auto self = Utils::OpenHandle(this);
4150 isolate, self, key_obj,
4171 auto self = Utils::OpenHandle(this);
4174 isolate, self, key_obj,
4195 auto self = i::Handle<i::JSObject>::cast(Utils::OpenHandle(this));
4196 auto isolate = self->GetIsolate();
4198 auto result = isolate->factory()->CopyJSObject(self);
4205 auto self = Utils::OpenHandle(this);
4206 auto context = handle(self->GetCreationContext());
4214 auto self = Utils::OpenHandle(this);
4215 return i::JSReceiver::GetOrCreateIdentityHash(self)->value();
4224 i::Handle<i::JSReceiver> self = Utils::OpenHandle(this);
4225 if (!self->IsJSObject()) return false;
4230 i::JSObject::DeleteHiddenProperty(i::Handle<i::JSObject>::cast(self),
4236 i::Handle<i::JSObject>::cast(self), key_string, value_obj);
4237 return *result == *self;
4244 i::Handle<i::JSReceiver> self = Utils::OpenHandle(this);
4245 if (!self->IsJSObject()) return v8::Local<v8::Value>();
4250 i::Handle<i::JSObject>::cast(self)->GetHiddenProperty(key_string),
4261 i::Handle<i::JSReceiver> self = Utils::OpenHandle(this);
4262 if (!self->IsJSObject()) return false;
4266 i::JSObject::DeleteHiddenProperty(i::Handle<i::JSObject>::cast(self),
4273 auto self = Utils::OpenHandle(this);
4274 return self->IsCallable();
4284 auto self = Utils::OpenHandle(this);
4290 i::Execution::Call(isolate, self, recv_obj, argc, args), &result);
4310 auto self = Utils::OpenHandle(this);
4315 i::Execution::New(isolate, self, self, argc, args), &result);
4359 auto self = Utils::OpenHandle(this);
4364 i::Execution::New(isolate, self, self, argc, args), &result);
4382 auto self = Utils::OpenHandle(this);
4388 i::Execution::Call(isolate, self, recv_obj, argc, args), &result);
4402 auto self = Utils::OpenHandle(this);
4403 if (!self->IsJSFunction()) return;
4404 auto func = i::Handle<i::JSFunction>::cast(self);
4410 auto self = Utils::OpenHandle(this);
4411 if (self->IsJSBoundFunction()) {
4412 auto func = i::Handle<i::JSBoundFunction>::cast(self);
4415 if (self->IsJSFunction()) {
4416 auto func = i::Handle<i::JSFunction>::cast(self);
4420 self->GetIsolate()->factory()->undefined_value());
4425 auto self = Utils::OpenHandle(this);
4426 if (!self->IsJSFunction()) {
4428 self->GetIsolate()->factory()->undefined_value());
4430 auto func = i::Handle<i::JSFunction>::cast(self);
4437 auto self = Utils::OpenHandle(this);
4438 if (!self->IsJSFunction()) {
4440 self->GetIsolate()->factory()->undefined_value());
4442 auto func = i::Handle<i::JSFunction>::cast(self);
4451 auto self = Utils::OpenHandle(this);
4452 if (!self->IsJSFunction()) {
4455 auto func = i::Handle<i::JSFunction>::cast(self);
4469 auto self = Utils::OpenHandle(this);
4470 if (!self->IsJSFunction()) {
4473 auto func = i::Handle<i::JSFunction>::cast(self);
4486 auto self = Utils::OpenHandle(this);
4487 if (!self->IsJSFunction()) {
4490 auto func = i::Handle<i::JSFunction>::cast(self);
4500 auto self = Utils::OpenHandle(this);
4501 if (!self->IsJSFunction()) {
4504 auto func = i::Handle<i::JSFunction>::cast(self);
4514 auto self = Utils::OpenHandle(this);
4515 if (!self->IsJSFunction()) {
4518 auto func = i::Handle<i::JSFunction>::cast(self);
4524 auto self = Utils::OpenHandle(this);
4525 if (!self->IsJSFunction()) {
4528 auto func = i::Handle<i::JSFunction>::cast(self);
4538 auto self = Utils::OpenHandle(this);
4539 if (self->IsJSBoundFunction()) {
4540 auto bound_function = i::Handle<i::JSBoundFunction>::cast(self);
4545 return v8::Undefined(reinterpret_cast<v8::Isolate*>(self->GetIsolate()));
4550 auto self = Utils::OpenHandle(this);
4551 return static_cast<int>(self->Hash());
5297 i::Handle<i::JSReceiver> self = Utils::OpenHandle(this);
5298 if (!self->IsJSObject()) return 0;
5299 return i::Handle<i::JSObject>::cast(self)->GetInternalFieldCount();
5617 auto self = Utils::OpenHandle(this);
5620 !ToLocal<Object>(i::ApiNatives::InstantiateObject(self), &result);
5635 auto self = Utils::OpenHandle(this);
5638 !ToLocal<Function>(i::ApiNatives::InstantiateFunction(self), &result);
5651 auto self = Utils::OpenHandle(this);
5653 return self->IsTemplateFor(*obj);
6157 auto self = Utils::OpenHandle(this);
6158 if (!self->HasFastObjectElements()) return Local<Object>();
6159 i::FixedArray* elms = i::FixedArray::cast(self->elements());
6191 auto self = Utils::OpenHandle(this);
6192 i::Isolate* isolate = self->GetIsolate();
6195 i::JSMap::Clear(self);
6201 auto self = Utils::OpenHandle(this);
6205 !ToLocal<Value>(i::Execution::Call(isolate, isolate->map_get(), self,
6216 auto self = Utils::OpenHandle(this);
6220 has_pending_exception = !i::Execution::Call(isolate, isolate->map_set(), self,
6230 auto self = Utils::OpenHandle(this);
6233 has_pending_exception = !i::Execution::Call(isolate, isolate->map_has(), self,
6243 auto self = Utils::OpenHandle(this);
6247 self, arraysize(argv), argv)
6291 auto self = Utils::OpenHandle(this);
6292 i::Isolate* isolate = self->GetIsolate();
6295 i::JSSet::Clear(self);
6301 auto self = Utils::OpenHandle(this);
6304 has_pending_exception = !i::Execution::Call(isolate, isolate->set_add(), self,
6314 auto self = Utils::OpenHandle(this);
6317 has_pending_exception = !i::Execution::Call(isolate, isolate->set_has(), self,
6327 auto self = Utils::OpenHandle(this);
6331 self, arraysize(argv), argv)
6386 auto self = Utils::OpenHandle(this);
6387 i::Handle<i::Object> argv[] = {self, Utils::OpenHandle(*value)};
6407 auto self = Utils::OpenHandle(this);
6408 i::Handle<i::Object> argv[] = {self, Utils::OpenHandle(*value)};
6430 auto self = Utils::OpenHandle(value);
6434 self, arraysize(argv), argv)
6458 auto self = Utils::OpenHandle(this);
6462 self, arraysize(argv), argv)
6478 auto self = Utils::OpenHandle(this);
6482 self, arraysize(argv), argv)
6506 i::Handle<i::JSProxy> self = Utils::OpenHandle(this);
6507 i::Handle<i::JSReceiver> target(self->target());
6513 i::Handle<i::JSProxy> self = Utils::OpenHandle(this);
6514 i::Handle<i::Object> handler(self->handler(), self->GetIsolate());
6520 i::Handle<i::JSProxy> self = Utils::OpenHandle(this);
6521 return self->IsRevoked();
6526 i::Handle<i::JSProxy> self = Utils::OpenHandle(this);
6527 i::JSProxy::Revoke(self);
6554 i::Handle<i::JSArrayBuffer> self = Utils::OpenHandle(this);
6555 i::Isolate* isolate = self->GetIsolate();
6556 Utils::ApiCheck(!self->is_external(), "v8::ArrayBuffer::Externalize",
6558 self->set_is_external(true);
6559 isolate->heap()->UnregisterArrayBuffer(*self);
6566 i::Handle<i::JSArrayBuffer> self = Utils::OpenHandle(this);
6567 size_t byte_length = static_cast<size_t>(self->byte_length()->Number());
6569 contents.data_ = self->backing_store();
6639 i::Handle<i::JSArrayBufferView> self = Utils::OpenHandle(this);
6640 i::Isolate* isolate = self->GetIsolate();
6641 size_t byte_offset = i::NumberToSize(isolate, self->byte_offset());
6643 i::Min(byte_length, i::NumberToSize(isolate, self->byte_length()));
6646 i::Handle<i::JSArrayBuffer> buffer(i::JSArrayBuffer::cast(self->buffer()));
6649 DCHECK(self->IsJSTypedArray());
6650 i::Handle<i::JSTypedArray> typed_array(i::JSTypedArray::cast(*self));
6662 i::Handle<i::JSArrayBufferView> self = Utils::OpenHandle(this);
6663 i::Handle<i::JSArrayBuffer> buffer(i::JSArrayBuffer::cast(self->buffer()));
6763 i::Handle<i::JSArrayBuffer> self = Utils::OpenHandle(this);
6764 i::Isolate* isolate = self->GetIsolate();
6765 Utils::ApiCheck(!self->is_external(), "v8::SharedArrayBuffer::Externalize",
6767 self->set_is_external(true);
6768 isolate->heap()->UnregisterArrayBuffer(*self);
6774 i::Handle<i::JSArrayBuffer> self = Utils::OpenHandle(this);
6775 size_t byte_length = static_cast<size_t>(self->byte_length()->Number());
6777 contents.data_ = self->backing_store();