Log Message
Unreviewed, rebaseline bindings tests after r175462.
* 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): (WebCore::jsTestEventTargetPrototypeFunctionDispatchEvent): * bindings/scripts/test/JS/JSTestInterface.cpp: (WebCore::JSTestInterfaceConstructor::constructJSTestInterface): (WebCore::jsTestInterfacePrototypeFunctionImplementsMethod2): (WebCore::jsTestInterfacePrototypeFunctionSupplementalMethod2): * bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp: (WebCore::jsTestMediaQueryListListenerPrototypeFunctionMethod): * bindings/scripts/test/JS/JSTestNamedConstructor.cpp: (WebCore::JSTestNamedConstructorNamedConstructor::constructJSTestNamedConstructor): * bindings/scripts/test/JS/JSTestObj.cpp: (WebCore::JSTestObjConstructor::constructJSTestObj): (WebCore::jsTestObjPrototypeFunctionVoidMethodWithArgs): (WebCore::jsTestObjPrototypeFunctionByteMethodWithArgs): (WebCore::jsTestObjPrototypeFunctionOctetMethodWithArgs): (WebCore::jsTestObjPrototypeFunctionLongMethodWithArgs): (WebCore::jsTestObjPrototypeFunctionObjMethodWithArgs): (WebCore::jsTestObjPrototypeFunctionMethodWithSequenceArg): (WebCore::jsTestObjPrototypeFunctionMethodReturningSequence): (WebCore::jsTestObjPrototypeFunctionMethodWithEnumArg): (WebCore::jsTestObjPrototypeFunctionMethodThatRequiresAllArgsAndThrows): (WebCore::jsTestObjPrototypeFunctionSerializedValue): (WebCore::jsTestObjPrototypeFunctionOptionsObject): (WebCore::jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndOptionalArg): (WebCore::jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndTwoOptionalArgs): (WebCore::jsTestObjPrototypeFunctionMethodWithCallbackArg): (WebCore::jsTestObjPrototypeFunctionMethodWithNonCallbackArgAndCallbackArg): (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::jsTestObjConstructorFunctionClassMethod2): (WebCore::jsTestObjConstructorFunctionOverloadedMethod11): (WebCore::jsTestObjConstructorFunctionOverloadedMethod12): (WebCore::jsTestObjPrototypeFunctionClassMethodWithClamp): (WebCore::jsTestObjPrototypeFunctionMethodWithUnsignedLongSequence): (WebCore::jsTestObjPrototypeFunctionStringArrayFunction): (WebCore::jsTestObjPrototypeFunctionDomStringListFunction): (WebCore::jsTestObjPrototypeFunctionMethodWithAndWithoutNullableSequence): (WebCore::jsTestObjPrototypeFunctionMethodWithAndWithoutNullableSequence2): (WebCore::jsTestObjPrototypeFunctionConvert1): (WebCore::jsTestObjPrototypeFunctionConvert2): (WebCore::jsTestObjPrototypeFunctionConvert4): (WebCore::jsTestObjPrototypeFunctionConvert5): (WebCore::jsTestObjPrototypeFunctionStrictFunction): (WebCore::jsTestObjPrototypeFunctionStrictFunctionWithSequence): (WebCore::jsTestObjPrototypeFunctionStrictFunctionWithArray): (WebCore::jsTestObjPrototypeFunctionVariadicStringMethod): (WebCore::jsTestObjPrototypeFunctionVariadicDoubleMethod): (WebCore::jsTestObjPrototypeFunctionVariadicNodeMethod): (WebCore::jsTestObjPrototypeFunctionAny): * bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp: (WebCore::JSTestOverloadedConstructorsConstructor::constructJSTestOverloadedConstructors1): (WebCore::JSTestOverloadedConstructorsConstructor::constructJSTestOverloadedConstructors2): (WebCore::JSTestOverloadedConstructorsConstructor::constructJSTestOverloadedConstructors3): (WebCore::JSTestOverloadedConstructorsConstructor::constructJSTestOverloadedConstructors4): * bindings/scripts/test/JS/JSTestTypedefs.cpp: (WebCore::JSTestTypedefsConstructor::constructJSTestTypedefs): (WebCore::jsTestTypedefsPrototypeFunctionSetShadow): (WebCore::jsTestTypedefsPrototypeFunctionMethodWithSequenceArg): (WebCore::jsTestTypedefsPrototypeFunctionNullableArrayArg): (WebCore::jsTestTypedefsPrototypeFunctionFuncWithClamp): (WebCore::jsTestTypedefsPrototypeFunctionStringArrayFunction): (WebCore::jsTestTypedefsPrototypeFunctionStringArrayFunction2): (WebCore::jsTestTypedefsPrototypeFunctionCallWithSequenceThatRequiresInclude):
Modified Paths
- trunk/Source/WebCore/ChangeLog
- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestActiveDOMObject.cpp
- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp
- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventTarget.cpp
- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestInterface.cpp
- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp
- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNamedConstructor.cpp
- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp
- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp
- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestTypedefs.cpp
Diff
Modified: trunk/Source/WebCore/ChangeLog (175462 => 175463)
--- trunk/Source/WebCore/ChangeLog 2014-11-02 16:37:59 UTC (rev 175462)
+++ trunk/Source/WebCore/ChangeLog 2014-11-02 18:19:33 UTC (rev 175463)
@@ -1,5 +1,89 @@
2014-11-02 Chris Dumez <[email protected]>
+ Unreviewed, rebaseline bindings tests after r175462.
+
+ * 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):
+ (WebCore::jsTestEventTargetPrototypeFunctionDispatchEvent):
+ * bindings/scripts/test/JS/JSTestInterface.cpp:
+ (WebCore::JSTestInterfaceConstructor::constructJSTestInterface):
+ (WebCore::jsTestInterfacePrototypeFunctionImplementsMethod2):
+ (WebCore::jsTestInterfacePrototypeFunctionSupplementalMethod2):
+ * bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp:
+ (WebCore::jsTestMediaQueryListListenerPrototypeFunctionMethod):
+ * bindings/scripts/test/JS/JSTestNamedConstructor.cpp:
+ (WebCore::JSTestNamedConstructorNamedConstructor::constructJSTestNamedConstructor):
+ * bindings/scripts/test/JS/JSTestObj.cpp:
+ (WebCore::JSTestObjConstructor::constructJSTestObj):
+ (WebCore::jsTestObjPrototypeFunctionVoidMethodWithArgs):
+ (WebCore::jsTestObjPrototypeFunctionByteMethodWithArgs):
+ (WebCore::jsTestObjPrototypeFunctionOctetMethodWithArgs):
+ (WebCore::jsTestObjPrototypeFunctionLongMethodWithArgs):
+ (WebCore::jsTestObjPrototypeFunctionObjMethodWithArgs):
+ (WebCore::jsTestObjPrototypeFunctionMethodWithSequenceArg):
+ (WebCore::jsTestObjPrototypeFunctionMethodReturningSequence):
+ (WebCore::jsTestObjPrototypeFunctionMethodWithEnumArg):
+ (WebCore::jsTestObjPrototypeFunctionMethodThatRequiresAllArgsAndThrows):
+ (WebCore::jsTestObjPrototypeFunctionSerializedValue):
+ (WebCore::jsTestObjPrototypeFunctionOptionsObject):
+ (WebCore::jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndOptionalArg):
+ (WebCore::jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndTwoOptionalArgs):
+ (WebCore::jsTestObjPrototypeFunctionMethodWithCallbackArg):
+ (WebCore::jsTestObjPrototypeFunctionMethodWithNonCallbackArgAndCallbackArg):
+ (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::jsTestObjConstructorFunctionClassMethod2):
+ (WebCore::jsTestObjConstructorFunctionOverloadedMethod11):
+ (WebCore::jsTestObjConstructorFunctionOverloadedMethod12):
+ (WebCore::jsTestObjPrototypeFunctionClassMethodWithClamp):
+ (WebCore::jsTestObjPrototypeFunctionMethodWithUnsignedLongSequence):
+ (WebCore::jsTestObjPrototypeFunctionStringArrayFunction):
+ (WebCore::jsTestObjPrototypeFunctionDomStringListFunction):
+ (WebCore::jsTestObjPrototypeFunctionMethodWithAndWithoutNullableSequence):
+ (WebCore::jsTestObjPrototypeFunctionMethodWithAndWithoutNullableSequence2):
+ (WebCore::jsTestObjPrototypeFunctionConvert1):
+ (WebCore::jsTestObjPrototypeFunctionConvert2):
+ (WebCore::jsTestObjPrototypeFunctionConvert4):
+ (WebCore::jsTestObjPrototypeFunctionConvert5):
+ (WebCore::jsTestObjPrototypeFunctionStrictFunction):
+ (WebCore::jsTestObjPrototypeFunctionStrictFunctionWithSequence):
+ (WebCore::jsTestObjPrototypeFunctionStrictFunctionWithArray):
+ (WebCore::jsTestObjPrototypeFunctionVariadicStringMethod):
+ (WebCore::jsTestObjPrototypeFunctionVariadicDoubleMethod):
+ (WebCore::jsTestObjPrototypeFunctionVariadicNodeMethod):
+ (WebCore::jsTestObjPrototypeFunctionAny):
+ * bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp:
+ (WebCore::JSTestOverloadedConstructorsConstructor::constructJSTestOverloadedConstructors1):
+ (WebCore::JSTestOverloadedConstructorsConstructor::constructJSTestOverloadedConstructors2):
+ (WebCore::JSTestOverloadedConstructorsConstructor::constructJSTestOverloadedConstructors3):
+ (WebCore::JSTestOverloadedConstructorsConstructor::constructJSTestOverloadedConstructors4):
+ * bindings/scripts/test/JS/JSTestTypedefs.cpp:
+ (WebCore::JSTestTypedefsConstructor::constructJSTestTypedefs):
+ (WebCore::jsTestTypedefsPrototypeFunctionSetShadow):
+ (WebCore::jsTestTypedefsPrototypeFunctionMethodWithSequenceArg):
+ (WebCore::jsTestTypedefsPrototypeFunctionNullableArrayArg):
+ (WebCore::jsTestTypedefsPrototypeFunctionFuncWithClamp):
+ (WebCore::jsTestTypedefsPrototypeFunctionStringArrayFunction):
+ (WebCore::jsTestTypedefsPrototypeFunctionStringArrayFunction2):
+ (WebCore::jsTestTypedefsPrototypeFunctionCallWithSequenceThatRequiresInclude):
+
+2014-11-02 Chris Dumez <[email protected]>
+
Reduce the cost of argumentCount checks in the JS bindings
https://bugs.webkit.org/show_bug.cgi?id=138289
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestActiveDOMObject.cpp (175462 => 175463)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestActiveDOMObject.cpp 2014-11-02 16:37:59 UTC (rev 175462)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestActiveDOMObject.cpp 2014-11-02 18:19:33 UTC (rev 175463)
@@ -212,7 +212,7 @@
if (!BindingSecurity::shouldAllowAccessToDOMWindow(exec, castedThis->impl()))
return JSValue::encode(jsUndefined());
TestActiveDOMObject& impl = castedThis->impl();
- if (exec->argumentCount() < 1)
+ if (UNLIKELY(exec->argumentCount() < 1))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
Node* nextChild(JSNode::toWrapped(exec->argument(0)));
if (UNLIKELY(exec->hadException()))
@@ -229,7 +229,7 @@
return throwThisTypeError(*exec, "TestActiveDOMObject", "postMessage");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestActiveDOMObject::info());
TestActiveDOMObject& impl = castedThis->impl();
- if (exec->argumentCount() < 1)
+ if (UNLIKELY(exec->argumentCount() < 1))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
const String& message(exec->argument(0).isEmpty() ? String() : exec->argument(0).toString(exec)->value(exec));
if (UNLIKELY(exec->hadException()))
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp (175462 => 175463)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp 2014-11-02 16:37:59 UTC (rev 175462)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp 2014-11-02 18:19:33 UTC (rev 175463)
@@ -203,7 +203,7 @@
return throwThisTypeError(*exec, "TestCustomNamedGetter", "anotherFunction");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestCustomNamedGetter::info());
TestCustomNamedGetter& impl = castedThis->impl();
- if (exec->argumentCount() < 1)
+ if (UNLIKELY(exec->argumentCount() < 1))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
const String& str(exec->argument(0).isEmpty() ? String() : exec->argument(0).toString(exec)->value(exec));
if (UNLIKELY(exec->hadException()))
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventTarget.cpp (175462 => 175463)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventTarget.cpp 2014-11-02 16:37:59 UTC (rev 175462)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEventTarget.cpp 2014-11-02 18:19:33 UTC (rev 175463)
@@ -240,7 +240,7 @@
return throwThisTypeError(*exec, "TestEventTarget", "item");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestEventTarget::info());
TestEventTarget& impl = castedThis->impl();
- if (exec->argumentCount() < 1)
+ if (UNLIKELY(exec->argumentCount() < 1))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
int index(toUInt32(exec, exec->argument(0), NormalConversion));
if (index < 0) {
@@ -291,7 +291,7 @@
return throwThisTypeError(*exec, "TestEventTarget", "dispatchEvent");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestEventTarget::info());
TestEventTarget& impl = castedThis->impl();
- if (exec->argumentCount() < 1)
+ if (UNLIKELY(exec->argumentCount() < 1))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
ExceptionCode ec = 0;
Event* evt(JSEvent::toWrapped(exec->argument(0)));
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestInterface.cpp (175462 => 175463)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestInterface.cpp 2014-11-02 16:37:59 UTC (rev 175462)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestInterface.cpp 2014-11-02 18:19:33 UTC (rev 175463)
@@ -272,7 +272,7 @@
EncodedJSValue JSC_HOST_CALL JSTestInterfaceConstructor::constructJSTestInterface(ExecState* exec)
{
JSTestInterfaceConstructor* castedThis = jsCast<JSTestInterfaceConstructor*>(exec->callee());
- if (exec->argumentCount() < 1)
+ if (UNLIKELY(exec->argumentCount() < 1))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
ExceptionCode ec = 0;
const String& str1(exec->argument(0).isEmpty() ? String() : exec->argument(0).toString(exec)->value(exec));
@@ -832,7 +832,7 @@
return throwThisTypeError(*exec, "TestInterface", "implementsMethod2");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestInterface::info());
TestInterface& impl = castedThis->impl();
- if (exec->argumentCount() < 2)
+ if (UNLIKELY(exec->argumentCount() < 2))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
ExceptionCode ec = 0;
ScriptExecutionContext* scriptContext = jsCast<JSDOMGlobalObject*>(exec->lexicalGlobalObject())->scriptExecutionContext();
@@ -898,7 +898,7 @@
return throwThisTypeError(*exec, "TestInterface", "supplementalMethod2");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestInterface::info());
TestInterface& impl = castedThis->impl();
- if (exec->argumentCount() < 2)
+ if (UNLIKELY(exec->argumentCount() < 2))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
ExceptionCode ec = 0;
ScriptExecutionContext* scriptContext = jsCast<JSDOMGlobalObject*>(exec->lexicalGlobalObject())->scriptExecutionContext();
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp (175462 => 175463)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp 2014-11-02 16:37:59 UTC (rev 175462)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp 2014-11-02 18:19:33 UTC (rev 175463)
@@ -167,7 +167,7 @@
return throwThisTypeError(*exec, "TestMediaQueryListListener", "method");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestMediaQueryListListener::info());
TestMediaQueryListListener& impl = castedThis->impl();
- if (exec->argumentCount() < 1)
+ if (UNLIKELY(exec->argumentCount() < 1))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
if (!exec->argument(0).isFunction())
return throwArgumentMustBeFunctionError(*exec, 0, "listener", "TestMediaQueryListListener", "method");
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNamedConstructor.cpp (175462 => 175463)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNamedConstructor.cpp 2014-11-02 16:37:59 UTC (rev 175462)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNamedConstructor.cpp 2014-11-02 18:19:33 UTC (rev 175463)
@@ -125,7 +125,7 @@
EncodedJSValue JSC_HOST_CALL JSTestNamedConstructorNamedConstructor::constructJSTestNamedConstructor(ExecState* exec)
{
JSTestNamedConstructorNamedConstructor* castedThis = jsCast<JSTestNamedConstructorNamedConstructor*>(exec->callee());
- if (exec->argumentCount() < 1)
+ if (UNLIKELY(exec->argumentCount() < 1))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
ExceptionCode ec = 0;
const String& str1(exec->argument(0).isEmpty() ? String() : exec->argument(0).toString(exec)->value(exec));
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp (175462 => 175463)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp 2014-11-02 16:37:59 UTC (rev 175462)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp 2014-11-02 18:19:33 UTC (rev 175463)
@@ -443,7 +443,7 @@
EncodedJSValue JSC_HOST_CALL JSTestObjConstructor::constructJSTestObj(ExecState* exec)
{
JSTestObjConstructor* castedThis = jsCast<JSTestObjConstructor*>(exec->callee());
- if (exec->argumentCount() < 1)
+ if (UNLIKELY(exec->argumentCount() < 1))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
if (!exec->argument(0).isFunction())
return throwArgumentMustBeFunctionError(*exec, 0, "testCallback", "TestObj", nullptr);
@@ -2931,7 +2931,7 @@
return throwThisTypeError(*exec, "TestObj", "voidMethodWithArgs");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
TestObj& impl = castedThis->impl();
- if (exec->argumentCount() < 3)
+ if (UNLIKELY(exec->argumentCount() < 3))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
int longArg(toInt32(exec, exec->argument(0), NormalConversion));
if (UNLIKELY(exec->hadException()))
@@ -2966,7 +2966,7 @@
return throwThisTypeError(*exec, "TestObj", "byteMethodWithArgs");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
TestObj& impl = castedThis->impl();
- if (exec->argumentCount() < 3)
+ if (UNLIKELY(exec->argumentCount() < 3))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
int8_t byteArg(toInt8(exec, exec->argument(0), NormalConversion));
if (UNLIKELY(exec->hadException()))
@@ -3001,7 +3001,7 @@
return throwThisTypeError(*exec, "TestObj", "octetMethodWithArgs");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
TestObj& impl = castedThis->impl();
- if (exec->argumentCount() < 3)
+ if (UNLIKELY(exec->argumentCount() < 3))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
uint8_t octetArg(toUInt8(exec, exec->argument(0), NormalConversion));
if (UNLIKELY(exec->hadException()))
@@ -3036,7 +3036,7 @@
return throwThisTypeError(*exec, "TestObj", "longMethodWithArgs");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
TestObj& impl = castedThis->impl();
- if (exec->argumentCount() < 3)
+ if (UNLIKELY(exec->argumentCount() < 3))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
int longArg(toInt32(exec, exec->argument(0), NormalConversion));
if (UNLIKELY(exec->hadException()))
@@ -3071,7 +3071,7 @@
return throwThisTypeError(*exec, "TestObj", "objMethodWithArgs");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
TestObj& impl = castedThis->impl();
- if (exec->argumentCount() < 3)
+ if (UNLIKELY(exec->argumentCount() < 3))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
int longArg(toInt32(exec, exec->argument(0), NormalConversion));
if (UNLIKELY(exec->hadException()))
@@ -3094,7 +3094,7 @@
return throwThisTypeError(*exec, "TestObj", "methodWithSequenceArg");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
TestObj& impl = castedThis->impl();
- if (exec->argumentCount() < 1)
+ if (UNLIKELY(exec->argumentCount() < 1))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
Vector<RefPtr<ScriptProfile>> sequenceArg((toRefPtrNativeArray<ScriptProfile, JSScriptProfile>(exec, exec->argument(0), &JSScriptProfile::toWrapped)));
if (UNLIKELY(exec->hadException()))
@@ -3111,7 +3111,7 @@
return throwThisTypeError(*exec, "TestObj", "methodReturningSequence");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
TestObj& impl = castedThis->impl();
- if (exec->argumentCount() < 1)
+ if (UNLIKELY(exec->argumentCount() < 1))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
int longArg(toInt32(exec, exec->argument(0), NormalConversion));
if (UNLIKELY(exec->hadException()))
@@ -3128,7 +3128,7 @@
return throwThisTypeError(*exec, "TestObj", "methodWithEnumArg");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
TestObj& impl = castedThis->impl();
- if (exec->argumentCount() < 1)
+ if (UNLIKELY(exec->argumentCount() < 1))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
const String enumArg(exec->argument(0).isEmpty() ? String() : exec->argument(0).toString(exec)->value(exec));
if (UNLIKELY(exec->hadException()))
@@ -3147,7 +3147,7 @@
return throwThisTypeError(*exec, "TestObj", "methodThatRequiresAllArgsAndThrows");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
TestObj& impl = castedThis->impl();
- if (exec->argumentCount() < 2)
+ if (UNLIKELY(exec->argumentCount() < 2))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
ExceptionCode ec = 0;
const String& strArg(exec->argument(0).isEmpty() ? String() : exec->argument(0).toString(exec)->value(exec));
@@ -3170,7 +3170,7 @@
return throwThisTypeError(*exec, "TestObj", "serializedValue");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
TestObj& impl = castedThis->impl();
- if (exec->argumentCount() < 1)
+ if (UNLIKELY(exec->argumentCount() < 1))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
RefPtr<SerializedScriptValue> serializedArg(SerializedScriptValue::create(exec, exec->argument(0), 0, 0));
if (UNLIKELY(exec->hadException()))
@@ -3187,7 +3187,7 @@
return throwThisTypeError(*exec, "TestObj", "optionsObject");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
TestObj& impl = castedThis->impl();
- if (exec->argumentCount() < 1)
+ if (UNLIKELY(exec->argumentCount() < 1))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
Dictionary oo(exec, exec->argument(0));
if (UNLIKELY(exec->hadException()))
@@ -3430,7 +3430,7 @@
return throwThisTypeError(*exec, "TestObj", "methodWithNonOptionalArgAndOptionalArg");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
TestObj& impl = castedThis->impl();
- if (exec->argumentCount() < 1)
+ if (UNLIKELY(exec->argumentCount() < 1))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
int nonOpt(toInt32(exec, exec->argument(0), NormalConversion));
if (UNLIKELY(exec->hadException()))
@@ -3457,7 +3457,7 @@
return throwThisTypeError(*exec, "TestObj", "methodWithNonOptionalArgAndTwoOptionalArgs");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
TestObj& impl = castedThis->impl();
- if (exec->argumentCount() < 1)
+ if (UNLIKELY(exec->argumentCount() < 1))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
int nonOpt(toInt32(exec, exec->argument(0), NormalConversion));
if (UNLIKELY(exec->hadException()))
@@ -3544,7 +3544,7 @@
return throwThisTypeError(*exec, "TestObj", "methodWithCallbackArg");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
TestObj& impl = castedThis->impl();
- if (exec->argumentCount() < 1)
+ if (UNLIKELY(exec->argumentCount() < 1))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
if (!exec->argument(0).isFunction())
return throwArgumentMustBeFunctionError(*exec, 0, "callback", "TestObj", "methodWithCallbackArg");
@@ -3561,7 +3561,7 @@
return throwThisTypeError(*exec, "TestObj", "methodWithNonCallbackArgAndCallbackArg");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
TestObj& impl = castedThis->impl();
- if (exec->argumentCount() < 2)
+ if (UNLIKELY(exec->argumentCount() < 2))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
int nonCallback(toInt32(exec, exec->argument(0), NormalConversion));
if (UNLIKELY(exec->hadException()))
@@ -3605,7 +3605,7 @@
EncodedJSValue JSC_HOST_CALL jsTestObjConstructorFunctionStaticMethodWithCallbackArg(ExecState* exec)
{
- if (exec->argumentCount() < 1)
+ if (UNLIKELY(exec->argumentCount() < 1))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
if (!exec->argument(0).isFunction())
return throwArgumentMustBeFunctionError(*exec, 0, "callback", "TestObj", "staticMethodWithCallbackArg");
@@ -3667,7 +3667,7 @@
return throwThisTypeError(*exec, "TestObj", "overloadedMethod");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
TestObj& impl = castedThis->impl();
- if (exec->argumentCount() < 2)
+ if (UNLIKELY(exec->argumentCount() < 2))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
TestObj* objArg(JSTestObj::toWrapped(exec->argument(0)));
if (UNLIKELY(exec->hadException()))
@@ -3687,7 +3687,7 @@
return throwThisTypeError(*exec, "TestObj", "overloadedMethod");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
TestObj& impl = castedThis->impl();
- if (exec->argumentCount() < 1)
+ if (UNLIKELY(exec->argumentCount() < 1))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
TestObj* objArg(JSTestObj::toWrapped(exec->argument(0)));
if (UNLIKELY(exec->hadException()))
@@ -3714,7 +3714,7 @@
return throwThisTypeError(*exec, "TestObj", "overloadedMethod");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
TestObj& impl = castedThis->impl();
- if (exec->argumentCount() < 1)
+ if (UNLIKELY(exec->argumentCount() < 1))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
const String& strArg(exec->argument(0).isEmpty() ? String() : exec->argument(0).toString(exec)->value(exec));
if (UNLIKELY(exec->hadException()))
@@ -3731,7 +3731,7 @@
return throwThisTypeError(*exec, "TestObj", "overloadedMethod");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
TestObj& impl = castedThis->impl();
- if (exec->argumentCount() < 1)
+ if (UNLIKELY(exec->argumentCount() < 1))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
int longArg(toInt32(exec, exec->argument(0), NormalConversion));
if (UNLIKELY(exec->hadException()))
@@ -3748,7 +3748,7 @@
return throwThisTypeError(*exec, "TestObj", "overloadedMethod");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
TestObj& impl = castedThis->impl();
- if (exec->argumentCount() < 1)
+ if (UNLIKELY(exec->argumentCount() < 1))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
if (!exec->argument(0).isFunction())
return throwArgumentMustBeFunctionError(*exec, 0, "callback", "TestObj", "overloadedMethod");
@@ -3765,7 +3765,7 @@
return throwThisTypeError(*exec, "TestObj", "overloadedMethod");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
TestObj& impl = castedThis->impl();
- if (exec->argumentCount() < 1)
+ if (UNLIKELY(exec->argumentCount() < 1))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
RefPtr<DOMStringList> listArg(toDOMStringList(exec, exec->argument(0)));
if (UNLIKELY(exec->hadException()))
@@ -3782,7 +3782,7 @@
return throwThisTypeError(*exec, "TestObj", "overloadedMethod");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
TestObj& impl = castedThis->impl();
- if (exec->argumentCount() < 1)
+ if (UNLIKELY(exec->argumentCount() < 1))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
Vector<String> arrayArg(toNativeArray<String>(exec, exec->argument(0)));
if (UNLIKELY(exec->hadException()))
@@ -3799,7 +3799,7 @@
return throwThisTypeError(*exec, "TestObj", "overloadedMethod");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
TestObj& impl = castedThis->impl();
- if (exec->argumentCount() < 1)
+ if (UNLIKELY(exec->argumentCount() < 1))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
TestObj* objArg(JSTestObj::toWrapped(exec->argument(0)));
if (UNLIKELY(exec->hadException()))
@@ -3816,7 +3816,7 @@
return throwThisTypeError(*exec, "TestObj", "overloadedMethod");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
TestObj& impl = castedThis->impl();
- if (exec->argumentCount() < 1)
+ if (UNLIKELY(exec->argumentCount() < 1))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
Vector<String> arrayArg(toNativeArray<String>(exec, exec->argument(0)));
if (UNLIKELY(exec->hadException()))
@@ -3833,7 +3833,7 @@
return throwThisTypeError(*exec, "TestObj", "overloadedMethod");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
TestObj& impl = castedThis->impl();
- if (exec->argumentCount() < 1)
+ if (UNLIKELY(exec->argumentCount() < 1))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
Vector<unsigned> arrayArg(toNativeArray<unsigned>(exec, exec->argument(0)));
if (UNLIKELY(exec->hadException()))
@@ -3850,7 +3850,7 @@
return throwThisTypeError(*exec, "TestObj", "overloadedMethod");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
TestObj& impl = castedThis->impl();
- if (exec->argumentCount() < 1)
+ if (UNLIKELY(exec->argumentCount() < 1))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
const String& strArg(exec->argument(0).isEmpty() ? String() : exec->argument(0).toString(exec)->value(exec));
if (UNLIKELY(exec->hadException()))
@@ -3915,7 +3915,7 @@
EncodedJSValue JSC_HOST_CALL jsTestObjConstructorFunctionClassMethod2(ExecState* exec)
{
- if (exec->argumentCount() < 1)
+ if (UNLIKELY(exec->argumentCount() < 1))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
return JSValue::encode(JSTestObj::classMethod2(exec));
}
@@ -3923,7 +3923,7 @@
#if ENABLE(Condition1)
static EncodedJSValue JSC_HOST_CALL jsTestObjConstructorFunctionOverloadedMethod11(ExecState* exec)
{
- if (exec->argumentCount() < 1)
+ if (UNLIKELY(exec->argumentCount() < 1))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
int arg(toInt32(exec, exec->argument(0), NormalConversion));
if (UNLIKELY(exec->hadException()))
@@ -3937,7 +3937,7 @@
#if ENABLE(Condition1)
static EncodedJSValue JSC_HOST_CALL jsTestObjConstructorFunctionOverloadedMethod12(ExecState* exec)
{
- if (exec->argumentCount() < 1)
+ if (UNLIKELY(exec->argumentCount() < 1))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
const String& type(exec->argument(0).isEmpty() ? String() : exec->argument(0).toString(exec)->value(exec));
if (UNLIKELY(exec->hadException()))
@@ -3975,7 +3975,7 @@
return throwThisTypeError(*exec, "TestObj", "classMethodWithClamp");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
TestObj& impl = castedThis->impl();
- if (exec->argumentCount() < 2)
+ if (UNLIKELY(exec->argumentCount() < 2))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
unsigned short objArgsShort = 0;
double objArgsShortNativeValue = exec->argument(0).toNumber(exec);
@@ -4005,7 +4005,7 @@
return throwThisTypeError(*exec, "TestObj", "methodWithUnsignedLongSequence");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
TestObj& impl = castedThis->impl();
- if (exec->argumentCount() < 1)
+ if (UNLIKELY(exec->argumentCount() < 1))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
Vector<unsigned> unsignedLongSequence(toNativeArray<unsigned>(exec, exec->argument(0)));
if (UNLIKELY(exec->hadException()))
@@ -4022,7 +4022,7 @@
return throwThisTypeError(*exec, "TestObj", "stringArrayFunction");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
TestObj& impl = castedThis->impl();
- if (exec->argumentCount() < 1)
+ if (UNLIKELY(exec->argumentCount() < 1))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
ExceptionCode ec = 0;
Vector<String> values(toNativeArray<String>(exec, exec->argument(0)));
@@ -4042,7 +4042,7 @@
return throwThisTypeError(*exec, "TestObj", "domStringListFunction");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
TestObj& impl = castedThis->impl();
- if (exec->argumentCount() < 1)
+ if (UNLIKELY(exec->argumentCount() < 1))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
ExceptionCode ec = 0;
RefPtr<DOMStringList> values(toDOMStringList(exec, exec->argument(0)));
@@ -4062,7 +4062,7 @@
return throwThisTypeError(*exec, "TestObj", "methodWithAndWithoutNullableSequence");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
TestObj& impl = castedThis->impl();
- if (exec->argumentCount() < 2)
+ if (UNLIKELY(exec->argumentCount() < 2))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
Vector<unsigned> arrayArg(toNativeArray<unsigned>(exec, exec->argument(0)));
if (UNLIKELY(exec->hadException()))
@@ -4082,7 +4082,7 @@
return throwThisTypeError(*exec, "TestObj", "methodWithAndWithoutNullableSequence2");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
TestObj& impl = castedThis->impl();
- if (exec->argumentCount() < 2)
+ if (UNLIKELY(exec->argumentCount() < 2))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
Vector<unsigned> arrayArg(toNativeArray<unsigned>(exec, exec->argument(0)));
if (UNLIKELY(exec->hadException()))
@@ -4119,7 +4119,7 @@
return throwThisTypeError(*exec, "TestObj", "convert1");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
TestObj& impl = castedThis->impl();
- if (exec->argumentCount() < 1)
+ if (UNLIKELY(exec->argumentCount() < 1))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
TestNode* value(JSTestNode::toWrapped(exec->argument(0)));
if (UNLIKELY(exec->hadException()))
@@ -4136,7 +4136,7 @@
return throwThisTypeError(*exec, "TestObj", "convert2");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
TestObj& impl = castedThis->impl();
- if (exec->argumentCount() < 1)
+ if (UNLIKELY(exec->argumentCount() < 1))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
TestNode* value(JSTestNode::toWrapped(exec->argument(0)));
if (UNLIKELY(exec->hadException()))
@@ -4153,7 +4153,7 @@
return throwThisTypeError(*exec, "TestObj", "convert4");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
TestObj& impl = castedThis->impl();
- if (exec->argumentCount() < 1)
+ if (UNLIKELY(exec->argumentCount() < 1))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
TestNode* value(JSTestNode::toWrapped(exec->argument(0)));
if (UNLIKELY(exec->hadException()))
@@ -4170,7 +4170,7 @@
return throwThisTypeError(*exec, "TestObj", "convert5");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
TestObj& impl = castedThis->impl();
- if (exec->argumentCount() < 1)
+ if (UNLIKELY(exec->argumentCount() < 1))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
TestNode* value(JSTestNode::toWrapped(exec->argument(0)));
if (UNLIKELY(exec->hadException()))
@@ -4223,7 +4223,7 @@
return throwThisTypeError(*exec, "TestObj", "strictFunction");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
TestObj& impl = castedThis->impl();
- if (exec->argumentCount() < 3)
+ if (UNLIKELY(exec->argumentCount() < 3))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
ExceptionCode ec = 0;
const String& str(exec->argument(0).isEmpty() ? String() : exec->argument(0).toString(exec)->value(exec));
@@ -4249,7 +4249,7 @@
return throwThisTypeError(*exec, "TestObj", "strictFunctionWithSequence");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
TestObj& impl = castedThis->impl();
- if (exec->argumentCount() < 2)
+ if (UNLIKELY(exec->argumentCount() < 2))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
ExceptionCode ec = 0;
if (!exec->argument(0).isUndefinedOrNull() && !exec->argument(0).inherits(JSTestObj::info()))
@@ -4274,7 +4274,7 @@
return throwThisTypeError(*exec, "TestObj", "strictFunctionWithArray");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
TestObj& impl = castedThis->impl();
- if (exec->argumentCount() < 2)
+ if (UNLIKELY(exec->argumentCount() < 2))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
ExceptionCode ec = 0;
if (!exec->argument(0).isUndefinedOrNull() && !exec->argument(0).inherits(JSTestObj::info()))
@@ -4299,7 +4299,7 @@
return throwThisTypeError(*exec, "TestObj", "variadicStringMethod");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
TestObj& impl = castedThis->impl();
- if (exec->argumentCount() < 1)
+ if (UNLIKELY(exec->argumentCount() < 1))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
const String& head(exec->argument(0).isEmpty() ? String() : exec->argument(0).toString(exec)->value(exec));
if (UNLIKELY(exec->hadException()))
@@ -4319,7 +4319,7 @@
return throwThisTypeError(*exec, "TestObj", "variadicDoubleMethod");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
TestObj& impl = castedThis->impl();
- if (exec->argumentCount() < 1)
+ if (UNLIKELY(exec->argumentCount() < 1))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
double head(exec->argument(0).toNumber(exec));
if (UNLIKELY(exec->hadException()))
@@ -4339,7 +4339,7 @@
return throwThisTypeError(*exec, "TestObj", "variadicNodeMethod");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
TestObj& impl = castedThis->impl();
- if (exec->argumentCount() < 1)
+ if (UNLIKELY(exec->argumentCount() < 1))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
Node* head(JSNode::toWrapped(exec->argument(0)));
if (UNLIKELY(exec->hadException()))
@@ -4362,7 +4362,7 @@
return throwThisTypeError(*exec, "TestObj", "any");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
TestObj& impl = castedThis->impl();
- if (exec->argumentCount() < 2)
+ if (UNLIKELY(exec->argumentCount() < 2))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
float a(exec->argument(0).toFloat(exec));
if (UNLIKELY(exec->hadException()))
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp (175462 => 175463)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp 2014-11-02 16:37:59 UTC (rev 175462)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp 2014-11-02 18:19:33 UTC (rev 175463)
@@ -92,7 +92,7 @@
EncodedJSValue JSC_HOST_CALL JSTestOverloadedConstructorsConstructor::constructJSTestOverloadedConstructors1(ExecState* exec)
{
JSTestOverloadedConstructorsConstructor* castedThis = jsCast<JSTestOverloadedConstructorsConstructor*>(exec->callee());
- if (exec->argumentCount() < 1)
+ if (UNLIKELY(exec->argumentCount() < 1))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
ArrayBuffer* arrayBuffer(toArrayBuffer(exec->argument(0)));
if (UNLIKELY(exec->hadException()))
@@ -104,7 +104,7 @@
EncodedJSValue JSC_HOST_CALL JSTestOverloadedConstructorsConstructor::constructJSTestOverloadedConstructors2(ExecState* exec)
{
JSTestOverloadedConstructorsConstructor* castedThis = jsCast<JSTestOverloadedConstructorsConstructor*>(exec->callee());
- if (exec->argumentCount() < 1)
+ if (UNLIKELY(exec->argumentCount() < 1))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
RefPtr<ArrayBufferView> arrayBufferView(toArrayBufferView(exec->argument(0)));
if (UNLIKELY(exec->hadException()))
@@ -116,7 +116,7 @@
EncodedJSValue JSC_HOST_CALL JSTestOverloadedConstructorsConstructor::constructJSTestOverloadedConstructors3(ExecState* exec)
{
JSTestOverloadedConstructorsConstructor* castedThis = jsCast<JSTestOverloadedConstructorsConstructor*>(exec->callee());
- if (exec->argumentCount() < 1)
+ if (UNLIKELY(exec->argumentCount() < 1))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
Blob* blob(JSBlob::toWrapped(exec->argument(0)));
if (UNLIKELY(exec->hadException()))
@@ -128,7 +128,7 @@
EncodedJSValue JSC_HOST_CALL JSTestOverloadedConstructorsConstructor::constructJSTestOverloadedConstructors4(ExecState* exec)
{
JSTestOverloadedConstructorsConstructor* castedThis = jsCast<JSTestOverloadedConstructorsConstructor*>(exec->callee());
- if (exec->argumentCount() < 1)
+ if (UNLIKELY(exec->argumentCount() < 1))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
const String& string(exec->argument(0).isEmpty() ? String() : exec->argument(0).toString(exec)->value(exec));
if (UNLIKELY(exec->hadException()))
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestTypedefs.cpp (175462 => 175463)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestTypedefs.cpp 2014-11-02 16:37:59 UTC (rev 175462)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestTypedefs.cpp 2014-11-02 18:19:33 UTC (rev 175463)
@@ -147,7 +147,7 @@
EncodedJSValue JSC_HOST_CALL JSTestTypedefsConstructor::constructJSTestTypedefs(ExecState* exec)
{
JSTestTypedefsConstructor* castedThis = jsCast<JSTestTypedefsConstructor*>(exec->callee());
- if (exec->argumentCount() < 2)
+ if (UNLIKELY(exec->argumentCount() < 2))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
const String& hello(exec->argument(0).isEmpty() ? String() : exec->argument(0).toString(exec)->value(exec));
if (UNLIKELY(exec->hadException()))
@@ -531,7 +531,7 @@
return throwThisTypeError(*exec, "TestTypedefs", "setShadow");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestTypedefs::info());
TestTypedefs& impl = castedThis->impl();
- if (exec->argumentCount() < 3)
+ if (UNLIKELY(exec->argumentCount() < 3))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
float width(exec->argument(0).toFloat(exec));
if (UNLIKELY(exec->hadException()))
@@ -572,7 +572,7 @@
return throwThisTypeError(*exec, "TestTypedefs", "methodWithSequenceArg");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestTypedefs::info());
TestTypedefs& impl = castedThis->impl();
- if (exec->argumentCount() < 1)
+ if (UNLIKELY(exec->argumentCount() < 1))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
Vector<RefPtr<SerializedScriptValue>> sequenceArg((toRefPtrNativeArray<SerializedScriptValue, JSSerializedScriptValue>(exec, exec->argument(0), &JSSerializedScriptValue::toWrapped)));
if (UNLIKELY(exec->hadException()))
@@ -589,7 +589,7 @@
return throwThisTypeError(*exec, "TestTypedefs", "nullableArrayArg");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestTypedefs::info());
TestTypedefs& impl = castedThis->impl();
- if (exec->argumentCount() < 1)
+ if (UNLIKELY(exec->argumentCount() < 1))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
Vector<String> arrayArg(toNativeArray<String>(exec, exec->argument(0)));
if (UNLIKELY(exec->hadException()))
@@ -606,7 +606,7 @@
return throwThisTypeError(*exec, "TestTypedefs", "funcWithClamp");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestTypedefs::info());
TestTypedefs& impl = castedThis->impl();
- if (exec->argumentCount() < 1)
+ if (UNLIKELY(exec->argumentCount() < 1))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
unsigned long long arg1 = 0;
double arg1NativeValue = exec->argument(0).toNumber(exec);
@@ -655,7 +655,7 @@
return throwThisTypeError(*exec, "TestTypedefs", "stringArrayFunction");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestTypedefs::info());
TestTypedefs& impl = castedThis->impl();
- if (exec->argumentCount() < 1)
+ if (UNLIKELY(exec->argumentCount() < 1))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
ExceptionCode ec = 0;
Vector<String> values(toNativeArray<String>(exec, exec->argument(0)));
@@ -675,7 +675,7 @@
return throwThisTypeError(*exec, "TestTypedefs", "stringArrayFunction2");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestTypedefs::info());
TestTypedefs& impl = castedThis->impl();
- if (exec->argumentCount() < 1)
+ if (UNLIKELY(exec->argumentCount() < 1))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
ExceptionCode ec = 0;
Vector<String> values(toNativeArray<String>(exec, exec->argument(0)));
@@ -695,7 +695,7 @@
return throwThisTypeError(*exec, "TestTypedefs", "callWithSequenceThatRequiresInclude");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestTypedefs::info());
TestTypedefs& impl = castedThis->impl();
- if (exec->argumentCount() < 1)
+ if (UNLIKELY(exec->argumentCount() < 1))
return throwVMError(exec, createNotEnoughArgumentsError(exec));
Vector<RefPtr<TestEventTarget>> sequenceArg((toRefPtrNativeArray<TestEventTarget, JSTestEventTarget>(exec, exec->argument(0), &JSTestEventTarget::toWrapped)));
if (UNLIKELY(exec->hadException()))
_______________________________________________ webkit-changes mailing list [email protected] https://lists.webkit.org/mailman/listinfo/webkit-changes
