Lines Matching refs:value
333 void LookupIterator::PrepareForDataProperty(Handle<Object> value) {
349 ElementsKind to = value->OptimalElementsKind(isolate_);
373 isolate(), dictionary, dictionary_entry(), value, property_details_);
380 // Check that current value matches new value otherwise we should make
383 if (!IsConstFieldValueEqualTo(*value)) {
387 if (!IsConstDictValueEqualTo(*value)) {
420 isolate(), new_map, descriptor_number(), new_constness, value);
460 void LookupIterator::ReconfigureDataProperty(Handle<Object> value,
482 holder_obj, elements, number_, value, attributes);
486 // Force mutable to avoid changing constant value by reconfiguring
496 PropertyConstness::kMutable, value);
524 isolate(), dictionary, dictionary_entry(), value, details);
526 DCHECK_EQ(cell->value(), *value);
533 dictionary->ValueAtPut(dictionary_entry(), *value);
546 dictionary->SetEntry(dictionary_entry(), *name(), *value, details);
553 WriteDataValue(value, true);
566 Handle<JSReceiver> receiver, Handle<Object> value,
589 DCHECK(!value->IsTheHole(isolate_));
590 // Don't set enumeration index (it will be set during value store).
593 PropertyCell::InitialType(isolate_, *value));
595 name(), property_details_, value);
598 // Don't set enumeration index (it will be set during value store).
608 Map::TransitionToDataProperty(isolate_, map, name_, value, attributes,
615 // Don't set enumeration index (it will be set during value store).
646 // Reload details containing proper enumeration index value.
697 // Reload details containing proper enumeration index value.
943 bool LookupIterator::IsConstFieldValueEqualTo(Object value) const {
948 if (value.IsUninitialized(isolate())) {
949 // Storing uninitialized value means that we are preparing for a computed
950 // property value in an object literal. The initializing store will follow
951 // and it will properly update constness based on the actual value.
958 if (!value.IsNumber(isolate_)) return false;
965 // bit_cast or value(), will change its value on ia32 (the x87 stack is
972 return Object::SameNumberValue(bit_cast<double>(bits), value.Number());
975 if (current_value.IsUninitialized(isolate()) || current_value == value) {
978 return current_value.IsNumber(isolate_) && value.IsNumber(isolate_) &&
979 Object::SameNumberValue(current_value.Number(), value.Number());
983 bool LookupIterator::IsConstDictValueEqualTo(Object value) const {
992 if (value.IsUninitialized(isolate())) {
993 // Storing uninitialized value means that we are preparing for a computed
994 // property value in an object literal. The initializing store will follow
995 // and it will properly update constness based on the actual value.
1008 if (current_value.IsUninitialized(isolate()) || current_value == value) {
1011 return current_value.IsNumber(isolate_) && value.IsNumber(isolate_) &&
1012 Object::SameNumberValue(current_value.Number(), value.Number());
1056 Handle<Object> value = FetchValue(allocation_policy);
1057 return value;
1072 void LookupIterator::WriteDataValue(Handle<Object> value,
1080 DCHECK_IMPLIES(holder_->IsJSSharedStruct(), value->IsShared());
1086 accessor->Set(object, number_, *value);
1090 // Check that in case of VariableMode::kConst field the existing value is
1091 // equal to |value|.
1094 IsConstFieldValueEqualTo(*value));
1096 property_details_, *value);
1102 // PropertyCell::PrepareForAndSetValue already wrote the value into the
1108 DCHECK(cell.value() == *value ||
1109 (cell.value().IsString() && value->IsString() &&
1110 String::cast(cell.value()).Equals(String::cast(*value))));
1118 holder->IsJSProxy(isolate_) || IsConstDictValueEqualTo(*value));
1123 dictionary.ValueAtPut(dictionary_entry(), *value);
1126 dictionary.ValueAtPut(dictionary_entry(), *value);
1131 void LookupIterator::WriteDataValue(Handle<Object> value, SeqCstAccessTag tag) {
1140 holder->FastPropertyAtPut(field_index, *value, tag);
1143 Handle<Object> LookupIterator::SwapDataValue(Handle<Object> value,
1153 return handle(holder->RawFastPropertyAtSwap(field_index, *value, tag),
1173 void LookupIterator::WriteDataValueToWasmObject(Handle<Object> value) {
1187 value);
1285 if (cell.value(isolate_).IsTheHole(isolate_)) {
1427 name_ = handle(maybe_name.value(), isolate_);
1498 // - holder.AsJSPrimitiveWrapper.value.AsString.length (immutable).
1499 // - holder.AsJSPrimitiveWrapper.value.AsString[i] (immutable).
1528 String wrapped_string = String::cast(js_value.value());
1569 Object value = isolate->factory()->single_character_string_cache()->get(
1571 if (value == ReadOnlyRoots(isolate).undefined_value()) return kGaveUp;
1573 *result_out = String::cast(value);
1594 Object maybe_accessor_pair = cell->value(kAcquireLoad);