Home | History | Annotate | Download | only in scripts

Lines Matching refs:paramIndex

2215     my ($parameterCheckString, $paramIndex, %replacements) = GenerateParametersCheck($function, $interface, $forMainWorldSuffix);
2219 $code .= GenerateFunctionCallString($function, $paramIndex, " ", $interface, $forMainWorldSuffix, %replacements);
2295 my $paramIndex = 0;
2305 $parameterCheckString .= " if (args.Length() <= $paramIndex)";
2306 my $functionCall = GenerateFunctionCallString($function, $paramIndex, " " x 2, $interface, $forMainWorldSuffix, %replacements);
2320 $parameterCheckString .= " if (args.Length() > $paramIndex && !args[$paramIndex]->IsNull() && !args[$paramIndex]->IsUndefined()) {\n";
2321 $parameterCheckString .= " if (!args[$paramIndex]->IsFunction()) {\n";
2325 $parameterCheckString .= " $parameterName = ${v8ClassName}::create(args[$paramIndex], getScriptExecutionContext());\n";
2328 $parameterCheckString .= " if (args.Length() <= $paramIndex || ";
2330 $parameterCheckString .= "!(args[$paramIndex]->IsFunction() || args[$paramIndex]->IsNull())";
2332 $parameterCheckString .= "!args[$paramIndex]->IsFunction()";
2339 $parameterCheckString .= "args[$paramIndex]->IsNull() ? 0 : " if $parameter->isNullable;
2340 $parameterCheckString .= "${v8ClassName}::create(args[$paramIndex], getScriptExecutionContext());\n";
2346 $parameterCheckString .= " V8TRYCATCH_VOID(double, $nativeValue, args[$paramIndex]->NumberValue());\n";
2352 $parameterCheckString .= " $nativeType $parameterName = SerializedScriptValue::create(args[$paramIndex], 0, 0, ${parameterName}DidThrow, args.GetIsolate());\n";
2364 $parameterCheckString .= " for (int i = $paramIndex; i < args.Length(); ++i) {\n";
2372 $parameterCheckString .= " V8TRYCATCH_VOID(Vector<$nativeElementType>, $parameterName, toNativeArguments<$nativeElementType>(args, $paramIndex));\n";
2376 my $jsValue = $parameter->isOptional && $default eq "NullString" ? "argumentOrNull(args, $paramIndex)" : "args[$paramIndex]";
2399 my $argValue = "args[$paramIndex]";
2402 $parameterCheckString .= " if (args.Length() > $paramIndex && !isUndefinedOrNull($argValue) && !V8${argType}::HasInstance($argValue, args.GetIsolate(), worldType(args.GetIsolate()))) {\n";
2409 my $jsValue = $parameter->isOptional && $default eq "NullString" ? "argumentOrNull(args, $paramIndex)" : "args[$paramIndex]";
2427 $paramIndex++;
2429 return ($parameterCheckString, $paramIndex, %replacements);
2508 my ($parameterCheckString, $paramIndex, %replacements) = GenerateParametersCheck($function, $interface, "");
2530 last if $index eq $paramIndex;
2803 my ($parameterCheckString, $paramIndex, %replacements) = GenerateParametersCheck($function, $interface);
2815 last if $index eq $paramIndex;