Lines Matching defs:value

104 #include "src/objects/value-serializer.h"
133 #include "src/wasm/value-type.h"
890 Value* Eternalize(Isolate* v8_isolate, Value* value) {
892 i::Object object = *Utils::OpenHandle(value);
900 Utils::ApiCheck(false, "v8::FromJust", "Maybe value is Nothing.");
953 i::Address* HandleScope::CreateHandle(i::Isolate* isolate, i::Address value) {
954 return i::HandleScope::CreateHandle(isolate, value);
967 "EscapableHandleScope::Escape", "Escape value set twice");
1130 void Context::SetEmbedderData(int index, v8::Local<Value> value) {
1135 i::Handle<i::Object> val = Utils::OpenHandle(*value);
1137 DCHECK_EQ(*Utils::OpenHandle(*value),
1155 void Context::SetAlignedPointerInEmbedderData(int index, void* value) {
1161 i::EmbedderDataSlot(*data, index).store_aligned_pointer(isolate, value);
1163 DCHECK_EQ(value, GetAlignedPointerFromEmbedderData(index));
1177 void Template::Set(v8::Local<Name> name, v8::Local<Data> value,
1183 auto value_obj = Utils::OpenHandle(*value);
1187 "Invalid value, must be a primitive or a Template");
1190 // ObjectTemplate as a property value then we can not cache the receiver
1201 void Template::SetPrivate(v8::Local<Private> name, v8::Local<Data> value,
1203 Set(Utils::ToLocal(Utils::OpenHandle(reinterpret_cast<Name*>(*name))), value,
1275 void FunctionTemplate::Inherit(v8::Local<FunctionTemplate> value) {
1284 Utils::OpenHandle(*value));
1535 void FunctionTemplate::SetAcceptAnyReceiver(bool value) {
1540 info->set_accept_any_receiver(value);
1956 void ObjectTemplate::SetInternalFieldCount(int value) {
1958 if (!Utils::ApiCheck(i::Smi::IsValid(value),
1964 if (value > 0) {
1970 Utils::OpenHandle(this)->set_embedder_field_count(value);
2962 void v8::TryCatch::SetVerbose(bool value) { is_verbose_ = value; }
2966 void v8::TryCatch::SetCaptureMessage(bool value) { capture_message_ = value; }
3370 Local<Value> value) {
3374 i::Handle<i::Object> object = Utils::OpenHandle(*value);
3391 void ValueSerializer::WriteUint32(uint32_t value) {
3392 private_->serializer.WriteUint32(value);
3395 void ValueSerializer::WriteUint64(uint64_t value) {
3396 private_->serializer.WriteUint64(value);
3399 void ValueSerializer::WriteDouble(double value) {
3400 private_->serializer.WriteDouble(value);
3507 Local<Value> value;
3508 has_pending_exception = !ToLocal(result, &value);
3510 RETURN_ESCAPED(value);
3525 bool ValueDeserializer::ReadUint32(uint32_t* value) {
3526 return private_->deserializer.ReadUint32(value);
3529 bool ValueDeserializer::ReadUint64(uint64_t* value) {
3530 return private_->deserializer.ReadUint64(value);
3533 bool ValueDeserializer::ReadDouble(double* value) {
3534 return private_->deserializer.ReadDouble(value);
3675 double value = obj->Number();
3676 return !i::IsMinusZero(value) && value >= 0 && value <= i::kMaxUInt32 &&
3677 value == i::FastUI2D(i::FastD2UI(value));
4215 i::Handle<i::Object> value;
4217 value = i::Handle<i::Object>(i::Smi::FromInt(index), isolate);
4219 value = isolate->factory()->NewNumber(index);
4221 RETURN_ESCAPED(Utils::Uint32ToLocal(value));
4271 v8::Local<Value> key, v8::Local<Value> value) {
4276 auto value_obj = Utils::OpenHandle(*value);
4287 v8::Local<Value> value) {
4291 auto value_obj = Utils::OpenHandle(*value);
4301 v8::Local<Value> value) {
4305 i::Handle<i::Object> value_obj = Utils::OpenHandle(*value);
4330 v8::Local<Value> value) {
4333 i::Handle<i::Object> value_obj = Utils::OpenHandle(*value);
4363 v8::PropertyDescriptor::PropertyDescriptor(v8::Local<v8::Value> value)
4365 private_->desc.set_value(Utils::OpenHandle(*value, true));
4369 v8::PropertyDescriptor::PropertyDescriptor(v8::Local<v8::Value> value,
4372 private_->desc.set_value(Utils::OpenHandle(*value, true));
4388 v8::Local<Value> v8::PropertyDescriptor::value() const {
4390 return Utils::ToLocal(private_->desc.value());
4450 v8::Local<Value> value,
4455 i::Handle<i::Object> value_obj = Utils::OpenHandle(*value);
4500 Local<Value> value) {
4506 auto value_obj = Utils::OpenHandle(*value);
4600 Local<Value> value) {
4603 auto value_obj = Utils::OpenHandle(*value);
4656 i::Handle<i::FixedArray> value;
4663 value =
4668 *value);
4669 auto result = isolate->factory()->NewJSArrayWithElements(value);
5113 return self->GetOrCreateIdentityHash(isolate).value();
5420 static const uint32_t value = 0xFF00FF00;
5424 static const uint64_t value = 0xFF00'FF00'FF00'FF00;
5426 static const uintptr_t kOneByteMask = OneByteMask<sizeof(uintptr_t)>::value;
5460 // checking the return value at the end of each block.
5751 v8::String::ExternalStringResource* value) const {
5766 CHECK_EQ(expected, value);
5770 v8::String::ExternalStringResourceBase* value, Encoding encoding) const {
5793 CHECK_EQ(expected, value);
5808 internal::Address value = I::ReadExternalPointerField(
5811 return reinterpret_cast<String::ExternalStringResource*>(value);
5852 internal::Address value =
5855 resource = reinterpret_cast<ExternalStringResourceBase*>(value);
5946 i::Handle<i::Object> value(i::JSObject::cast(*obj).GetEmbedderField(index),
5948 return Utils::ToLocal(value);
5952 void SetInternalFieldImpl(v8::Object* receiver, int index, v8::Local<T> value) {
5956 i::Handle<i::Object> val = Utils::OpenHandle(*value);
5960 void v8::Object::SetInternalField(int index, v8::Local<Value> value) {
5961 SetInternalFieldImpl(this, index, value);
5969 v8::Local<Module> value) {
5970 SetInternalFieldImpl(this, index, value);
5974 v8::Local<UnboundScript> value) {
5975 SetInternalFieldImpl(this, index, value);
5989 void v8::Object::SetAlignedPointerInInternalField(int index, void* value) {
6002 .store_aligned_pointer(obj->GetIsolate(), value),
6004 DCHECK_EQ(value, GetAlignedPointerFromInternalField(index));
6031 void* value = values[i];
6033 .store_aligned_pointer(obj->GetIsolate(), value),
6035 DCHECK_EQ(value, GetAlignedPointerFromInternalField(index));
6071 "Smi value size is %d while on V8 side it's %d.",
6745 bool FunctionTemplate::HasInstance(v8::Local<v8::Value> value) {
6747 auto obj = Utils::OpenHandle(*value);
6765 v8::Local<v8::Value> value) const {
6768 i::Object object = *Utils::OpenHandle(*value);
6774 Local<External> v8::External::New(Isolate* isolate, void* value) {
6775 STATIC_ASSERT(sizeof(value) == sizeof(i::Address));
6780 DCHECK_NOT_NULL(value);
6784 i::Handle<i::JSObject> external = i_isolate->factory()->NewExternal(value);
6790 return i::JSExternalObject::cast(*self).value();
7071 i::Handle<i::Object> value = Utils::OpenHandle(*values[i]);
7074 // add the {name}/{value} pair to the {elements}, otherwise they end
7086 value);
7092 // Add the {name}/{value} pair as a new entry.
7094 i_isolate, properties, name, value, i::PropertyDetails::Empty()));
7096 // Overwrite the {entry} with the {value}.
7097 properties->ValueAtPut(entry, *value);
7146 Local<v8::Value> v8::NumberObject::New(Isolate* isolate, double value) {
7150 i::Handle<i::Object> number = i_isolate->factory()->NewNumber(value);
7161 return js_primitive_wrapper->value().Number();
7164 Local<v8::Value> v8::BigIntObject::New(Isolate* isolate, int64_t value) {
7168 i::Handle<i::Object> bigint = i::BigInt::FromInt64(i_isolate, value);
7181 i::BigInt::cast(js_primitive_wrapper->value()), isolate));
7184 Local<v8::Value> v8::BooleanObject::New(Isolate* isolate, bool value) {
7188 i::Handle<i::Object> boolean(value
7202 return js_primitive_wrapper.value().IsTrue(isolate);
7206 Local<String> value) {
7207 i::Handle<i::String> string = Utils::OpenHandle(*value);
7223 i::String::cast(js_primitive_wrapper->value()), isolate));
7226 Local<v8::Value> v8::SymbolObject::New(Isolate* isolate, Local<Symbol> value) {
7231 i::Object::ToObject(i_isolate, Utils::OpenHandle(*value))
7243 i::Symbol::cast(js_primitive_wrapper->value()), isolate));
7248 // Introduce only canonical NaN value into the VM, to avoid signaling NaNs.
7264 return jsdate->value().Number();
7269 #define TIME_ZONE_DETECTION_ASSERT_EQ(value) \
7271 static_cast<int>(v8::Isolate::TimeZoneDetection::value) == \
7272 static_cast<int>(base::TimezoneCache::TimeZoneDetection::value));
7429 Local<Value> value) {
7434 Utils::OpenHandle(*value)};
7645 Local<Value> value) {
7657 i::JSPromise::Resolve(promise, Utils::OpenHandle(*value)).is_null();
7663 Local<Value> value) {
7675 i::JSPromise::Reject(promise, Utils::OpenHandle(*value)).is_null();
8099 "length exceeds max allowed value")) { \
8119 "length exceeds max allowed value")) { \
8292 Local<Number> v8::Number::New(Isolate* isolate, double value) {
8294 if (std::isnan(value)) {
8295 // Introduce only canonical NaN value into the VM, to avoid signaling NaNs.
8296 value = std::numeric_limits<double>::quiet_NaN();
8299 i::Handle<i::Object> result = internal_isolate->factory()->NewNumber(value);
8303 Local<Integer> v8::Integer::New(Isolate* isolate, int32_t value) {
8305 if (i::Smi::IsValid(value)) {
8307 i::Handle<i::Object>(i::Smi::FromInt(value), internal_isolate));
8310 i::Handle<i::Object> result = internal_isolate->factory()->NewNumber(value);
8314 Local<Integer> v8::Integer::NewFromUnsigned(Isolate* isolate, uint32_t value) {
8316 bool fits_into_int32_t = (value & (1 << 31)) == 0;
8318 return Integer::New(isolate, static_cast<int32_t>(value));
8321 i::Handle<i::Object> result = internal_isolate->factory()->NewNumber(value);
8325 Local<BigInt> v8::BigInt::New(Isolate* isolate, int64_t value) {
8328 i::Handle<i::BigInt> result = i::BigInt::FromInt64(internal_isolate, value);
8332 Local<BigInt> v8::BigInt::NewFromUnsigned(Isolate* isolate, uint64_t value) {
8335 i::Handle<i::BigInt> result = i::BigInt::FromUint64(internal_isolate, value);
8433 v8::Local<Value> Isolate::ThrowException(v8::Local<v8::Value> value) {
8438 if (value.IsEmpty()) {
8441 isolate->ScheduleThrow(*Utils::OpenHandle(*value));
10232 SnapshotObjectId HeapProfiler::GetObjectId(Local<Value> value) {
10233 i::Handle<i::Object> obj = Utils::OpenHandle(*value);
10237 SnapshotObjectId HeapProfiler::GetObjectId(NativeObject value) {
10238 return reinterpret_cast<i::HeapProfiler*>(this)->GetSnapshotObjectId(value);
10475 Local<Value> value) {