Lines Matching defs:properties
304 // We should never try to copy properties from an object itself.
438 // Convert to slow properties if we're guaranteed to overflow the number of
455 "Copying data properties");
756 Object SetHashAndUpdateProperties(HeapObject properties, int hash) {
760 ReadOnlyRoots roots = properties.GetReadOnlyRoots();
761 if (properties == roots.empty_fixed_array() ||
762 properties == roots.empty_property_array() ||
763 properties == roots.empty_property_dictionary() ||
764 properties == roots.empty_swiss_property_dictionary()) {
768 if (properties.IsPropertyArray()) {
769 PropertyArray::cast(properties).SetHash(hash);
770 DCHECK_LT(0, PropertyArray::cast(properties).length());
771 return properties;
774 if (properties.IsGlobalDictionary()) {
775 GlobalDictionary::cast(properties).SetHash(hash);
776 return properties;
780 DCHECK(properties.IsSwissNameDictionary());
781 SwissNameDictionary::cast(properties).SetHash(hash);
783 DCHECK(properties.IsNameDictionary());
784 NameDictionary::cast(properties).SetHash(hash);
786 return properties;
791 Object properties = object.raw_properties_or_hash();
792 if (properties.IsSmi()) {
793 return Smi::ToInt(properties);
796 if (properties.IsPropertyArray()) {
797 return PropertyArray::cast(properties).Hash();
800 properties.IsSwissNameDictionary()) {
801 return SwissNameDictionary::cast(properties).Hash();
804 if (properties.IsNameDictionary()) {
806 return NameDictionary::cast(properties).Hash();
809 if (properties.IsGlobalDictionary()) {
810 return GlobalDictionary::cast(properties).Hash();
815 DCHECK(properties == roots.empty_fixed_array() ||
816 properties == roots.empty_property_dictionary() ||
817 properties == roots.empty_swiss_property_dictionary());
834 void JSReceiver::SetProperties(HeapObject properties) {
835 DCHECK_IMPLIES(properties.IsPropertyArray() &&
836 PropertyArray::cast(properties).length() == 0,
837 properties == GetReadOnlyRoots().empty_property_array());
840 Object new_properties = properties;
845 new_properties = SetHashAndUpdateProperties(properties, hash);
1058 Handle<Object> properties) {
1071 Object::ToObject(isolate, properties), Object);
2984 // - Copy all existing properties in, in the following order: backing store
2985 // properties, unused fields, inobject properties.
2987 // * Copy inobject properties from the backing store back into the object.
2989 // frees inobject properties that moved to the backing store.
2990 // * If there are properties left in the backing store, trim of the space used
2991 // to temporarily store the inobject properties.
2992 // * If there are properties left in the backing store, install the backing
2999 // If the map does not add named properties, simply set the map.
3075 // We use this array to temporarily store the inobject properties.
3087 // number of properties.
3157 // Copy (real) inobject properties. If necessary, stop at number_of_fields to
3205 // Make space for two more properties.
3303 os << "Object properties have been normalized:\n";
3400 // have external properties, but is also necessary if we only have inobject
3401 // properties but don't unbox double fields.
3828 // in tracking constness for fast mode properties anymore.
4297 // Map::MigrateToMap doesn't handle properties' attributes reconfiguring and
4345 // Slow path: need to normalize properties for safety
5104 // If properties with non-standard attributes or accessors were added, we