Lines Matching defs:value
239 Handle<Object> value,
535 Object value = JSPrimitiveWrapper::cast(*this).value();
536 if (value.IsBoolean()) return roots.Boolean_string();
537 if (value.IsString()) return roots.String_string();
538 if (value.IsNumber()) return roots.Number_string();
539 if (value.IsBigInt()) return roots.BigInt_string();
540 if (value.IsSymbol()) return roots.Symbol_string();
541 if (value.IsScript()) return roots.Script_string();
1253 int32_t value;
1254 CHECK(result->ToInt32(&value));
1255 DCHECK_IMPLIES((value & ~PropertyAttributes::ALL_ATTRIBUTES_MASK) != 0,
1256 value == PropertyAttributes::ABSENT);
1257 return Just(static_cast<PropertyAttributes>(value));
1276 Maybe<ShouldThrow> should_throw, Handle<Object> value) {
1298 result = !args.CallIndexedSetter(interceptor, it->array_index(), value)
1301 result = !args.CallNamedSetter(interceptor, it->name(), value).is_null();
1337 v8::Utils::ToLocal(desc->value()), desc->writable()));
1340 new v8::PropertyDescriptor(v8::Utils::ToLocal(desc->value())));
1395 // 3. Let extensible be the value of the [[Extensible]] internal slot of O.
1447 // [[Configurable]] attribute values are described by Desc. If the value
1449 // created property is set to its default value.
1454 Handle<Object> value(
1456 ? desc->value()
1459 JSObject::DefineOwnPropertyIgnoreAttributes(it, value,
1468 // [[Configurable]] attribute values are described by Desc. If the value
1470 // created property is set to its default value.
1491 // not in the spec: if every field value matches the current value, return.)
1497 (current->has_value() && current->value()->SameValue(*desc->value()))) &&
1508 // 4a. If Desc.[[Configurable]] is present and its value is true, return
1577 if (desc->has_value() && !desc->value()->SameValue(*current->value())) {
1614 // attribute of the property named P of object O to the value of the field.
1640 Handle<Object> value(
1641 desc->has_value() ? desc->value()
1643 ? current->value()
1646 return JSObject::DefineOwnPropertyIgnoreAttributes(it, value, attrs,
1678 Handle<Object> value,
1682 return CreateDataProperty(&it, value, should_throw);
1687 Handle<Object> value,
1694 return JSObject::CreateDataProperty(it, value, should_throw); // Shortcut.
1698 new_desc.set_value(value);
1709 Handle<Object> value,
1719 new_desc.set_value(value);
1746 return Object::TransitionAndWriteDataProperty(it, value, NONE, should_throw,
1859 // 5a. Set D.[[Value]] to the value of X's [[Value]] attribute.
1860 Handle<Object> value;
1861 if (!Object::GetProperty(it).ToHandle(&value)) {
1865 desc->set_value(value);
1866 // 5b. Set D.[[Writable]] to the value of X's [[Writable]] attribute
1874 // 6a. Set D.[[Get]] to the value of X's [[Get]] attribute.
1877 // 6b. Set D.[[Set]] to the value of X's [[Set]] attribute.
1882 // 7. Set D.[[Enumerable]] to the value of X's [[Enumerable]] attribute.
1884 // 8. Set D.[[Configurable]] to the value of X's [[Configurable]] attribute.
2222 Handle<Object> value;
2224 isolate, value, Object::GetPropertyOrElement(isolate, object, key),
2230 entry_storage->set(1, *value);
2231 value = isolate->factory()->NewJSArrayWithElements(entry_storage,
2235 values_or_entries->set(length, *value);
2258 Handle<Object> value, bool from_javascript,
2261 return JSProxy::SetPrototype(isolate, Handle<JSProxy>::cast(object), value,
2264 return JSObject::SetPrototype(isolate, Handle<JSObject>::cast(object), value,
2631 LookupIterator* it, Handle<Object> value, Maybe<ShouldThrow> should_throw) {
2638 return Object::SetPropertyWithAccessor(it, value, should_throw);
2642 it, interceptor, should_throw, value);
2652 Handle<Object> value,
2670 auto cell_type = value->IsUndefined(roots) ? PropertyCellType::kUndefined
2673 auto cell = isolate->factory()->NewPropertyCell(name, details, value);
2678 PropertyCell::PrepareForAndSetValue(isolate, dictionary, entry, value,
2680 DCHECK_EQ(dictionary->CellAt(entry).value(), *value);
2691 SwissNameDictionary::Add(isolate, dictionary, name, value, details);
2694 dictionary->ValueAtPut(entry, *value);
2704 NameDictionary::Add(isolate, dictionary, name, value, details);
2711 dictionary->SetEntry(entry, *name, *value, details);
2718 Handle<Object> value,
2727 NumberDictionary::Set(isolate, dictionary, index, value, object, details);
2856 accumulator->Add(" value = ");
2857 JSPrimitiveWrapper::cast(*this).value().ShortPrint(accumulator);
3022 auto value = isolate->factory()->NewHeapNumberWithHoleNaN();
3023 object->FastPropertyAtPut(index, *value);
3037 Handle<Object> value;
3039 value = isolate->factory()->NewHeapNumberWithHoleNaN();
3041 value = isolate->factory()->uninitialized_value();
3046 new_storage->set(index.outobject_array_index(), *value);
3051 // Set the new property value and do the map transition.
3097 Handle<Object> value;
3104 value = isolate->factory()->NewHeapNumberWithHoleNaN();
3106 value = isolate->factory()->uninitialized_value();
3110 value = handle(old_descriptors->GetStrongValue(isolate, i), isolate);
3116 value = handle(object->RawFastPropertyAt(isolate, index), isolate);
3119 value->IsUninitialized(isolate));
3120 value = Object::NewStorageFor(isolate, value, representation);
3122 value = Object::WrapForRead(isolate, value, old_representation);
3125 DCHECK(!(representation.IsDouble() && value->IsSmi()));
3128 inobject_props->set(target_index, *value);
3130 array->set(target_index - inobject, *value);
3138 Handle<Object> value;
3140 value = isolate->factory()->NewHeapNumberWithHoleNaN();
3142 value = isolate->factory()->uninitialized_value();
3146 inobject_props->set(target_index, *value);
3148 array->set(target_index - inobject, *value);
3162 Object value = inobject_props->get(isolate, i);
3163 object->FastPropertyAtPut(index, value);
3224 Handle<Object> value;
3228 value = handle(object->RawFastPropertyAt(isolate, index), isolate);
3230 DCHECK(value->IsHeapNumber(isolate));
3231 double old_value = Handle<HeapNumber>::cast(value)->value();
3232 value = isolate->factory()->NewHeapNumber(old_value);
3236 value = handle(object->RawFastPropertyAt(isolate, index), isolate);
3241 value = handle(descs->GetStrongValue(isolate, i), isolate);
3243 DCHECK(!value.is_null());
3251 SwissNameDictionary::Add(isolate, ord_dictionary, key, value, d);
3253 dictionary = NameDictionary::Add(isolate, dictionary, key, value, d);
3365 LookupIterator* it, Maybe<ShouldThrow> should_throw, Handle<Object> value) {
3368 should_throw, value);
3425 Object value = storage->get(i);
3426 object->FastPropertyAtPut(index, value);
3467 Handle<Name> name, Handle<Object> value,
3481 CHECK(Object::AddDataProperty(&it, value, attributes,
3488 const char* name, Handle<Object> value,
3491 isolate->factory()->InternalizeUtf8String(name), value,
3500 LookupIterator* it, Handle<Object> value, PropertyAttributes attributes,
3503 it, value, attributes, Just(ShouldThrow::kThrowOnError), handling,
3505 return value;
3509 LookupIterator* it, Handle<Object> value, PropertyAttributes attributes,
3544 descriptor.set_value(value);
3551 JSObject::SetPropertyWithInterceptor(it, should_throw, value);
3559 it->isolate(), it, value, should_throw);
3574 &own_lookup, value, attributes, should_throw, handling, semantics,
3594 return Object::SetPropertyWithAccessor(it, value, should_throw);
3597 it->ReconfigureDataProperty(value, attributes);
3602 it->isolate(), it->GetName(), value, should_throw);
3607 return Object::SetDataProperty(it, value);
3616 it->ReconfigureDataProperty(value, attributes);
3623 return Object::AddDataProperty(it, value, attributes, should_throw,
3628 Handle<JSObject> object, Handle<Name> name, Handle<Object> value,
3630 DCHECK(!value->IsTheHole());
3633 return DefineOwnPropertyIgnoreAttributes(&it, value, attributes);
3637 Handle<JSObject> object, size_t index, Handle<Object> value,
3642 return DefineOwnPropertyIgnoreAttributes(&it, value, attributes);
3646 Handle<JSObject> object, Handle<Name> name, Handle<Object> value,
3651 return DefineOwnPropertyIgnoreAttributes(&it, value, attributes);
3784 Object value;
3795 value = swiss_dictionary->ValueAt(index);
3801 value = dictionary->ValueAt(index);
3832 // TODO(verwaest): value->OptimalRepresentation();
3836 d = Descriptor::AccessorConstant(key, handle(value, isolate),
3842 object->InObjectPropertyAtPut(current_offset, value,
3846 fields->set(offset, value);
3985 Handle<Object> value,
3993 JSReceiver::CheckIfCanDefine(isolate, it, value, should_throw);
3999 DefineOwnPropertyIgnoreAttributes(it, value, NONE),
4471 return maybe_obj.value();
4541 if (String::cast(JSPrimitiveWrapper::cast(object).value()).length() > 0) {
4639 Object JSObject::SlowReverseLookup(Object value) {
4642 bool value_is_number = value.IsNumber();
4651 if (value_is_number && property.Number() == value.Number()) {
4654 } else if (property == value) {
4660 if (descs.GetStrongValue(i) == value) {
4670 .SlowReverseLookup(value);
4672 return property_dictionary_swiss().SlowReverseLookup(GetIsolate(), value);
4674 return property_dictionary().SlowReverseLookup(value);
4678 void JSObject::PrototypeRegistryCompactionCallback(HeapObject value,
4681 DCHECK(value.IsMap() && Map::cast(value).is_prototype_map());
4682 Map map = Map::cast(value);
4890 // Just set the value; the cell will be replaced lazily.
4904 // both to detect changes to the constant value itself, and other changes to
4908 // whenever the validity cell would be invalidated. However, the actual value
4977 Handle<Object> value, bool from_javascript,
4995 // Silently ignore the change if value is not a JSObject or null.
4997 if (!value->IsJSReceiver() && !value->IsNull(isolate)) return Just(true);
5017 if (map->prototype() == *value) return Just(true);
5032 // value.
5041 if (value->IsJSReceiver()) {
5042 for (PrototypeIterator iter(isolate, JSReceiver::cast(*value),
5058 Map::TransitionToPrototype(isolate, map, Handle<HeapObject>::cast(value));
5059 DCHECK(new_map->prototype() == *value);
5145 Object value = dictionary.ValueAt(i);
5146 if (!value.IsNumber()) return HOLEY_ELEMENTS;
5147 if (!value.IsSmi()) {
5158 Handle<Object> value,
5194 ElementsKind to = value->OptimalElementsKind(isolate);
5202 MAYBE_RETURN(accessor->Add(object, index, value, attributes, new_capacity),
5391 Handle<Object> value(cell->value(), isolate);
5395 value);
5412 Handle<Object> value = isolate->factory()->NewNumber(tv);
5413 Handle<JSDate>::cast(result)->SetValue(*value, std::isnan(tv));
5440 .DoGetField(isolate, static_cast<FieldIndex>(index.value()))
5452 // Since the stamp is not NaN, the value is also not NaN.
5454 date_cache->ToLocal(static_cast<int64_t>(value().Number()));
5478 return GetUTCField(index, value().Number(), date_cache);
5481 double time = value().Number();
5495 Object JSDate::GetUTCField(FieldIndex index, double value,
5499 if (std::isnan(value)) return GetReadOnlyRoots().nan_value();
5501 int64_t time_ms = static_cast<int64_t>(value);
5544 Handle<Object> value = isolate->factory()->NewNumber(v);
5546 date->SetValue(*value, value_is_nan);
5547 return value;
5550 void JSDate::SetValue(Object value, bool is_value_nan) {
5551 set_value(value);
5591 DCHECK_GE(message->bytecode_offset().value(), kFunctionEntryBytecodeOffset);
5600 message->bytecode_offset().value());