Home | History | Annotate | Download | only in src

Lines Matching refs:cast

161     return IsHeapObject() && HeapObject::cast(this)->Is##type_(); \
174 return IsHeapObject() && HeapObject::cast(this)->Is##Type(); \
195 return IsHeapObject() && HeapObject::cast(this)->IsNullOrUndefined();
233 return StringShape(String::cast(this)).IsCons();
238 return StringShape(String::cast(this)).IsThin();
243 return StringShape(String::cast(this)).IsSliced();
248 return StringShape(String::cast(this)).IsSequential();
253 return StringShape(String::cast(this)).IsSequential() &&
254 String::cast(this)->IsOneByteRepresentation();
259 return StringShape(String::cast(this)).IsSequential() &&
260 String::cast(this)->IsTwoByteRepresentation();
265 return StringShape(String::cast(this)).IsExternal();
270 return StringShape(String::cast(this)).IsExternal() &&
271 String::cast(this)->IsOneByteRepresentation();
276 return StringShape(String::cast(this)).IsExternal() &&
277 String::cast(this)->IsTwoByteRepresentation();
327 int length = FixedArray::cast(this)->length();
345 if (FixedArray::cast(this)->length() < 1) return false;
361 return IsJSValue() && JSValue::cast(this)->value()->IsString();
365 return IsJSValue() && JSValue::cast(this)->value()->IsBoolean();
369 return IsJSValue() && JSValue::cast(this)->value()->IsScript();
373 return IsJSValue() && JSValue::cast(this)->value()->IsNumber();
377 return IsJSValue() && JSValue::cast(this)->value()->IsBigInt();
381 return IsJSValue() && JSValue::cast(this)->value()->IsSymbol();
386 ((Oddball::cast(this)->kind() & Oddball::kNotBooleanMask) == 0);
412 return IsSmi() || HeapObject::cast(this)->map()->IsPrimitiveMap();
418 Handle<HeapObject> heap_object = Handle<HeapObject>::cast(object);
421 return JSProxy::IsArray(Handle<JSProxy>::cast(object));
428 const JSGlobalProxy* proxy = JSGlobalProxy::cast(this);
449 return IsHeapObject() && HeapObject::cast(this)->Is##Name(); \
463 return this->IsHeapNumber() && std::isnan(HeapNumber::cast(this)->value());
468 i::IsMinusZero(HeapNumber::cast(this)->value());
472 // Cast operations
548 return Name::cast(second)->AsArrayIndex(&index) && index == expected;
550 return Name::cast(first)->Equals(Name::cast(second));
557 if (Symbol::cast(this)->is_private()) return true;
573 MutableHeapNumber::cast(*object)->value_as_bits());
588 MutableHeapNumber::cast(*object)->value());
636 double num = HeapNumber::cast(this)->value();
646 if (object->IsJSReceiver()) return Handle<JSReceiver>::cast(object);
653 if (input->IsName()) return Handle<Name>::cast(input);
660 if (value->IsSmi() || HeapObject::cast(*value)->IsName()) return value;
668 return JSReceiver::ToPrimitive(Handle<JSReceiver>::cast(input), hint);
697 if (input->IsSmi()) return handle(Smi::cast(*input)->ToUint32Smi(), isolate);
703 if (input->IsString()) return Handle<String>::cast(input);
799 HeapObject* prototype = HeapObject::cast(object->map()->prototype());
808 HeapObject* elements = JSObject::cast(prototype)->elements();
813 prototype = HeapObject::cast(map->prototype());
826 int Smi::ToInt(const Object* object) { return Smi::cast(object)->value(); }
1016 DependentCode::cast(GetReadOnlyRoots().empty_weak_fixed_array()),
1138 !AllocationSite::cast(allocation_site())->IsZombie();
1143 return AllocationSite::cast(allocation_site());
1216 Handle<FixedArray>::cast(elements)->GetFirstElementAddress();
1226 Handle<FixedDoubleArray>::cast(elements);
1311 return PropertyDetails(Smi::cast(property_details_raw()));
1451 index, MutableHeapNumber::cast(value)->value_as_bits());
1477 bits = HeapNumber::cast(value)->value_as_bits();
1482 auto box = MutableHeapNumber::cast(RawFastPropertyAt(index));
1591 return String::cast(obj);
1643 return DescriptorArray::cast(this)->number_of_descriptors() > 1;
1645 return TransitionArray::cast(this)->number_of_entries() > 1;
1647 return OrderedHashMap::cast(this)->NumberOfElements() > 0;
1649 return OrderedHashSet::cast(this)->NumberOfElements() > 0;
1710 return EnumCache::cast(get(kEnumCacheIndex)->ToStrongHeapObject());
1864 return Name::cast(get(ToKeyIndex(descriptor_number))->ToStrongHeapObject());
1979 return key->Equals(String::cast(value));
1987 return String::cast(object)->Hash();
2004 return String::cast(object)->Hash();
2101 FreeSpace* FreeSpace::cast(HeapObject* o) {
2230 return JSObject::cast(transition_info_or_boilerplate());
2239 return Smi::cast(transition_info_or_boilerplate())->value();
2278 return FeedbackVector::cast(feedback_cell()->value());
2347 return AbstractCode::cast(shared()->GetBytecodeArray());
2349 return AbstractCode::cast(code());
2353 Code* JSFunction::code() { return Code::cast(READ_FIELD(this, kCodeOffset)); }
2392 return Context::cast(READ_FIELD(this, kContextOffset));
2418 return Map::cast(prototype_or_initial_map());
2478 return Foreign::cast(value)->foreign_address() != kNullAddress;
2641 return GlobalDictionary::cast(raw_properties_or_hash());
2646 return NumberDictionary::cast(elements());
2776 return NameDictionary::cast(prop);
2789 return PropertyArray::cast(prop);
2861 return JSGlobalProxy::cast(global_proxy())->IsDetachedFrom(this);
2918 Derived::cast(this)->SetEntry(isolate, entry, the_hole, the_hole, details);
2936 return PropertyCell::cast(object)->name();
2943 Name* NameDictionary::NameAt(int entry) { return Name::cast(KeyAt(entry)); }
2951 return PropertyCell::cast(KeyAt(entry));
2960 return IsLive(roots, k) && !PropertyCell::cast(k)->value()->IsTheHole(roots);
2968 DCHECK_EQ(key, PropertyCell::cast(value)->name());
3007 DCHECK(other->IsTheHole() || Name::cast(other)->IsUniqueName());
3017 return Name::cast(other)->Hash();
3021 DCHECK(PropertyCell::cast(other)->name()->IsUniqueName());
3022 return *key == PropertyCell::cast(other)->name();
3026 return PropertyCell::cast(other)->name()->Hash();
3074 double num = HeapNumber::cast(object)->value();
3088 uint32_t hash = Name::cast(object)->Hash();
3092 uint32_t hash = Oddball::cast(object)->to_string()->Hash();
3096 uint32_t hash = BigInt::cast(object)->Hash();
3109 JSReceiver* receiver = JSReceiver::cast(this);
3133 TableType* table(TableType::cast(this->table()));
3200 FreshlyAllocatedBigInt* FreshlyAllocatedBigInt::cast(Object* object) {