Lines Matching refs:value

39 #include "src/wasm/value-type.h"
45 #include "src/wasm/wasm-value.h"
76 // If no exception value is provided, we do not reject the promise. This can
151 Local<Value> value) {
155 i::Handle<i::Managed<WasmStreaming>>::cast(Utils::OpenHandle(*value));
582 // Create and assign the return value of this function.
627 // set as result value.
870 // Create and assign the return value of this function.
935 // set as result value.
1023 Local<Context> context, v8::Local<v8::Value> value,
1027 if (!EnforceUint32(property_name, value, context, thrower, &number)) {
1031 thrower->RangeError("Property '%s': value %" PRIu32
1037 thrower->RangeError("Property '%s': value %" PRIu32
1053 v8::Local<v8::Value> value;
1054 if (!object->Get(context, property).ToLocal(&value)) {
1060 if (value->IsUndefined()) {
1068 return GetIntegerProperty(isolate, thrower, context, value, property_name,
1150 v8::Local<v8::Value> value;
1151 if (!maybe.ToLocal(&value)) return;
1153 if (!value->ToString(context).ToLocal(&string)) return;
1212 "Argument 2 must be undefined, null, or a value of type compatible "
1265 v8::Local<v8::Value> value;
1266 if (maybe_value.ToLocal(&value)) {
1267 shared = value->BooleanValue(isolate) ? i::SharedFlag::kShared
1317 // Determines the type encoded in a value type property (e.g. type reflection).
1324 v8::Local<v8::Value> value;
1325 if (!maybe.ToLocal(&value)) return false;
1327 if (!value->ToString(context).ToLocal(&string)) return false;
1358 bool ToI32(Local<v8::Value> value, Local<Context> context, int32_t* i32_value) {
1359 if (!value->IsUndefined()) {
1361 if (!value->ToInt32(context).ToLocal(&int32_value)) return false;
1367 bool ToI64(Local<v8::Value> value, Local<Context> context, int64_t* i64_value) {
1368 if (!value->IsUndefined()) {
1370 if (!value->ToBigInt(context).ToLocal(&bigint_value)) return false;
1376 bool ToF32(Local<v8::Value> value, Local<Context> context, float* f32_value) {
1377 if (!value->IsUndefined()) {
1380 if (!value->ToNumber(context).ToLocal(&number_value)) return false;
1387 bool ToF64(Local<v8::Value> value, Local<Context> context, double* f64_value) {
1388 if (!value->IsUndefined()) {
1390 if (!value->ToNumber(context).ToLocal(&number_value)) return false;
1421 v8::Local<v8::Value> value;
1422 if (maybe.ToLocal(&value)) {
1423 is_mutable = value->BooleanValue(isolate);
1430 // The descriptor's type, called 'value'. It is called 'value' because this
1436 descriptor->Get(context, v8_str(isolate, "value"));
1440 "Descriptor property 'value' must be a WebAssembly type");
1470 // Convert value to a WebAssembly value, the default value is 0.
1471 Local<v8::Value> value = Local<Value>::Cast(args[1]);
1475 if (!ToI32(value, context, &i32_value)) return;
1481 if (!ToI64(value, context, &i64_value)) return;
1487 if (!ToF32(value, context, &f32_value)) return;
1493 if (!ToF64(value, context, &f64_value)) return;
1502 // When no initial value is provided, we have to use the WebAssembly
1503 // default value 'null', and not the JS default value 'undefined'.
1507 global_obj->SetExternRef(Utils::OpenHandle(*value));
1512 // When no initial value is provided, we have to use the WebAssembly
1513 // default value 'null', and not the JS default value 'undefined'.
1519 if (!global_obj->SetFuncRef(i_isolate, Utils::OpenHandle(*value))) {
1521 "The value of funcref globals must be null or an "
1618 "Argument 0 parameter type at index #%u must be a value type", i);
1624 // meaningful value when declared outside of a wasm module.
1684 Local<Value> value = maybe_value.ToLocalChecked();
1689 if (!ToI32(value, context, &i32)) return;
1695 if (!ToI64(value, context, &i64)) return;
1701 if (!ToF32(value, context, &f32)) return;
1708 if (!ToF64(value, context, &f64)) return;
1722 values_out->set(index++, *Utils::OpenHandle(*value));
1851 "Argument 0 parameter type at index #%u must be a value type", i);
1862 "Argument 0 result type at index #%u must be a value type", i);
2303 // Decode the value at {decode_index}.
2404 Local<BigInt> value = BigInt::New(isolate, receiver->GetI64());
2405 return_value.Set(value);
2415 thrower.TypeError("Can't get the value of s128 WebAssembly.Global");
2459 // get WebAssembly.Global.value -> num
2462 return WebAssemblyGlobalGetValueCommon(args, "get WebAssembly.Global.value");
2465 // set WebAssembly.Global.value(num)
2472 ScheduledErrorThrower thrower(i_isolate, "set WebAssembly.Global.value");
2476 thrower.TypeError("Can't set the value of an immutable global.");
2510 thrower.TypeError("Can't set the value of s128 WebAssembly.Global");
2521 "value of an funcref reference must be either null or an "
2885 InstallGetterSetter(isolate, global_proto, "value", WebAssemblyGlobalGetValue,