Lines Matching refs:isolate_

56       isolate_(isolate),
68 holder_ = GetRoot(isolate_, lookup_start_object_, index_);
77 Map map = holder.map(isolate_);
96 Map map = holder.map(isolate_);
118 if (holder != *holder_) holder_ = handle(holder, isolate_);
122 map = holder.map(isolate_);
126 holder_ = handle(holder, isolate_);
166 if (receiver_->IsNumber(isolate_)) return factory()->heap_number_map();
167 return handle(Handle<HeapObject>::cast(receiver_)->map(isolate_), isolate_);
173 return isolate_->MayAccess(handle(isolate_->context(), isolate_),
181 state_ = LookupInHolder<is_element>(holder_->map(isolate_), *holder_);
182 DCHECK(IsFound() || !holder_->HasFastProperties(isolate_));
337 DCHECK(!receiver_->IsWasmObject(isolate_));
343 DCHECK_IMPLIES(holder->IsJSProxy(isolate_), name()->IsPrivate(isolate_));
344 if (holder->IsJSProxy(isolate_)) return;
348 ElementsKind kind = holder_obj->GetElementsKind(isolate_);
349 ElementsKind to = value->OptimalElementsKind(isolate_);
365 if (holder->IsJSGlobalObject(isolate_)) {
367 JSGlobalObject::cast(*holder).global_dictionary(isolate_, kAcquireLoad),
369 Handle<PropertyCell> cell(dictionary->CellAt(isolate_, dictionary_entry()),
382 if (holder->HasFastProperties(isolate_)) {
403 Map old_map = holder->map(isolate_);
412 if (!holder->HasFastProperties(isolate_)) return;
415 Handle<Map> old_map(holder->map(isolate_), isolate_);
417 Handle<Map> new_map = Map::Update(isolate_, old_map);
425 property_details_ = new_map->instance_descriptors(isolate_).GetDetails(
435 JSObject::MigrateToMap(isolate_, holder_obj, new_map);
471 if (holder->IsJSProxy(isolate_)) {
472 DCHECK(name()->IsPrivate(isolate_));
478 DCHECK(!holder_obj->HasTypedArrayOrRabGsabTypedArrayElements(isolate_));
479 DCHECK(attributes != NONE || !holder_obj->HasFastElements(isolate_));
480 Handle<FixedArrayBase> elements(holder_obj->elements(isolate_), isolate());
481 holder_obj->GetElementsAccessor(isolate_)->Reconfigure(
484 } else if (holder_obj->HasFastProperties(isolate_)) {
485 Handle<Map> old_map(holder_obj->map(isolate_), isolate_);
489 isolate_, old_map, descriptor_number(), i::PropertyKind::kData,
498 JSObject::MigrateToMap(isolate_, holder_obj, new_map);
502 if (!IsElement(*holder) && !holder_obj->HasFastProperties(isolate_)) {
503 if (holder_obj->map(isolate_).is_prototype_map() &&
513 JSObject::InvalidatePrototypeChains(holder->map(isolate_));
515 if (holder_obj->IsJSGlobalObject(isolate_)) {
520 .global_dictionary(isolate_, kAcquireLoad),
532 holder_obj->property_dictionary_swiss(isolate_), isolate());
540 holder_obj->property_dictionary(isolate_), isolate());
568 DCHECK_IMPLIES(receiver->IsJSProxy(isolate_), name()->IsPrivate(isolate_));
573 if (!IsElement() && name()->IsPrivate(isolate_)) {
578 (GetAccessors()->IsAccessorInfo(isolate_) &&
583 Handle<Map> map(receiver->map(isolate_), isolate_);
589 DCHECK(!value->IsTheHole(isolate_));
593 PropertyCell::InitialType(isolate_, *value));
594 transition_ = isolate_->factory()->NewPropertyCell(
608 Map::TransitionToDataProperty(isolate_, map, name_, value, attributes,
620 property_details_ = transition->GetLastDescriptorDetails(isolate_);
632 if (receiver->IsJSGlobalObject(isolate_)) {
633 JSObject::InvalidatePrototypeChains(receiver->map(isolate_));
639 global->global_dictionary(isolate_, kAcquireLoad), isolate_);
642 GlobalDictionary::Add(isolate_, dictionary, name(), transition_cell(),
654 transition->GetBackPointer(isolate_) == receiver->map(isolate_);
665 if (!receiver->IsJSProxy(isolate_)) {
666 JSObject::MigrateToMap(isolate_, Handle<JSObject>::cast(receiver),
672 property_details_ = transition->GetLastDescriptorDetails(isolate_);
674 } else if (receiver->map(isolate_).is_dictionary_map()) {
675 if (receiver->map(isolate_).is_prototype_map() &&
676 receiver->IsJSObject(isolate_)) {
677 JSObject::InvalidatePrototypeChains(receiver->map(isolate_));
681 receiver->property_dictionary_swiss(isolate_), isolate_);
685 isolate_->factory()->uninitialized_value(),
689 Handle<NameDictionary> dictionary(receiver->property_dictionary(isolate_),
690 isolate_);
694 isolate_->factory()->uninitialized_value(),
712 ElementsAccessor* accessor = object->GetElementsAccessor(isolate_);
715 DCHECK(!name()->IsPrivateName(isolate_));
716 bool is_prototype_map = holder->map(isolate_).is_prototype_map();
717 RCS_SCOPE(isolate_,
725 if (holder->HasFastProperties(isolate_)) {
726 JSObject::NormalizeProperties(isolate_, Handle<JSObject>::cast(holder),
731 if (holder->IsJSObject(isolate_)) {
741 DCHECK(!getter->IsNull(isolate_) || !setter->IsNull(isolate_));
746 if (!IsElement() && name()->IsPrivate(isolate_)) {
750 if (!IsElement(*receiver) && !receiver->map(isolate_).is_dictionary_map()) {
751 Handle<Map> old_map(receiver->map(isolate_), isolate_);
764 isolate_, old_map, name_, number_, getter, setter, attributes);
766 new_map->GetBackPointer(isolate_) == receiver->map(isolate_);
767 JSObject::MigrateToMap(isolate_, receiver, new_map);
771 property_details_ = new_map->GetLastDescriptorDetails(isolate_);
781 if (state() == ACCESSOR && GetAccessors()->IsAccessorPair(isolate_)) {
817 isolate_->CountUsage(v8::Isolate::kIndexAccessor);
820 dictionary = NumberDictionary::Set(isolate_, dictionary, array_index(),
824 if (receiver->HasSlowArgumentsElements(isolate_)) {
826 SloppyArgumentsElements::cast(receiver->elements(isolate_));
830 number_.as_int(), ReadOnlyRoots(isolate_).the_hole_value());
840 if (receiver->map(isolate_).is_prototype_map()) {
841 JSObject::InvalidatePrototypeChains(receiver->map(isolate_));
846 JSObject::NormalizeProperties(isolate_, receiver, mode, 0,
868 if (!receiver_->IsJSGlobalProxy(isolate_)) return false;
869 return Handle<JSGlobalProxy>::cast(receiver_)->map(isolate_).prototype(
870 isolate_) == *holder_;
878 if (V8_UNLIKELY(holder_->IsWasmObject(isolate_))) {
881 return isolate_->factory()->undefined_value();
884 return WasmArray::GetElement(isolate_, holder, number_.as_uint32());
887 DCHECK(holder_->IsJSObject(isolate_));
889 ElementsAccessor* accessor = holder->GetElementsAccessor(isolate_);
891 } else if (holder_->IsJSGlobalObject(isolate_)) {
893 result = holder->global_dictionary(isolate_, kAcquireLoad)
894 .ValueAt(isolate_, dictionary_entry());
895 } else if (!holder_->HasFastProperties(isolate_)) {
897 result = holder_->property_dictionary_swiss(isolate_).ValueAt(
900 result = holder_->property_dictionary(isolate_).ValueAt(
901 isolate_, dictionary_entry());
906 if (V8_UNLIKELY(holder_->IsWasmObject(isolate_))) {
910 return isolate_->factory()->undefined_value();
912 if (holder_->IsWasmArray(isolate_)) {
914 DCHECK_EQ(*name_, ReadOnlyRoots(isolate_).length_string());
917 return isolate_->factory()->NewNumberFromUint(length);
920 return WasmStruct::GetField(isolate_, holder,
925 DCHECK(holder_->IsJSObject(isolate_));
928 FieldIndex::ForDescriptor(holder->map(isolate_), descriptor_number());
931 return isolate_->factory()->undefined_value();
934 isolate_, holder, property_details_.representation(), field_index);
937 holder_->map(isolate_).instance_descriptors(isolate_).GetStrongValue(
938 isolate_, descriptor_number());
940 return handle(result, isolate_);
945 DCHECK(holder_->HasFastProperties(isolate_));
956 FieldIndex::ForDescriptor(holder->map(isolate_), descriptor_number());
958 if (!value.IsNumber(isolate_)) return false;
960 Object current_value = holder->RawFastPropertyAt(isolate_, field_index);
961 DCHECK(current_value.IsHeapNumber(isolate_));
974 Object current_value = holder->RawFastPropertyAt(isolate_, field_index);
978 return current_value.IsNumber(isolate_) && value.IsNumber(isolate_) &&
985 DCHECK(!holder_->HasFastProperties(isolate_));
1011 return current_value.IsNumber(isolate_) && value.IsNumber(isolate_) &&
1026 DCHECK(holder_->HasFastProperties(isolate_));
1034 DCHECK(holder_->HasFastProperties(isolate_));
1037 return FieldIndex::ForDescriptor(holder_->map(isolate_), descriptor_number());
1043 return handle(holder->global_dictionary(isolate_, kAcquireLoad)
1044 .CellAt(isolate_, dictionary_entry()),
1045 isolate_);
1067 FieldIndex::ForDescriptor(holder->map(isolate_), descriptor_number());
1069 isolate_, holder, property_details_.representation(), field_index, tag);
1078 DCHECK(!holder_->IsWasmObject(isolate_));
1085 ElementsAccessor* accessor = object->GetElementsAccessor(isolate_);
1087 } else if (holder->HasFastProperties(isolate_)) {
1088 DCHECK(holder->IsJSObject(isolate_));
1101 } else if (holder->IsJSGlobalObject(isolate_)) {
1106 JSGlobalObject::cast(*holder).global_dictionary(isolate_, kAcquireLoad);
1107 PropertyCell cell = dictionary.CellAt(isolate_, dictionary_entry());
1113 DCHECK_IMPLIES(holder->IsJSProxy(isolate_), name()->IsPrivate(isolate_));
1118 holder->IsJSProxy(isolate_) || IsConstDictValueEqualTo(*value));
1122 holder->property_dictionary_swiss(isolate_);
1125 NameDictionary dictionary = holder->property_dictionary(isolate_);
1139 FieldIndex::ForDescriptor(holder->map(isolate_), descriptor_number());
1152 FieldIndex::ForDescriptor(holder->map(isolate_), descriptor_number());
1154 isolate_);
1161 DCHECK(holder_->IsWasmObject(isolate_));
1162 if (holder_->IsWasmStruct(isolate_)) {
1167 DCHECK(holder_->IsWasmArray(isolate_));
1175 DCHECK(holder_->IsWasmObject(isolate_));
1186 WasmStruct::SetField(isolate_, wasm_holder, property_details_.field_index(),
1196 if (!is_element && name_->IsSymbol(isolate_) &&
1216 if (map.prototype(isolate_) == ReadOnlyRoots(isolate_).null_value()) {
1222 return JSReceiver::cast(map.prototype(isolate_));
1226 if (!holder.IsJSTypedArray(isolate_)) return NOT_FOUND;
1228 if (!name_->IsString(isolate_)) return NOT_FOUND;
1259 if (is_element || !name_->IsPrivate(isolate_)) return JSPROXY;
1267 if (is_element || !name_->IsPrivate(isolate_) ||
1268 name_->IsPrivateName(isolate_))
1275 if (is_element || !name_->IsPrivate(isolate_)) return INTERCEPTOR;
1281 isolate_, kAcquireLoad);
1284 PropertyCell cell = dict.CellAt(isolate_, number_);
1285 if (cell.value(isolate_).IsTheHole(isolate_)) {
1319 if (V8_UNLIKELY(holder.IsWasmObject(isolate_))) {
1321 if (holder.IsWasmArray(isolate_)) {
1332 DCHECK(holder.IsWasmStruct(isolate_));
1339 ElementsAccessor* accessor = js_object.GetElementsAccessor(isolate_);
1340 FixedArrayBase backing_store = js_object.elements(isolate_);
1341 number_ = accessor->GetEntryForIndex(isolate_, js_object, backing_store,
1344 return holder.IsJSTypedArray(isolate_) ? INTEGER_INDEXED_EXOTIC
1355 DescriptorArray descriptors = map.instance_descriptors(isolate_);
1356 number_ = descriptors.SearchWithCache(isolate_, *name_, map);
1360 DCHECK_IMPLIES(holder.IsJSProxy(isolate_), name()->IsPrivate(isolate_));
1362 SwissNameDictionary dict = holder.property_dictionary_swiss(isolate_);
1367 NameDictionary dict = holder.property_dictionary(isolate_);
1389 AccessCheckInfo::Get(isolate_, Handle<JSObject>::cast(holder_));
1398 return handle(InterceptorInfo::cast(interceptor), isolate_);
1413 return accessor_pair->IsAccessorPair(isolate_) &&
1419 DCHECK(GetAccessors()->IsAccessorPair(isolate_));
1423 isolate(), accessor_pair->getter(isolate_));
1427 name_ = handle(maybe_name.value(), isolate_);