Lines Matching defs:context
61 i_isolate, enabled_features, handle(i_isolate->context(), i_isolate),
476 bool EnforceUint32(T argument_name, Local<v8::Value> v, Local<Context> context,
480 if (!v->NumberValue(context).To(&double_number)) {
519 Local<Context> context = isolate->GetCurrentContext();
520 ASSIGN(Promise::Resolver, promise_resolver, Promise::Resolver::New(context));
580 Local<Context> context = isolate->GetCurrentContext();
583 ASSIGN(Promise::Resolver, result_resolver, Promise::Resolver::New(context));
609 v8::Function::New(context, i_isolate->wasm_streaming_callback(),
613 v8::Function::New(context, WasmStreamingPromiseFailedCallback,
622 ASSIGN(Promise::Resolver, input_resolver, Promise::Resolver::New(context));
623 if (!input_resolver->Resolve(context, args[0]).IsJust()) return;
628 USE(input_resolver->GetPromise()->Then(context, compile_callback,
866 Local<Context> context = isolate->GetCurrentContext();
871 ASSIGN(Promise::Resolver, result_resolver, Promise::Resolver::New(context));
917 v8::Function::New(context, i_isolate->wasm_streaming_callback(),
921 v8::Function::New(context, WasmStreamingPromiseFailedCallback,
930 ASSIGN(Promise::Resolver, input_resolver, Promise::Resolver::New(context));
931 if (!input_resolver->Resolve(context, args[0]).IsJust()) return;
936 USE(input_resolver->GetPromise()->Then(context, compile_callback,
954 Local<Context> context = isolate->GetCurrentContext();
956 ASSIGN(Promise::Resolver, promise_resolver, Promise::Resolver::New(context));
1023 Local<Context> context, v8::Local<v8::Value> value,
1027 if (!EnforceUint32(property_name, value, context, thrower, &number)) {
1048 Local<Context> context,
1054 if (!object->Get(context, property).ToLocal(&value)) {
1068 return GetIntegerProperty(isolate, thrower, context, value, property_name,
1077 Local<Context> context,
1081 if (!GetOptionalIntegerProperty(isolate, thrower, context, object,
1091 if (!GetOptionalIntegerProperty(isolate, thrower, context, object,
1143 Local<Context> context = isolate->GetCurrentContext();
1149 descriptor->Get(context, v8_str(isolate, "element"));
1153 if (!value->ToString(context).ToLocal(&string)) return;
1174 if (!GetInitialOrMinimumProperty(isolate, &thrower, context, descriptor,
1182 if (!GetOptionalIntegerProperty(isolate, &thrower, context, descriptor,
1242 Local<Context> context = isolate->GetCurrentContext();
1246 if (!GetInitialOrMinimumProperty(isolate, &thrower, context, descriptor,
1252 if (!GetOptionalIntegerProperty(isolate, &thrower, context, descriptor,
1264 descriptor->Get(context, shared_key);
1322 Local<Context> context, i::wasm::ValueType* type,
1327 if (!value->ToString(context).ToLocal(&string)) return false;
1358 bool ToI32(Local<v8::Value> value, Local<Context> context, int32_t* i32_value) {
1361 if (!value->ToInt32(context).ToLocal(&int32_value)) return false;
1362 if (!int32_value->Int32Value(context).To(i32_value)) return false;
1367 bool ToI64(Local<v8::Value> value, Local<Context> context, int64_t* i64_value) {
1370 if (!value->ToBigInt(context).ToLocal(&bigint_value)) return false;
1376 bool ToF32(Local<v8::Value> value, Local<Context> context, float* f32_value) {
1380 if (!value->ToNumber(context).ToLocal(&number_value)) return false;
1381 if (!number_value->NumberValue(context).To(&f64_value)) return false;
1387 bool ToF64(Local<v8::Value> value, Local<Context> context, double* f64_value) {
1390 if (!value->ToNumber(context).ToLocal(&number_value)) return false;
1391 if (!number_value->NumberValue(context).To(f64_value)) return false;
1412 Local<Context> context = isolate->GetCurrentContext();
1420 v8::MaybeLocal<v8::Value> maybe = descriptor->Get(context, mutable_key);
1436 descriptor->Get(context, v8_str(isolate, "value"));
1437 if (!GetValueType(isolate, maybe, context, &type, enabled_features)) return;
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;
1555 uint32_t GetIterableLength(i::Isolate* isolate, Local<Context> context,
1558 MaybeLocal<Value> property = iterable->Get(context, length);
1560 MaybeLocal<Uint32> number = property.ToLocalChecked()->ToArrayIndex(context);
1585 Local<Context> context = isolate->GetCurrentContext();
1591 event_type->Get(context, parameters_key);
1599 uint32_t parameters_len = GetIterableLength(i_isolate, context, parameters);
1614 MaybeLocal<Value> maybe = parameters->Get(context, i);
1615 if (!GetValueType(isolate, maybe, context, &type, enabled_features) ||
1675 Local<Context> context = isolate->GetCurrentContext();
1683 MaybeLocal<Value> maybe_value = values->Get(context, i);
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;
1797 Local<Context> context = isolate->GetCurrentContext();
1803 function_type->Get(context, parameters_key);
1811 uint32_t parameters_len = GetIterableLength(i_isolate, context, parameters);
1824 function_type->Get(context, results_key);
1832 uint32_t results_len = GetIterableLength(i_isolate, context, results);
1847 MaybeLocal<Value> maybe = parameters->Get(context, i);
1848 if (!GetValueType(isolate, maybe, context, &type, enabled_features) ||
1858 MaybeLocal<Value> maybe = results->Get(context, i);
1859 if (!GetValueType(isolate, maybe, context, &type, enabled_features)) return;
1991 Local<Context> context = isolate->GetCurrentContext();
1995 if (!EnforceUint32("Argument 0", args[0], context, &thrower, &grow_by)) {
2036 Local<Context> context = isolate->GetCurrentContext();
2040 if (!EnforceUint32("Argument 0", args[0], context, &thrower, &index)) {
2066 Local<Context> context = isolate->GetCurrentContext();
2071 if (!EnforceUint32("Argument 0", args[0], context, &thrower, &index)) {
2123 Local<Context> context = isolate->GetCurrentContext();
2127 if (!EnforceUint32("Argument 0", args[0], context, &thrower, &delta_pages)) {
2236 Local<Context> context = isolate->GetCurrentContext();
2238 if (!EnforceUint32("Index", args[1], context, &thrower, &index)) {
2471 Local<Context> context = isolate->GetCurrentContext();
2487 if (!args[0]->Int32Value(context).To(&i32_value)) return;
2493 if (!args[0]->ToBigInt(context).ToLocal(&bigint_value)) return;
2499 if (!args[0]->NumberValue(context).To(&f64_value)) return;
2505 if (!args[0]->NumberValue(context).To(&f64_value)) return;
2769 Handle<Context> context(global->native_context(), isolate);
2771 Object prev = context->get(Context::WASM_MODULE_CONSTRUCTOR_INDEX);
2787 Factory::JSFunctionBuilder{isolate, info, context}.Build();
2821 context->set_wasm_module_constructor(*module_constructor);
2836 context->set_wasm_instance_constructor(*instance_constructor);
2840 // The context is not set up completely yet. That's why we cannot use
2851 context->set_wasm_table_constructor(*table_constructor);
2868 context->set_wasm_memory_constructor(*memory_constructor);
2882 context->set_wasm_global_constructor(*global_constructor);
2899 context->set_wasm_tag_constructor(*tag_constructor);
2920 context->set_wasm_exception_constructor(*exception_constructor);
2929 context->set_wasm_suspender_constructor(*suspender_constructor);
2951 handle(context->function_function().prototype(), isolate), false,
2959 context->set_wasm_exported_function_map(*function_map);
2963 context->set_wasm_exported_function_map(*function_map);
2986 Handle<Context> context) {
2989 auto enabled_features = i::wasm::WasmFeatures::FromContext(isolate, context);
2991 Handle<JSGlobalObject> global = handle(context->global_object(), isolate);
3022 context->set_wasm_tag_constructor(*tag_constructor);