Changeset 206338 in webkit


Ignore:
Timestamp:
Sep 23, 2016, 4:57:26 PM (9 years ago)
Author:
Yusuke Suzuki
Message:

[Binding] Use unchekcedArgument if argumentCount is already checked
https://bugs.webkit.org/show_bug.cgi?id=162502

Reviewed by Geoffrey Garen.

It is not necessary to use exec->argument(n) after checking the argument exists.
This patch changes argument(n) to uncheckedArgument(n) if we already proved that
the argument exists. This change drops branches generated by exec->argument(n).
And it is good for small DOM operations in which DOM binding code occupies large
part of entire processing. This patch and another small patch[1] offer roughly 5%
improvement in Dromaeo dom-attr's getAttribute and setAttribute tests.

[1]: https://bugs.webkit.org/show_bug.cgi?id=162503

  • bindings/scripts/CodeGeneratorJS.pm:

(GenerateParametersCheck): GenerateParameterCheck requires GenerateArgumentsCountCheck.
As a result, existence of mandatory arguments are already checked. We can use uncheckedArgument(n)
for mandatory arguments.

  • bindings/scripts/test/JS/JSTestActiveDOMObject.cpp:

(WebCore::jsTestActiveDOMObjectPrototypeFunctionExcitingFunction):
(WebCore::jsTestActiveDOMObjectPrototypeFunctionPostMessage):

  • bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp:

(WebCore::jsTestCustomNamedGetterPrototypeFunctionAnotherFunction):

  • bindings/scripts/test/JS/JSTestEventTarget.cpp:

(WebCore::jsTestEventTargetPrototypeFunctionItem):

  • bindings/scripts/test/JS/JSTestGlobalObject.cpp:

(WebCore::jsTestGlobalObjectInstanceFunctionRegularOperation):
(WebCore::jsTestGlobalObjectInstanceFunctionEnabledAtRuntimeOperation1):
(WebCore::jsTestGlobalObjectInstanceFunctionEnabledAtRuntimeOperation2):

  • bindings/scripts/test/JS/JSTestInterface.cpp:

(WebCore::JSTestInterfaceConstructor::construct):
(WebCore::jsTestInterfacePrototypeFunctionImplementsMethod2):
(WebCore::jsTestInterfacePrototypeFunctionSupplementalMethod2):

  • bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp:

(WebCore::jsTestMediaQueryListListenerPrototypeFunctionMethod):

  • bindings/scripts/test/JS/JSTestNamedConstructor.cpp:

(WebCore::JSTestNamedConstructorNamedConstructor::construct):

  • bindings/scripts/test/JS/JSTestObj.cpp:

(WebCore::JSTestObjConstructor::construct):
(WebCore::jsTestObjPrototypeFunctionEnabledAtRuntimeOperation1):
(WebCore::jsTestObjPrototypeFunctionEnabledAtRuntimeOperation2):
(WebCore::jsTestObjPrototypeFunctionVoidMethodWithArgs):
(WebCore::jsTestObjPrototypeFunctionByteMethodWithArgs):
(WebCore::jsTestObjPrototypeFunctionOctetMethodWithArgs):
(WebCore::jsTestObjPrototypeFunctionLongMethodWithArgs):
(WebCore::jsTestObjPrototypeFunctionObjMethodWithArgs):
(WebCore::jsTestObjPrototypeFunctionMethodWithArgTreatingNullAsEmptyString):
(WebCore::jsTestObjPrototypeFunctionMethodWithXPathNSResolverParameter):
(WebCore::jsTestObjPrototypeFunctionNullableStringSpecialMethod):
(WebCore::jsTestObjPrototypeFunctionMethodWithEnumArg):
(WebCore::jsTestObjPrototypeFunctionMethodThatRequiresAllArgsAndThrows):
(WebCore::jsTestObjPrototypeFunctionMethodWithUSVStringArg):
(WebCore::jsTestObjPrototypeFunctionMethodWithNullableUSVStringArg):
(WebCore::jsTestObjPrototypeFunctionMethodWithUSVStringArgTreatingNullAsEmptyString):
(WebCore::jsTestObjPrototypeFunctionSerializedValue):
(WebCore::jsTestObjPrototypeFunctionOptionsObject):
(WebCore::jsTestObjPrototypeFunctionPrivateMethod):
(WebCore::jsTestObjPrototypeFunctionPublicAndPrivateMethod):
(WebCore::jsTestObjPrototypeFunctionAddEventListener):
(WebCore::jsTestObjPrototypeFunctionRemoveEventListener):
(WebCore::jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndOptionalArg):
(WebCore::jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndTwoOptionalArgs):
(WebCore::jsTestObjPrototypeFunctionMethodWithCallbackArg):
(WebCore::jsTestObjPrototypeFunctionMethodWithNonCallbackArgAndCallbackArg):
(WebCore::jsTestObjPrototypeFunctionMethodWithCallbackFunctionArg):
(WebCore::jsTestObjPrototypeFunctionMethodWithNonCallbackArgAndCallbackFunctionArg):
(WebCore::jsTestObjConstructorFunctionStaticMethodWithCallbackArg):
(WebCore::jsTestObjPrototypeFunctionOverloadedMethod1):
(WebCore::jsTestObjPrototypeFunctionOverloadedMethod2):
(WebCore::jsTestObjPrototypeFunctionOverloadedMethod3):
(WebCore::jsTestObjPrototypeFunctionOverloadedMethod4):
(WebCore::jsTestObjPrototypeFunctionOverloadedMethod5):
(WebCore::jsTestObjPrototypeFunctionOverloadedMethod6):
(WebCore::jsTestObjPrototypeFunctionOverloadedMethod7):
(WebCore::jsTestObjPrototypeFunctionOverloadedMethod8):
(WebCore::jsTestObjPrototypeFunctionOverloadedMethod9):
(WebCore::jsTestObjPrototypeFunctionOverloadedMethod10):
(WebCore::jsTestObjPrototypeFunctionOverloadedMethod11):
(WebCore::jsTestObjPrototypeFunctionOverloadedMethodWithOptionalParameter1):
(WebCore::jsTestObjPrototypeFunctionOverloadedMethodWithOptionalParameter2):
(WebCore::jsTestObjConstructorFunctionOverloadedMethod11):
(WebCore::jsTestObjConstructorFunctionOverloadedMethod12):
(WebCore::jsTestObjPrototypeFunctionClassMethodWithClamp):
(WebCore::jsTestObjPrototypeFunctionClassMethodWithEnforceRange):
(WebCore::jsTestObjPrototypeFunctionMethodWithUnsignedLongSequence):
(WebCore::jsTestObjPrototypeFunctionStringArrayFunction):
(WebCore::jsTestObjPrototypeFunctionDomStringListFunction):
(WebCore::jsTestObjPrototypeFunctionMethodWithAndWithoutNullableSequence):
(WebCore::jsTestObjPrototypeFunctionGetElementById):
(WebCore::jsTestObjPrototypeFunctionConvert1):
(WebCore::jsTestObjPrototypeFunctionConvert2):
(WebCore::jsTestObjPrototypeFunctionConvert3):
(WebCore::jsTestObjPrototypeFunctionConvert4):
(WebCore::jsTestObjPrototypeFunctionVariadicStringMethod):
(WebCore::jsTestObjPrototypeFunctionVariadicDoubleMethod):
(WebCore::jsTestObjPrototypeFunctionVariadicNodeMethod):
(WebCore::jsTestObjPrototypeFunctionAny):
(WebCore::jsTestObjPrototypeFunctionTestPromiseFunctionWithFloatArgumentPromise):
(WebCore::jsTestObjPrototypeFunctionTestPromiseOverloadedFunction1Promise):
(WebCore::jsTestObjPrototypeFunctionTestPromiseOverloadedFunction2Promise):
(WebCore::jsTestObjPrototypeFunctionConditionalOverload1):
(WebCore::jsTestObjPrototypeFunctionConditionalOverload2):
(WebCore::jsTestObjPrototypeFunctionSingleConditionalOverload1):
(WebCore::jsTestObjPrototypeFunctionSingleConditionalOverload2):
(WebCore::jsTestObjPrototypeFunctionAttachShadowRoot):

  • bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp:

(WebCore::constructJSTestOverloadedConstructors1):
(WebCore::constructJSTestOverloadedConstructors2):
(WebCore::constructJSTestOverloadedConstructors3):
(WebCore::constructJSTestOverloadedConstructors4):

  • bindings/scripts/test/JS/JSTestOverloadedConstructorsWithSequence.cpp:

(WebCore::constructJSTestOverloadedConstructorsWithSequence2):

  • bindings/scripts/test/JS/JSTestOverrideBuiltins.cpp:

(WebCore::jsTestOverrideBuiltinsPrototypeFunctionNamedItem):

  • bindings/scripts/test/JS/JSTestTypedefs.cpp:

(WebCore::JSTestTypedefsConstructor::construct):
(WebCore::jsTestTypedefsPrototypeFunctionSetShadow):
(WebCore::jsTestTypedefsPrototypeFunctionMethodWithSequenceArg):
(WebCore::jsTestTypedefsPrototypeFunctionNullableSequenceArg):
(WebCore::jsTestTypedefsPrototypeFunctionFuncWithClamp):
(WebCore::jsTestTypedefsPrototypeFunctionStringSequenceFunction):
(WebCore::jsTestTypedefsPrototypeFunctionStringSequenceFunction2):
(WebCore::jsTestTypedefsPrototypeFunctionCallWithSequenceThatRequiresInclude):

Location:
trunk/Source/WebCore
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r206337 r206338  
     12016-09-23  Yusuke Suzuki  <utatane.tea@gmail.com>
     2
     3        [Binding] Use unchekcedArgument if argumentCount is already checked
     4        https://bugs.webkit.org/show_bug.cgi?id=162502
     5
     6        Reviewed by Geoffrey Garen.
     7
     8        It is not necessary to use `exec->argument(n)` after checking the argument exists.
     9        This patch changes `argument(n)` to `uncheckedArgument(n)` if we already proved that
     10        the argument exists. This change drops branches generated by `exec->argument(n)`.
     11        And it is good for small DOM operations in which DOM binding code occupies large
     12        part of entire processing. This patch and another small patch[1] offer roughly 5%
     13        improvement in Dromaeo dom-attr's getAttribute and setAttribute tests.
     14
     15        [1]: https://bugs.webkit.org/show_bug.cgi?id=162503
     16
     17        * bindings/scripts/CodeGeneratorJS.pm:
     18        (GenerateParametersCheck): GenerateParameterCheck requires GenerateArgumentsCountCheck.
     19        As a result, existence of mandatory arguments are already checked. We can use `uncheckedArgument(n)`
     20        for mandatory arguments.
     21        * bindings/scripts/test/JS/JSTestActiveDOMObject.cpp:
     22        (WebCore::jsTestActiveDOMObjectPrototypeFunctionExcitingFunction):
     23        (WebCore::jsTestActiveDOMObjectPrototypeFunctionPostMessage):
     24        * bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp:
     25        (WebCore::jsTestCustomNamedGetterPrototypeFunctionAnotherFunction):
     26        * bindings/scripts/test/JS/JSTestEventTarget.cpp:
     27        (WebCore::jsTestEventTargetPrototypeFunctionItem):
     28        * bindings/scripts/test/JS/JSTestGlobalObject.cpp:
     29        (WebCore::jsTestGlobalObjectInstanceFunctionRegularOperation):
     30        (WebCore::jsTestGlobalObjectInstanceFunctionEnabledAtRuntimeOperation1):
     31        (WebCore::jsTestGlobalObjectInstanceFunctionEnabledAtRuntimeOperation2):
     32        * bindings/scripts/test/JS/JSTestInterface.cpp:
     33        (WebCore::JSTestInterfaceConstructor::construct):
     34        (WebCore::jsTestInterfacePrototypeFunctionImplementsMethod2):
     35        (WebCore::jsTestInterfacePrototypeFunctionSupplementalMethod2):
     36        * bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp:
     37        (WebCore::jsTestMediaQueryListListenerPrototypeFunctionMethod):
     38        * bindings/scripts/test/JS/JSTestNamedConstructor.cpp:
     39        (WebCore::JSTestNamedConstructorNamedConstructor::construct):
     40        * bindings/scripts/test/JS/JSTestObj.cpp:
     41        (WebCore::JSTestObjConstructor::construct):
     42        (WebCore::jsTestObjPrototypeFunctionEnabledAtRuntimeOperation1):
     43        (WebCore::jsTestObjPrototypeFunctionEnabledAtRuntimeOperation2):
     44        (WebCore::jsTestObjPrototypeFunctionVoidMethodWithArgs):
     45        (WebCore::jsTestObjPrototypeFunctionByteMethodWithArgs):
     46        (WebCore::jsTestObjPrototypeFunctionOctetMethodWithArgs):
     47        (WebCore::jsTestObjPrototypeFunctionLongMethodWithArgs):
     48        (WebCore::jsTestObjPrototypeFunctionObjMethodWithArgs):
     49        (WebCore::jsTestObjPrototypeFunctionMethodWithArgTreatingNullAsEmptyString):
     50        (WebCore::jsTestObjPrototypeFunctionMethodWithXPathNSResolverParameter):
     51        (WebCore::jsTestObjPrototypeFunctionNullableStringSpecialMethod):
     52        (WebCore::jsTestObjPrototypeFunctionMethodWithEnumArg):
     53        (WebCore::jsTestObjPrototypeFunctionMethodThatRequiresAllArgsAndThrows):
     54        (WebCore::jsTestObjPrototypeFunctionMethodWithUSVStringArg):
     55        (WebCore::jsTestObjPrototypeFunctionMethodWithNullableUSVStringArg):
     56        (WebCore::jsTestObjPrototypeFunctionMethodWithUSVStringArgTreatingNullAsEmptyString):
     57        (WebCore::jsTestObjPrototypeFunctionSerializedValue):
     58        (WebCore::jsTestObjPrototypeFunctionOptionsObject):
     59        (WebCore::jsTestObjPrototypeFunctionPrivateMethod):
     60        (WebCore::jsTestObjPrototypeFunctionPublicAndPrivateMethod):
     61        (WebCore::jsTestObjPrototypeFunctionAddEventListener):
     62        (WebCore::jsTestObjPrototypeFunctionRemoveEventListener):
     63        (WebCore::jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndOptionalArg):
     64        (WebCore::jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndTwoOptionalArgs):
     65        (WebCore::jsTestObjPrototypeFunctionMethodWithCallbackArg):
     66        (WebCore::jsTestObjPrototypeFunctionMethodWithNonCallbackArgAndCallbackArg):
     67        (WebCore::jsTestObjPrototypeFunctionMethodWithCallbackFunctionArg):
     68        (WebCore::jsTestObjPrototypeFunctionMethodWithNonCallbackArgAndCallbackFunctionArg):
     69        (WebCore::jsTestObjConstructorFunctionStaticMethodWithCallbackArg):
     70        (WebCore::jsTestObjPrototypeFunctionOverloadedMethod1):
     71        (WebCore::jsTestObjPrototypeFunctionOverloadedMethod2):
     72        (WebCore::jsTestObjPrototypeFunctionOverloadedMethod3):
     73        (WebCore::jsTestObjPrototypeFunctionOverloadedMethod4):
     74        (WebCore::jsTestObjPrototypeFunctionOverloadedMethod5):
     75        (WebCore::jsTestObjPrototypeFunctionOverloadedMethod6):
     76        (WebCore::jsTestObjPrototypeFunctionOverloadedMethod7):
     77        (WebCore::jsTestObjPrototypeFunctionOverloadedMethod8):
     78        (WebCore::jsTestObjPrototypeFunctionOverloadedMethod9):
     79        (WebCore::jsTestObjPrototypeFunctionOverloadedMethod10):
     80        (WebCore::jsTestObjPrototypeFunctionOverloadedMethod11):
     81        (WebCore::jsTestObjPrototypeFunctionOverloadedMethodWithOptionalParameter1):
     82        (WebCore::jsTestObjPrototypeFunctionOverloadedMethodWithOptionalParameter2):
     83        (WebCore::jsTestObjConstructorFunctionOverloadedMethod11):
     84        (WebCore::jsTestObjConstructorFunctionOverloadedMethod12):
     85        (WebCore::jsTestObjPrototypeFunctionClassMethodWithClamp):
     86        (WebCore::jsTestObjPrototypeFunctionClassMethodWithEnforceRange):
     87        (WebCore::jsTestObjPrototypeFunctionMethodWithUnsignedLongSequence):
     88        (WebCore::jsTestObjPrototypeFunctionStringArrayFunction):
     89        (WebCore::jsTestObjPrototypeFunctionDomStringListFunction):
     90        (WebCore::jsTestObjPrototypeFunctionMethodWithAndWithoutNullableSequence):
     91        (WebCore::jsTestObjPrototypeFunctionGetElementById):
     92        (WebCore::jsTestObjPrototypeFunctionConvert1):
     93        (WebCore::jsTestObjPrototypeFunctionConvert2):
     94        (WebCore::jsTestObjPrototypeFunctionConvert3):
     95        (WebCore::jsTestObjPrototypeFunctionConvert4):
     96        (WebCore::jsTestObjPrototypeFunctionVariadicStringMethod):
     97        (WebCore::jsTestObjPrototypeFunctionVariadicDoubleMethod):
     98        (WebCore::jsTestObjPrototypeFunctionVariadicNodeMethod):
     99        (WebCore::jsTestObjPrototypeFunctionAny):
     100        (WebCore::jsTestObjPrototypeFunctionTestPromiseFunctionWithFloatArgumentPromise):
     101        (WebCore::jsTestObjPrototypeFunctionTestPromiseOverloadedFunction1Promise):
     102        (WebCore::jsTestObjPrototypeFunctionTestPromiseOverloadedFunction2Promise):
     103        (WebCore::jsTestObjPrototypeFunctionConditionalOverload1):
     104        (WebCore::jsTestObjPrototypeFunctionConditionalOverload2):
     105        (WebCore::jsTestObjPrototypeFunctionSingleConditionalOverload1):
     106        (WebCore::jsTestObjPrototypeFunctionSingleConditionalOverload2):
     107        (WebCore::jsTestObjPrototypeFunctionAttachShadowRoot):
     108        * bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp:
     109        (WebCore::constructJSTestOverloadedConstructors1):
     110        (WebCore::constructJSTestOverloadedConstructors2):
     111        (WebCore::constructJSTestOverloadedConstructors3):
     112        (WebCore::constructJSTestOverloadedConstructors4):
     113        * bindings/scripts/test/JS/JSTestOverloadedConstructorsWithSequence.cpp:
     114        (WebCore::constructJSTestOverloadedConstructorsWithSequence2):
     115        * bindings/scripts/test/JS/JSTestOverrideBuiltins.cpp:
     116        (WebCore::jsTestOverrideBuiltinsPrototypeFunctionNamedItem):
     117        * bindings/scripts/test/JS/JSTestTypedefs.cpp:
     118        (WebCore::JSTestTypedefsConstructor::construct):
     119        (WebCore::jsTestTypedefsPrototypeFunctionSetShadow):
     120        (WebCore::jsTestTypedefsPrototypeFunctionMethodWithSequenceArg):
     121        (WebCore::jsTestTypedefsPrototypeFunctionNullableSequenceArg):
     122        (WebCore::jsTestTypedefsPrototypeFunctionFuncWithClamp):
     123        (WebCore::jsTestTypedefsPrototypeFunctionStringSequenceFunction):
     124        (WebCore::jsTestTypedefsPrototypeFunctionStringSequenceFunction2):
     125        (WebCore::jsTestTypedefsPrototypeFunctionCallWithSequenceThatRequiresInclude):
     126
    11272016-09-23  Alex Christensen  <achristensen@webkit.org>
    2128
  • trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm

    r206252 r206338  
    39883988                push(@$outputArray, "    }\n");
    39893989            } else {
     3990                die "CallbackInterface does not support Variadic parameter" if $parameter->isVariadic;
    39903991                if ($codeGenerator->IsFunctionOnlyCallbackInterface($type)) {
    3991                     push(@$outputArray, "    if (UNLIKELY(!state->argument($argumentIndex).isFunction()))\n");
     3992                    push(@$outputArray, "    if (UNLIKELY(!state->uncheckedArgument($argumentIndex).isFunction()))\n");
    39923993                } else {
    3993                     push(@$outputArray, "    if (UNLIKELY(!state->argument($argumentIndex).isObject()))\n");
     3994                    push(@$outputArray, "    if (UNLIKELY(!state->uncheckedArgument($argumentIndex).isObject()))\n");
    39943995                }
    39953996                push(@$outputArray, "        return throwArgumentMustBeFunctionError(*state, throwScope, $argumentIndex, \"$name\", \"$visibleInterfaceName\", $quotedFunctionName);\n");
     
    40274028            my $indent = "";
    40284029
     4030            die "Variadic parameter is already handled here" if $parameter->isVariadic;
     4031            my $argumentLookupMethod = $parameter->isOptional ? "argument" : "uncheckedArgument";
     4032
    40294033            if ($parameter->isOptional && !defined($parameter->default)) {
    40304034                $nativeType = "Optional<$className>";
     
    40334037            }
    40344038
    4035             push(@$outputArray, "    auto ${name}Value = state->argument($argumentIndex);\n");
     4039            push(@$outputArray, "    auto ${name}Value = state->$argumentLookupMethod($argumentIndex);\n");
    40364040            push(@$outputArray, "    $nativeType $name;\n");
    40374041
     
    40624066            my $shouldPassByReference = $isTearOff || ShouldPassWrapperByReference($parameter, $interface);
    40634067
     4068            die "Variadic parameter is already handled here" if $parameter->isVariadic;
     4069            my $argumentLookupMethod = $parameter->isOptional ? "argument" : "uncheckedArgument";
     4070
    40644071            if (!$shouldPassByReference && $codeGenerator->IsWrapperType($type)) {
    40654072                $implIncludes{"<runtime/Error.h>"} = 1;
    4066                 my $checkedArgument = "state->argument($argumentIndex)";
     4073                my $checkedArgument = "state->$argumentLookupMethod($argumentIndex)";
    40674074                my $uncheckedArgument = "state->uncheckedArgument($argumentIndex)";
    40684075                my ($nativeValue, $mayThrowException) = JSValueToNative($interface, $parameter, $uncheckedArgument, $function->signature->extendedAttributes->{"Conditional"});
     
    40994106                    }
    41004107
    4101                     $outer = "state->argument($argumentIndex).isUndefined() ? $defaultValue : ";
     4108                    $outer = "state->$argumentLookupMethod($argumentIndex).isUndefined() ? $defaultValue : ";
    41024109                    $inner = "state->uncheckedArgument($argumentIndex)";
    41034110                } elsif ($parameter->isOptional && !defined($parameter->default)) {
    41044111                    # Use WTF::Optional<>() for optional parameters that are missing or undefined and that do not have a default value in the IDL.
    4105                     $outer = "state->argument($argumentIndex).isUndefined() ? Optional<$nativeType>() : ";
     4112                    $outer = "state->$argumentLookupMethod($argumentIndex).isUndefined() ? Optional<$nativeType>() : ";
    41064113                    $inner = "state->uncheckedArgument($argumentIndex)";
    41074114                } else {
    41084115                    $outer = "";
    4109                     $inner = "state->argument($argumentIndex)";
     4116                    $inner = "state->$argumentLookupMethod($argumentIndex)";
    41104117                }
    41114118
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestActiveDOMObject.cpp

    r205569 r206338  
    204204    if (UNLIKELY(state->argumentCount() < 1))
    205205        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    206     auto nextChild = JSNode::toWrapped(state->argument(0));
     206    auto nextChild = JSNode::toWrapped(state->uncheckedArgument(0));
    207207    if (UNLIKELY(!nextChild))
    208208        return throwArgumentTypeError(*state, throwScope, 0, "nextChild", "TestActiveDOMObject", "excitingFunction", "Node");
     
    224224    if (UNLIKELY(state->argumentCount() < 1))
    225225        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    226     auto message = state->argument(0).toWTFString(state);
     226    auto message = state->uncheckedArgument(0).toWTFString(state);
    227227    if (UNLIKELY(throwScope.exception()))
    228228        return JSValue::encode(jsUndefined());
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp

    r205569 r206338  
    201201    if (UNLIKELY(state->argumentCount() < 1))
    202202        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    203     auto str = state->argument(0).toWTFString(state);
     203    auto str = state->uncheckedArgument(0).toWTFString(state);
    204204    if (UNLIKELY(throwScope.exception()))
    205205        return JSValue::encode(jsUndefined());
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventTarget.cpp

    r205569 r206338  
    214214    if (UNLIKELY(state->argumentCount() < 1))
    215215        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    216     auto index = convert<uint32_t>(*state, state->argument(0), NormalConversion);
     216    auto index = convert<uint32_t>(*state, state->uncheckedArgument(0), NormalConversion);
    217217    if (UNLIKELY(throwScope.exception()))
    218218        return JSValue::encode(jsUndefined());
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestGlobalObject.cpp

    r205569 r206338  
    376376    if (UNLIKELY(state->argumentCount() < 1))
    377377        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    378     auto testParam = state->argument(0).toWTFString(state);
     378    auto testParam = state->uncheckedArgument(0).toWTFString(state);
    379379    if (UNLIKELY(throwScope.exception()))
    380380        return JSValue::encode(jsUndefined());
     
    397397    if (UNLIKELY(state->argumentCount() < 1))
    398398        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    399     auto testParam = state->argument(0).toWTFString(state);
     399    auto testParam = state->uncheckedArgument(0).toWTFString(state);
    400400    if (UNLIKELY(throwScope.exception()))
    401401        return JSValue::encode(jsUndefined());
     
    420420    if (UNLIKELY(state->argumentCount() < 1))
    421421        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    422     auto testParam = convert<int32_t>(*state, state->argument(0), NormalConversion);
     422    auto testParam = convert<int32_t>(*state, state->uncheckedArgument(0), NormalConversion);
    423423    if (UNLIKELY(throwScope.exception()))
    424424        return JSValue::encode(jsUndefined());
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestInterface.cpp

    r205569 r206338  
    231231        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    232232    ExceptionCode ec = 0;
    233     auto str1 = state->argument(0).toWTFString(state);
     233    auto str1 = state->uncheckedArgument(0).toWTFString(state);
    234234    if (UNLIKELY(throwScope.exception()))
    235235        return JSValue::encode(jsUndefined());
     
    860860    if (!context)
    861861        return JSValue::encode(jsUndefined());
    862     auto strArg = state->argument(0).toWTFString(state);
     862    auto strArg = state->uncheckedArgument(0).toWTFString(state);
    863863    if (UNLIKELY(throwScope.exception()))
    864864        return JSValue::encode(jsUndefined());
    865     auto objArg = JSTestObj::toWrapped(state->argument(1));
     865    auto objArg = JSTestObj::toWrapped(state->uncheckedArgument(1));
    866866    if (UNLIKELY(!objArg))
    867867        return throwArgumentTypeError(*state, throwScope, 1, "objArg", "TestInterface", "implementsMethod2", "TestObj");
     
    938938    if (!context)
    939939        return JSValue::encode(jsUndefined());
    940     auto strArg = state->argument(0).toWTFString(state);
     940    auto strArg = state->uncheckedArgument(0).toWTFString(state);
    941941    if (UNLIKELY(throwScope.exception()))
    942942        return JSValue::encode(jsUndefined());
    943     auto objArg = JSTestObj::toWrapped(state->argument(1));
     943    auto objArg = JSTestObj::toWrapped(state->uncheckedArgument(1));
    944944    if (UNLIKELY(!objArg))
    945945        return throwArgumentTypeError(*state, throwScope, 1, "objArg", "TestInterface", "supplementalMethod2", "TestObj");
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp

    r205458 r206338  
    166166    if (UNLIKELY(state->argumentCount() < 1))
    167167        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    168     if (UNLIKELY(!state->argument(0).isFunction()))
     168    if (UNLIKELY(!state->uncheckedArgument(0).isFunction()))
    169169        return throwArgumentMustBeFunctionError(*state, throwScope, 0, "listener", "TestMediaQueryListListener", "method");
    170170    auto listener = JSMediaQueryListListener::create(asObject(state->uncheckedArgument(0)), castedThis->globalObject());
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNamedConstructor.cpp

    r205569 r206338  
    9191        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    9292    ExceptionCode ec = 0;
    93     auto str1 = state->argument(0).toWTFString(state);
     93    auto str1 = state->uncheckedArgument(0).toWTFString(state);
    9494    if (UNLIKELY(throwScope.exception()))
    9595        return JSValue::encode(jsUndefined());
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp

    r206252 r206338  
    11381138    if (UNLIKELY(state->argumentCount() < 2))
    11391139        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    1140     if (UNLIKELY(!state->argument(0).isObject()))
     1140    if (UNLIKELY(!state->uncheckedArgument(0).isObject()))
    11411141        return throwArgumentMustBeFunctionError(*state, throwScope, 0, "testCallback", "TestObject", nullptr);
    11421142    auto testCallback = JSTestCallback::create(asObject(state->uncheckedArgument(0)), castedThis->globalObject());
    1143     if (UNLIKELY(!state->argument(1).isFunction()))
     1143    if (UNLIKELY(!state->uncheckedArgument(1).isFunction()))
    11441144        return throwArgumentMustBeFunctionError(*state, throwScope, 1, "testCallbackFunction", "TestObject", nullptr);
    11451145    auto testCallbackFunction = JSTestCallbackFunction::create(asObject(state->uncheckedArgument(1)), castedThis->globalObject());
     
    46224622    if (UNLIKELY(state->argumentCount() < 1))
    46234623        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    4624     auto testParam = state->argument(0).toWTFString(state);
     4624    auto testParam = state->uncheckedArgument(0).toWTFString(state);
    46254625    if (UNLIKELY(throwScope.exception()))
    46264626        return JSValue::encode(jsUndefined());
     
    46454645    if (UNLIKELY(state->argumentCount() < 1))
    46464646        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    4647     auto testParam = convert<int32_t>(*state, state->argument(0), NormalConversion);
     4647    auto testParam = convert<int32_t>(*state, state->uncheckedArgument(0), NormalConversion);
    46484648    if (UNLIKELY(throwScope.exception()))
    46494649        return JSValue::encode(jsUndefined());
     
    47034703    if (UNLIKELY(state->argumentCount() < 3))
    47044704        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    4705     auto longArg = convert<int32_t>(*state, state->argument(0), NormalConversion);
    4706     if (UNLIKELY(throwScope.exception()))
    4707         return JSValue::encode(jsUndefined());
    4708     auto strArg = state->argument(1).toWTFString(state);
    4709     if (UNLIKELY(throwScope.exception()))
    4710         return JSValue::encode(jsUndefined());
    4711     auto objArg = JSTestObj::toWrapped(state->argument(2));
     4705    auto longArg = convert<int32_t>(*state, state->uncheckedArgument(0), NormalConversion);
     4706    if (UNLIKELY(throwScope.exception()))
     4707        return JSValue::encode(jsUndefined());
     4708    auto strArg = state->uncheckedArgument(1).toWTFString(state);
     4709    if (UNLIKELY(throwScope.exception()))
     4710        return JSValue::encode(jsUndefined());
     4711    auto objArg = JSTestObj::toWrapped(state->uncheckedArgument(2));
    47124712    if (UNLIKELY(!objArg))
    47134713        return throwArgumentTypeError(*state, throwScope, 2, "objArg", "TestObject", "voidMethodWithArgs", "TestObj");
     
    47444744    if (UNLIKELY(state->argumentCount() < 3))
    47454745        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    4746     auto byteArg = convert<int8_t>(*state, state->argument(0), NormalConversion);
    4747     if (UNLIKELY(throwScope.exception()))
    4748         return JSValue::encode(jsUndefined());
    4749     auto strArg = state->argument(1).toWTFString(state);
    4750     if (UNLIKELY(throwScope.exception()))
    4751         return JSValue::encode(jsUndefined());
    4752     auto objArg = JSTestObj::toWrapped(state->argument(2));
     4746    auto byteArg = convert<int8_t>(*state, state->uncheckedArgument(0), NormalConversion);
     4747    if (UNLIKELY(throwScope.exception()))
     4748        return JSValue::encode(jsUndefined());
     4749    auto strArg = state->uncheckedArgument(1).toWTFString(state);
     4750    if (UNLIKELY(throwScope.exception()))
     4751        return JSValue::encode(jsUndefined());
     4752    auto objArg = JSTestObj::toWrapped(state->uncheckedArgument(2));
    47534753    if (UNLIKELY(!objArg))
    47544754        return throwArgumentTypeError(*state, throwScope, 2, "objArg", "TestObject", "byteMethodWithArgs", "TestObj");
     
    47854785    if (UNLIKELY(state->argumentCount() < 3))
    47864786        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    4787     auto octetArg = convert<uint8_t>(*state, state->argument(0), NormalConversion);
    4788     if (UNLIKELY(throwScope.exception()))
    4789         return JSValue::encode(jsUndefined());
    4790     auto strArg = state->argument(1).toWTFString(state);
    4791     if (UNLIKELY(throwScope.exception()))
    4792         return JSValue::encode(jsUndefined());
    4793     auto objArg = JSTestObj::toWrapped(state->argument(2));
     4787    auto octetArg = convert<uint8_t>(*state, state->uncheckedArgument(0), NormalConversion);
     4788    if (UNLIKELY(throwScope.exception()))
     4789        return JSValue::encode(jsUndefined());
     4790    auto strArg = state->uncheckedArgument(1).toWTFString(state);
     4791    if (UNLIKELY(throwScope.exception()))
     4792        return JSValue::encode(jsUndefined());
     4793    auto objArg = JSTestObj::toWrapped(state->uncheckedArgument(2));
    47944794    if (UNLIKELY(!objArg))
    47954795        return throwArgumentTypeError(*state, throwScope, 2, "objArg", "TestObject", "octetMethodWithArgs", "TestObj");
     
    48264826    if (UNLIKELY(state->argumentCount() < 3))
    48274827        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    4828     auto longArg = convert<int32_t>(*state, state->argument(0), NormalConversion);
    4829     if (UNLIKELY(throwScope.exception()))
    4830         return JSValue::encode(jsUndefined());
    4831     auto strArg = state->argument(1).toWTFString(state);
    4832     if (UNLIKELY(throwScope.exception()))
    4833         return JSValue::encode(jsUndefined());
    4834     auto objArg = JSTestObj::toWrapped(state->argument(2));
     4828    auto longArg = convert<int32_t>(*state, state->uncheckedArgument(0), NormalConversion);
     4829    if (UNLIKELY(throwScope.exception()))
     4830        return JSValue::encode(jsUndefined());
     4831    auto strArg = state->uncheckedArgument(1).toWTFString(state);
     4832    if (UNLIKELY(throwScope.exception()))
     4833        return JSValue::encode(jsUndefined());
     4834    auto objArg = JSTestObj::toWrapped(state->uncheckedArgument(2));
    48354835    if (UNLIKELY(!objArg))
    48364836        return throwArgumentTypeError(*state, throwScope, 2, "objArg", "TestObject", "longMethodWithArgs", "TestObj");
     
    48674867    if (UNLIKELY(state->argumentCount() < 3))
    48684868        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    4869     auto longArg = convert<int32_t>(*state, state->argument(0), NormalConversion);
    4870     if (UNLIKELY(throwScope.exception()))
    4871         return JSValue::encode(jsUndefined());
    4872     auto strArg = state->argument(1).toWTFString(state);
    4873     if (UNLIKELY(throwScope.exception()))
    4874         return JSValue::encode(jsUndefined());
    4875     auto objArg = JSTestObj::toWrapped(state->argument(2));
     4869    auto longArg = convert<int32_t>(*state, state->uncheckedArgument(0), NormalConversion);
     4870    if (UNLIKELY(throwScope.exception()))
     4871        return JSValue::encode(jsUndefined());
     4872    auto strArg = state->uncheckedArgument(1).toWTFString(state);
     4873    if (UNLIKELY(throwScope.exception()))
     4874        return JSValue::encode(jsUndefined());
     4875    auto objArg = JSTestObj::toWrapped(state->uncheckedArgument(2));
    48764876    if (UNLIKELY(!objArg))
    48774877        return throwArgumentTypeError(*state, throwScope, 2, "objArg", "TestObject", "objMethodWithArgs", "TestObj");
     
    49084908    if (UNLIKELY(state->argumentCount() < 1))
    49094909        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    4910     auto arg = valueToStringTreatingNullAsEmptyString(state, state->argument(0));
     4910    auto arg = valueToStringTreatingNullAsEmptyString(state, state->uncheckedArgument(0));
    49114911    if (UNLIKELY(throwScope.exception()))
    49124912        return JSValue::encode(jsUndefined());
     
    49284928    if (UNLIKELY(state->argumentCount() < 1))
    49294929        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    4930     auto resolver = JSXPathNSResolver::toWrapped(*state, state->argument(0));
     4930    auto resolver = JSXPathNSResolver::toWrapped(*state, state->uncheckedArgument(0));
    49314931    if (UNLIKELY(throwScope.exception()))
    49324932        return JSValue::encode(jsUndefined());
     
    49744974    if (UNLIKELY(state->argumentCount() < 1))
    49754975        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    4976     auto index = convert<uint32_t>(*state, state->argument(0), NormalConversion);
     4976    auto index = convert<uint32_t>(*state, state->uncheckedArgument(0), NormalConversion);
    49774977    if (UNLIKELY(throwScope.exception()))
    49784978        return JSValue::encode(jsUndefined());
     
    49944994    if (UNLIKELY(state->argumentCount() < 1))
    49954995        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    4996     auto enumArgValue = state->argument(0);
     4996    auto enumArgValue = state->uncheckedArgument(0);
    49974997    TestObj::EnumType enumArg;
    49984998    auto optionalValue = parse<TestObj::EnumType>(*state, enumArgValue);
     
    50715071        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    50725072    ExceptionCode ec = 0;
    5073     auto strArg = state->argument(0).toWTFString(state);
    5074     if (UNLIKELY(throwScope.exception()))
    5075         return JSValue::encode(jsUndefined());
    5076     auto objArg = JSTestObj::toWrapped(state->argument(1));
     5073    auto strArg = state->uncheckedArgument(0).toWTFString(state);
     5074    if (UNLIKELY(throwScope.exception()))
     5075        return JSValue::encode(jsUndefined());
     5076    auto objArg = JSTestObj::toWrapped(state->uncheckedArgument(1));
    50775077    if (UNLIKELY(!objArg))
    50785078        return throwArgumentTypeError(*state, throwScope, 1, "objArg", "TestObject", "methodThatRequiresAllArgsAndThrows", "TestObj");
     
    50965096    if (UNLIKELY(state->argumentCount() < 1))
    50975097        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    5098     auto str = valueToUSVString(state, state->argument(0));
     5098    auto str = valueToUSVString(state, state->uncheckedArgument(0));
    50995099    if (UNLIKELY(throwScope.exception()))
    51005100        return JSValue::encode(jsUndefined());
     
    51165116    if (UNLIKELY(state->argumentCount() < 1))
    51175117        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    5118     auto str = valueToUSVStringWithUndefinedOrNullCheck(state, state->argument(0));
     5118    auto str = valueToUSVStringWithUndefinedOrNullCheck(state, state->uncheckedArgument(0));
    51195119    if (UNLIKELY(throwScope.exception()))
    51205120        return JSValue::encode(jsUndefined());
     
    51365136    if (UNLIKELY(state->argumentCount() < 1))
    51375137        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    5138     auto str = valueToUSVStringTreatingNullAsEmptyString(state, state->argument(0));
     5138    auto str = valueToUSVStringTreatingNullAsEmptyString(state, state->uncheckedArgument(0));
    51395139    if (UNLIKELY(throwScope.exception()))
    51405140        return JSValue::encode(jsUndefined());
     
    51565156    if (UNLIKELY(state->argumentCount() < 1))
    51575157        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    5158     auto serializedArg = SerializedScriptValue::create(state, state->argument(0), 0, 0);
     5158    auto serializedArg = SerializedScriptValue::create(state, state->uncheckedArgument(0), 0, 0);
    51595159    if (UNLIKELY(throwScope.exception()))
    51605160        return JSValue::encode(jsUndefined());
     
    51765176    if (UNLIKELY(state->argumentCount() < 1))
    51775177        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    5178     auto oo = Dictionary(state, state->argument(0));
     5178    auto oo = Dictionary(state, state->uncheckedArgument(0));
    51795179    auto ooo = Dictionary(state, state->argument(1));
    51805180    impl.optionsObject(WTFMove(oo), WTFMove(ooo));
     
    52555255    if (UNLIKELY(state->argumentCount() < 1))
    52565256        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    5257     auto argument = state->argument(0).toWTFString(state);
     5257    auto argument = state->uncheckedArgument(0).toWTFString(state);
    52585258    if (UNLIKELY(throwScope.exception()))
    52595259        return JSValue::encode(jsUndefined());
     
    52755275    if (UNLIKELY(state->argumentCount() < 1))
    52765276        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    5277     auto argument = state->argument(0).toWTFString(state);
     5277    auto argument = state->uncheckedArgument(0).toWTFString(state);
    52785278    if (UNLIKELY(throwScope.exception()))
    52795279        return JSValue::encode(jsUndefined());
     
    52955295    if (UNLIKELY(state->argumentCount() < 2))
    52965296        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    5297     auto type = state->argument(0).toWTFString(state);
    5298     if (UNLIKELY(throwScope.exception()))
    5299         return JSValue::encode(jsUndefined());
    5300     auto listener = JSEventListener::create(state->argument(1), *castedThis, false, currentWorld(state));
     5297    auto type = state->uncheckedArgument(0).toWTFString(state);
     5298    if (UNLIKELY(throwScope.exception()))
     5299        return JSValue::encode(jsUndefined());
     5300    auto listener = JSEventListener::create(state->uncheckedArgument(1), *castedThis, false, currentWorld(state));
    53015301    if (UNLIKELY(!listener))
    53025302        return throwArgumentTypeError(*state, throwScope, 1, "listener", "TestObject", "addEventListener", "EventListener");
     
    53215321    if (UNLIKELY(state->argumentCount() < 2))
    53225322        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    5323     auto type = state->argument(0).toWTFString(state);
    5324     if (UNLIKELY(throwScope.exception()))
    5325         return JSValue::encode(jsUndefined());
    5326     auto listener = JSEventListener::create(state->argument(1), *castedThis, false, currentWorld(state));
     5323    auto type = state->uncheckedArgument(0).toWTFString(state);
     5324    if (UNLIKELY(throwScope.exception()))
     5325        return JSValue::encode(jsUndefined());
     5326    auto listener = JSEventListener::create(state->uncheckedArgument(1), *castedThis, false, currentWorld(state));
    53275327    if (UNLIKELY(!listener))
    53285328        return throwArgumentTypeError(*state, throwScope, 1, "listener", "TestObject", "removeEventListener", "EventListener");
     
    56005600    if (UNLIKELY(state->argumentCount() < 1))
    56015601        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    5602     auto nonOpt = convert<int32_t>(*state, state->argument(0), NormalConversion);
     5602    auto nonOpt = convert<int32_t>(*state, state->uncheckedArgument(0), NormalConversion);
    56035603    if (UNLIKELY(throwScope.exception()))
    56045604        return JSValue::encode(jsUndefined());
     
    56235623    if (UNLIKELY(state->argumentCount() < 1))
    56245624        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    5625     auto nonOpt = convert<int32_t>(*state, state->argument(0), NormalConversion);
     5625    auto nonOpt = convert<int32_t>(*state, state->uncheckedArgument(0), NormalConversion);
    56265626    if (UNLIKELY(throwScope.exception()))
    56275627        return JSValue::encode(jsUndefined());
     
    61086108    if (UNLIKELY(state->argumentCount() < 1))
    61096109        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    6110     if (UNLIKELY(!state->argument(0).isObject()))
     6110    if (UNLIKELY(!state->uncheckedArgument(0).isObject()))
    61116111        return throwArgumentMustBeFunctionError(*state, throwScope, 0, "callback", "TestObject", "methodWithCallbackArg");
    61126112    auto callback = JSTestCallback::create(asObject(state->uncheckedArgument(0)), castedThis->globalObject());
     
    61286128    if (UNLIKELY(state->argumentCount() < 2))
    61296129        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    6130     auto nonCallback = convert<int32_t>(*state, state->argument(0), NormalConversion);
    6131     if (UNLIKELY(throwScope.exception()))
    6132         return JSValue::encode(jsUndefined());
    6133     if (UNLIKELY(!state->argument(1).isObject()))
     6130    auto nonCallback = convert<int32_t>(*state, state->uncheckedArgument(0), NormalConversion);
     6131    if (UNLIKELY(throwScope.exception()))
     6132        return JSValue::encode(jsUndefined());
     6133    if (UNLIKELY(!state->uncheckedArgument(1).isObject()))
    61346134        return throwArgumentMustBeFunctionError(*state, throwScope, 1, "callback", "TestObject", "methodWithNonCallbackArgAndCallbackArg");
    61356135    auto callback = JSTestCallback::create(asObject(state->uncheckedArgument(1)), castedThis->globalObject());
     
    61726172    if (UNLIKELY(state->argumentCount() < 1))
    61736173        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    6174     if (UNLIKELY(!state->argument(0).isFunction()))
     6174    if (UNLIKELY(!state->uncheckedArgument(0).isFunction()))
    61756175        return throwArgumentMustBeFunctionError(*state, throwScope, 0, "callback", "TestObject", "methodWithCallbackFunctionArg");
    61766176    auto callback = JSTestCallbackFunction::create(asObject(state->uncheckedArgument(0)), castedThis->globalObject());
     
    61926192    if (UNLIKELY(state->argumentCount() < 2))
    61936193        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    6194     auto nonCallback = convert<int32_t>(*state, state->argument(0), NormalConversion);
    6195     if (UNLIKELY(throwScope.exception()))
    6196         return JSValue::encode(jsUndefined());
    6197     if (UNLIKELY(!state->argument(1).isFunction()))
     6194    auto nonCallback = convert<int32_t>(*state, state->uncheckedArgument(0), NormalConversion);
     6195    if (UNLIKELY(throwScope.exception()))
     6196        return JSValue::encode(jsUndefined());
     6197    if (UNLIKELY(!state->uncheckedArgument(1).isFunction()))
    61986198        return throwArgumentMustBeFunctionError(*state, throwScope, 1, "callback", "TestObject", "methodWithNonCallbackArgAndCallbackFunctionArg");
    61996199    auto callback = JSTestCallbackFunction::create(asObject(state->uncheckedArgument(1)), castedThis->globalObject());
     
    62456245    if (UNLIKELY(state->argumentCount() < 1))
    62466246        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    6247     if (UNLIKELY(!state->argument(0).isObject()))
     6247    if (UNLIKELY(!state->uncheckedArgument(0).isObject()))
    62486248        return throwArgumentMustBeFunctionError(*state, throwScope, 0, "callback", "TestObject", "staticMethodWithCallbackArg");
    62496249    auto callback = createFunctionOnlyCallback<JSTestCallback>(state, jsCast<JSDOMGlobalObject*>(state->lexicalGlobalObject()), state->uncheckedArgument(0));
     
    63206320        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    63216321    TestObj* objArg = nullptr;
    6322     if (!state->argument(0).isUndefinedOrNull()) {
     6322    if (!state->uncheckedArgument(0).isUndefinedOrNull()) {
    63236323        objArg = JSTestObj::toWrapped(state->uncheckedArgument(0));
    63246324        if (UNLIKELY(!objArg))
    63256325            return throwArgumentTypeError(*state, throwScope, 0, "objArg", "TestObject", "overloadedMethod", "TestObj");
    63266326    }
    6327     auto strArg = state->argument(1).toWTFString(state);
     6327    auto strArg = state->uncheckedArgument(1).toWTFString(state);
    63286328    if (UNLIKELY(throwScope.exception()))
    63296329        return JSValue::encode(jsUndefined());
     
    63466346        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    63476347    TestObj* objArg = nullptr;
    6348     if (!state->argument(0).isUndefinedOrNull()) {
     6348    if (!state->uncheckedArgument(0).isUndefinedOrNull()) {
    63496349        objArg = JSTestObj::toWrapped(state->uncheckedArgument(0));
    63506350        if (UNLIKELY(!objArg))
     
    63716371    if (UNLIKELY(state->argumentCount() < 1))
    63726372        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    6373     auto strArg = state->argument(0).toWTFString(state);
     6373    auto strArg = state->uncheckedArgument(0).toWTFString(state);
    63746374    if (UNLIKELY(throwScope.exception()))
    63756375        return JSValue::encode(jsUndefined());
     
    63916391    if (UNLIKELY(state->argumentCount() < 1))
    63926392        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    6393     auto longArg = convert<int32_t>(*state, state->argument(0), NormalConversion);
     6393    auto longArg = convert<int32_t>(*state, state->uncheckedArgument(0), NormalConversion);
    63946394    if (UNLIKELY(throwScope.exception()))
    63956395        return JSValue::encode(jsUndefined());
     
    64116411    if (UNLIKELY(state->argumentCount() < 1))
    64126412        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    6413     if (UNLIKELY(!state->argument(0).isObject()))
     6413    if (UNLIKELY(!state->uncheckedArgument(0).isObject()))
    64146414        return throwArgumentMustBeFunctionError(*state, throwScope, 0, "callback", "TestObject", "overloadedMethod");
    64156415    auto callback = JSTestCallback::create(asObject(state->uncheckedArgument(0)), castedThis->globalObject());
     
    64326432        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    64336433    DOMStringList* listArg = nullptr;
    6434     if (!state->argument(0).isUndefinedOrNull()) {
     6434    if (!state->uncheckedArgument(0).isUndefinedOrNull()) {
    64356435        listArg = JSDOMStringList::toWrapped(state->uncheckedArgument(0));
    64366436        if (UNLIKELY(!listArg))
     
    64546454    if (UNLIKELY(state->argumentCount() < 1))
    64556455        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    6456     auto arrayArg = toNativeArray<String>(*state, state->argument(0));
     6456    auto arrayArg = toNativeArray<String>(*state, state->uncheckedArgument(0));
    64576457    if (UNLIKELY(throwScope.exception()))
    64586458        return JSValue::encode(jsUndefined());
     
    64746474    if (UNLIKELY(state->argumentCount() < 1))
    64756475        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    6476     auto objArg = JSTestObj::toWrapped(state->argument(0));
     6476    auto objArg = JSTestObj::toWrapped(state->uncheckedArgument(0));
    64776477    if (UNLIKELY(!objArg))
    64786478        return throwArgumentTypeError(*state, throwScope, 0, "objArg", "TestObject", "overloadedMethod", "TestObj");
     
    64946494    if (UNLIKELY(state->argumentCount() < 1))
    64956495        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    6496     auto arrayArg = toNativeArray<String>(*state, state->argument(0));
     6496    auto arrayArg = toNativeArray<String>(*state, state->uncheckedArgument(0));
    64976497    if (UNLIKELY(throwScope.exception()))
    64986498        return JSValue::encode(jsUndefined());
     
    65146514    if (UNLIKELY(state->argumentCount() < 1))
    65156515        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    6516     auto arrayArg = toNativeArray<uint32_t>(*state, state->argument(0));
     6516    auto arrayArg = toNativeArray<uint32_t>(*state, state->uncheckedArgument(0));
    65176517    if (UNLIKELY(throwScope.exception()))
    65186518        return JSValue::encode(jsUndefined());
     
    65346534    if (UNLIKELY(state->argumentCount() < 1))
    65356535        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    6536     auto strArg = state->argument(0).toWTFString(state);
     6536    auto strArg = state->uncheckedArgument(0).toWTFString(state);
    65376537    if (UNLIKELY(throwScope.exception()))
    65386538        return JSValue::encode(jsUndefined());
     
    66166616    if (UNLIKELY(state->argumentCount() < 1))
    66176617        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    6618     auto strArg = state->argument(0).toWTFString(state);
     6618    auto strArg = state->uncheckedArgument(0).toWTFString(state);
    66196619    if (UNLIKELY(throwScope.exception()))
    66206620        return JSValue::encode(jsUndefined());
     
    66436643        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    66446644    TestObj* objArg = nullptr;
    6645     if (!state->argument(0).isUndefinedOrNull()) {
     6645    if (!state->uncheckedArgument(0).isUndefinedOrNull()) {
    66466646        objArg = JSTestObj::toWrapped(state->uncheckedArgument(0));
    66476647        if (UNLIKELY(!objArg))
     
    67196719    if (UNLIKELY(state->argumentCount() < 1))
    67206720        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    6721     auto arg = convert<int32_t>(*state, state->argument(0), NormalConversion);
     6721    auto arg = convert<int32_t>(*state, state->uncheckedArgument(0), NormalConversion);
    67226722    if (UNLIKELY(throwScope.exception()))
    67236723        return JSValue::encode(jsUndefined());
     
    67366736    if (UNLIKELY(state->argumentCount() < 1))
    67376737        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    6738     auto type = state->argument(0).toWTFString(state);
     6738    auto type = state->uncheckedArgument(0).toWTFString(state);
    67396739    if (UNLIKELY(throwScope.exception()))
    67406740        return JSValue::encode(jsUndefined());
     
    67796779    if (UNLIKELY(state->argumentCount() < 2))
    67806780        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    6781     auto objArgsShort = convert<uint16_t>(*state, state->argument(0), Clamp);
    6782     if (UNLIKELY(throwScope.exception()))
    6783         return JSValue::encode(jsUndefined());
    6784     auto objArgsLong = convert<uint32_t>(*state, state->argument(1), Clamp);
     6781    auto objArgsShort = convert<uint16_t>(*state, state->uncheckedArgument(0), Clamp);
     6782    if (UNLIKELY(throwScope.exception()))
     6783        return JSValue::encode(jsUndefined());
     6784    auto objArgsLong = convert<uint32_t>(*state, state->uncheckedArgument(1), Clamp);
    67856785    if (UNLIKELY(throwScope.exception()))
    67866786        return JSValue::encode(jsUndefined());
     
    68026802    if (UNLIKELY(state->argumentCount() < 2))
    68036803        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    6804     auto objArgsShort = convert<uint16_t>(*state, state->argument(0), EnforceRange);
    6805     if (UNLIKELY(throwScope.exception()))
    6806         return JSValue::encode(jsUndefined());
    6807     auto objArgsLong = convert<uint32_t>(*state, state->argument(1), EnforceRange);
     6804    auto objArgsShort = convert<uint16_t>(*state, state->uncheckedArgument(0), EnforceRange);
     6805    if (UNLIKELY(throwScope.exception()))
     6806        return JSValue::encode(jsUndefined());
     6807    auto objArgsLong = convert<uint32_t>(*state, state->uncheckedArgument(1), EnforceRange);
    68086808    if (UNLIKELY(throwScope.exception()))
    68096809        return JSValue::encode(jsUndefined());
     
    68256825    if (UNLIKELY(state->argumentCount() < 1))
    68266826        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    6827     auto unsignedLongSequence = toNativeArray<uint32_t>(*state, state->argument(0));
     6827    auto unsignedLongSequence = toNativeArray<uint32_t>(*state, state->uncheckedArgument(0));
    68286828    if (UNLIKELY(throwScope.exception()))
    68296829        return JSValue::encode(jsUndefined());
     
    68466846        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    68476847    ExceptionCode ec = 0;
    6848     auto values = toNativeArray<String>(*state, state->argument(0));
     6848    auto values = toNativeArray<String>(*state, state->uncheckedArgument(0));
    68496849    if (UNLIKELY(throwScope.exception()))
    68506850        return JSValue::encode(jsUndefined());
     
    68696869        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    68706870    ExceptionCode ec = 0;
    6871     auto values = JSDOMStringList::toWrapped(state->argument(0));
     6871    auto values = JSDOMStringList::toWrapped(state->uncheckedArgument(0));
    68726872    if (UNLIKELY(!values))
    68736873        return throwArgumentTypeError(*state, throwScope, 0, "values", "TestObject", "domStringListFunction", "DOMStringList");
     
    68916891    if (UNLIKELY(state->argumentCount() < 2))
    68926892        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    6893     auto arrayArg = toNativeArray<uint32_t>(*state, state->argument(0));
    6894     if (UNLIKELY(throwScope.exception()))
    6895         return JSValue::encode(jsUndefined());
    6896     auto nullableArrayArg = toNativeArray<uint32_t>(*state, state->argument(1));
     6893    auto arrayArg = toNativeArray<uint32_t>(*state, state->uncheckedArgument(0));
     6894    if (UNLIKELY(throwScope.exception()))
     6895        return JSValue::encode(jsUndefined());
     6896    auto nullableArrayArg = toNativeArray<uint32_t>(*state, state->uncheckedArgument(1));
    68976897    if (UNLIKELY(throwScope.exception()))
    68986898        return JSValue::encode(jsUndefined());
     
    69146914    if (UNLIKELY(state->argumentCount() < 1))
    69156915        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    6916     auto elementId = AtomicString(state->argument(0).toString(state)->toExistingAtomicString(state));
     6916    auto elementId = AtomicString(state->uncheckedArgument(0).toString(state)->toExistingAtomicString(state));
    69176917    if (UNLIKELY(throwScope.exception()))
    69186918        return JSValue::encode(jsUndefined());
     
    69546954    if (UNLIKELY(state->argumentCount() < 1))
    69556955        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    6956     auto value = JSTestNode::toWrapped(state->argument(0));
     6956    auto value = JSTestNode::toWrapped(state->uncheckedArgument(0));
    69576957    if (UNLIKELY(!value))
    69586958        return throwArgumentTypeError(*state, throwScope, 0, "value", "TestObject", "convert1", "TestNode");
     
    69756975        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    69766976    TestNode* value = nullptr;
    6977     if (!state->argument(0).isUndefinedOrNull()) {
     6977    if (!state->uncheckedArgument(0).isUndefinedOrNull()) {
    69786978        value = JSTestNode::toWrapped(state->uncheckedArgument(0));
    69796979        if (UNLIKELY(!value))
     
    69976997    if (UNLIKELY(state->argumentCount() < 1))
    69986998        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    6999     auto value = state->argument(0).toWTFString(state);
     6999    auto value = state->uncheckedArgument(0).toWTFString(state);
    70007000    if (UNLIKELY(throwScope.exception()))
    70017001        return JSValue::encode(jsUndefined());
     
    70177017    if (UNLIKELY(state->argumentCount() < 1))
    70187018        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    7019     auto value = valueToStringWithUndefinedOrNullCheck(state, state->argument(0));
     7019    auto value = valueToStringWithUndefinedOrNullCheck(state, state->uncheckedArgument(0));
    70207020    if (UNLIKELY(throwScope.exception()))
    70217021        return JSValue::encode(jsUndefined());
     
    70827082    if (UNLIKELY(state->argumentCount() < 1))
    70837083        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    7084     auto head = state->argument(0).toWTFString(state);
     7084    auto head = state->uncheckedArgument(0).toWTFString(state);
    70857085    if (UNLIKELY(throwScope.exception()))
    70867086        return JSValue::encode(jsUndefined());
     
    71057105    if (UNLIKELY(state->argumentCount() < 1))
    71067106        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    7107     auto head = convert<double>(*state, state->argument(0), ShouldAllowNonFinite::Yes);
     7107    auto head = convert<double>(*state, state->uncheckedArgument(0), ShouldAllowNonFinite::Yes);
    71087108    if (UNLIKELY(throwScope.exception()))
    71097109        return JSValue::encode(jsUndefined());
     
    71287128    if (UNLIKELY(state->argumentCount() < 1))
    71297129        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    7130     auto head = JSNode::toWrapped(state->argument(0));
     7130    auto head = JSNode::toWrapped(state->uncheckedArgument(0));
    71317131    if (UNLIKELY(!head))
    71327132        return throwArgumentTypeError(*state, throwScope, 0, "head", "TestObject", "variadicNodeMethod", "Node");
     
    71517151    if (UNLIKELY(state->argumentCount() < 2))
    71527152        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    7153     auto a = convert<float>(*state, state->argument(0), ShouldAllowNonFinite::Yes);
    7154     if (UNLIKELY(throwScope.exception()))
    7155         return JSValue::encode(jsUndefined());
    7156     auto b = convert<int32_t>(*state, state->argument(1), NormalConversion);
     7153    auto a = convert<float>(*state, state->uncheckedArgument(0), ShouldAllowNonFinite::Yes);
     7154    if (UNLIKELY(throwScope.exception()))
     7155        return JSValue::encode(jsUndefined());
     7156    auto b = convert<int32_t>(*state, state->uncheckedArgument(1), NormalConversion);
    71577157    if (UNLIKELY(throwScope.exception()))
    71587158        return JSValue::encode(jsUndefined());
     
    72057205    if (UNLIKELY(state->argumentCount() < 1))
    72067206        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    7207     auto a = convert<float>(*state, state->argument(0), ShouldAllowNonFinite::No);
     7207    auto a = convert<float>(*state, state->uncheckedArgument(0), ShouldAllowNonFinite::No);
    72087208    if (UNLIKELY(throwScope.exception()))
    72097209        return JSValue::encode(jsUndefined());
     
    72847284    if (UNLIKELY(state->argumentCount() < 1))
    72857285        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    7286     auto a = convert<float>(*state, state->argument(0), ShouldAllowNonFinite::No);
     7286    auto a = convert<float>(*state, state->uncheckedArgument(0), ShouldAllowNonFinite::No);
    72877287    if (UNLIKELY(throwScope.exception()))
    72887288        return JSValue::encode(jsUndefined());
     
    73127312    if (UNLIKELY(state->argumentCount() < 1))
    73137313        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    7314     auto request = JSFetchRequest::toWrapped(state->argument(0));
     7314    auto request = JSFetchRequest::toWrapped(state->uncheckedArgument(0));
    73157315    if (UNLIKELY(!request))
    73167316        return throwArgumentTypeError(*state, throwScope, 0, "request", "TestObject", "testPromiseOverloadedFunction", "FetchRequest");
     
    74177417    if (UNLIKELY(state->argumentCount() < 1))
    74187418        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    7419     auto str = state->argument(0).toWTFString(state);
     7419    auto str = state->uncheckedArgument(0).toWTFString(state);
    74207420    if (UNLIKELY(throwScope.exception()))
    74217421        return JSValue::encode(jsUndefined());
     
    74407440    if (UNLIKELY(state->argumentCount() < 1))
    74417441        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    7442     auto a = convert<int32_t>(*state, state->argument(0), NormalConversion);
     7442    auto a = convert<int32_t>(*state, state->uncheckedArgument(0), NormalConversion);
    74437443    if (UNLIKELY(throwScope.exception()))
    74447444        return JSValue::encode(jsUndefined());
     
    74837483    if (UNLIKELY(state->argumentCount() < 1))
    74847484        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    7485     auto str = state->argument(0).toWTFString(state);
     7485    auto str = state->uncheckedArgument(0).toWTFString(state);
    74867486    if (UNLIKELY(throwScope.exception()))
    74877487        return JSValue::encode(jsUndefined());
     
    75047504    if (UNLIKELY(state->argumentCount() < 1))
    75057505        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    7506     auto a = convert<int32_t>(*state, state->argument(0), NormalConversion);
     7506    auto a = convert<int32_t>(*state, state->uncheckedArgument(0), NormalConversion);
    75077507    if (UNLIKELY(throwScope.exception()))
    75087508        return JSValue::encode(jsUndefined());
     
    75437543    if (UNLIKELY(state->argumentCount() < 1))
    75447544        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    7545     auto init = convertDictionary<TestObj::Dictionary>(*state, state->argument(0));
     7545    auto init = convertDictionary<TestObj::Dictionary>(*state, state->uncheckedArgument(0));
    75467546    if (UNLIKELY(throwScope.exception()))
    75477547        return JSValue::encode(jsUndefined());
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp

    r205569 r206338  
    7575    if (UNLIKELY(state->argumentCount() < 1))
    7676        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    77     auto arrayBuffer = toArrayBuffer(state->argument(0));
     77    auto arrayBuffer = toArrayBuffer(state->uncheckedArgument(0));
    7878    if (UNLIKELY(throwScope.exception()))
    7979        return JSValue::encode(jsUndefined());
     
    9393    if (UNLIKELY(state->argumentCount() < 1))
    9494        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    95     auto arrayBufferView = toArrayBufferView(state->argument(0));
     95    auto arrayBufferView = toArrayBufferView(state->uncheckedArgument(0));
    9696    if (UNLIKELY(throwScope.exception()))
    9797        return JSValue::encode(jsUndefined());
     
    111111    if (UNLIKELY(state->argumentCount() < 1))
    112112        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    113     auto blob = JSBlob::toWrapped(state->argument(0));
     113    auto blob = JSBlob::toWrapped(state->uncheckedArgument(0));
    114114    if (UNLIKELY(!blob))
    115115        return throwArgumentTypeError(*state, throwScope, 0, "blob", "TestOverloadedConstructors", nullptr, "Blob");
     
    127127    if (UNLIKELY(state->argumentCount() < 1))
    128128        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    129     auto string = state->argument(0).toWTFString(state);
     129    auto string = state->uncheckedArgument(0).toWTFString(state);
    130130    if (UNLIKELY(throwScope.exception()))
    131131        return JSValue::encode(jsUndefined());
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestOverloadedConstructorsWithSequence.cpp

    r205569 r206338  
    8888    if (UNLIKELY(state->argumentCount() < 1))
    8989        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    90     auto string = state->argument(0).toWTFString(state);
     90    auto string = state->uncheckedArgument(0).toWTFString(state);
    9191    if (UNLIKELY(throwScope.exception()))
    9292        return JSValue::encode(jsUndefined());
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestOverrideBuiltins.cpp

    r205569 r206338  
    210210    if (UNLIKELY(state->argumentCount() < 1))
    211211        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    212     auto name = state->argument(0).toWTFString(state);
     212    auto name = state->uncheckedArgument(0).toWTFString(state);
    213213    if (UNLIKELY(throwScope.exception()))
    214214        return JSValue::encode(jsUndefined());
  • trunk/Source/WebCore/bindings/scripts/test/JS/JSTestTypedefs.cpp

    r205569 r206338  
    132132    if (UNLIKELY(state->argumentCount() < 2))
    133133        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    134     auto hello = state->argument(0).toWTFString(state);
    135     if (UNLIKELY(throwScope.exception()))
    136         return JSValue::encode(jsUndefined());
    137     if (UNLIKELY(!state->argument(1).isObject()))
     134    auto hello = state->uncheckedArgument(0).toWTFString(state);
     135    if (UNLIKELY(throwScope.exception()))
     136        return JSValue::encode(jsUndefined());
     137    if (UNLIKELY(!state->uncheckedArgument(1).isObject()))
    138138        return throwArgumentMustBeFunctionError(*state, throwScope, 1, "testCallback", "TestTypedefs", nullptr);
    139139    auto testCallback = JSTestCallback::create(asObject(state->uncheckedArgument(1)), castedThis->globalObject());
     
    517517    if (UNLIKELY(state->argumentCount() < 3))
    518518        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    519     auto width = convert<float>(*state, state->argument(0), ShouldAllowNonFinite::Yes);
    520     if (UNLIKELY(throwScope.exception()))
    521         return JSValue::encode(jsUndefined());
    522     auto height = convert<float>(*state, state->argument(1), ShouldAllowNonFinite::Yes);
    523     if (UNLIKELY(throwScope.exception()))
    524         return JSValue::encode(jsUndefined());
    525     auto blur = convert<float>(*state, state->argument(2), ShouldAllowNonFinite::Yes);
     519    auto width = convert<float>(*state, state->uncheckedArgument(0), ShouldAllowNonFinite::Yes);
     520    if (UNLIKELY(throwScope.exception()))
     521        return JSValue::encode(jsUndefined());
     522    auto height = convert<float>(*state, state->uncheckedArgument(1), ShouldAllowNonFinite::Yes);
     523    if (UNLIKELY(throwScope.exception()))
     524        return JSValue::encode(jsUndefined());
     525    auto blur = convert<float>(*state, state->uncheckedArgument(2), ShouldAllowNonFinite::Yes);
    526526    if (UNLIKELY(throwScope.exception()))
    527527        return JSValue::encode(jsUndefined());
     
    549549    if (UNLIKELY(state->argumentCount() < 1))
    550550        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    551     auto sequenceArg = toRefPtrNativeArray<SerializedScriptValue, JSSerializedScriptValue>(*state, state->argument(0));
     551    auto sequenceArg = toRefPtrNativeArray<SerializedScriptValue, JSSerializedScriptValue>(*state, state->uncheckedArgument(0));
    552552    if (UNLIKELY(throwScope.exception()))
    553553        return JSValue::encode(jsUndefined());
     
    569569    if (UNLIKELY(state->argumentCount() < 1))
    570570        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    571     auto sequenceArg = toNativeArray<String>(*state, state->argument(0));
     571    auto sequenceArg = toNativeArray<String>(*state, state->uncheckedArgument(0));
    572572    if (UNLIKELY(throwScope.exception()))
    573573        return JSValue::encode(jsUndefined());
     
    589589    if (UNLIKELY(state->argumentCount() < 1))
    590590        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    591     auto arg1 = convert<uint64_t>(*state, state->argument(0), Clamp);
     591    auto arg1 = convert<uint64_t>(*state, state->uncheckedArgument(0), Clamp);
    592592    if (UNLIKELY(throwScope.exception()))
    593593        return JSValue::encode(jsUndefined());
     
    628628        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    629629    ExceptionCode ec = 0;
    630     auto values = toNativeArray<String>(*state, state->argument(0));
     630    auto values = toNativeArray<String>(*state, state->uncheckedArgument(0));
    631631    if (UNLIKELY(throwScope.exception()))
    632632        return JSValue::encode(jsUndefined());
     
    651651        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    652652    ExceptionCode ec = 0;
    653     auto values = toNativeArray<String>(*state, state->argument(0));
     653    auto values = toNativeArray<String>(*state, state->uncheckedArgument(0));
    654654    if (UNLIKELY(throwScope.exception()))
    655655        return JSValue::encode(jsUndefined());
     
    673673    if (UNLIKELY(state->argumentCount() < 1))
    674674        return throwVMError(state, throwScope, createNotEnoughArgumentsError(state));
    675     auto sequenceArg = toRefPtrNativeArray<TestEventTarget, JSTestEventTarget>(*state, state->argument(0));
     675    auto sequenceArg = toRefPtrNativeArray<TestEventTarget, JSTestEventTarget>(*state, state->uncheckedArgument(0));
    676676    if (UNLIKELY(throwScope.exception()))
    677677        return JSValue::encode(jsUndefined());
Note: See TracChangeset for help on using the changeset viewer.