Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(363)

Unified Diff: Source/bindings/tests/results/V8TestObject.cpp

Issue 113783002: [POSSIBLE PERFORMANCE IMPACT] Remove UNLIKELY from bindings required arguments check (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove FIXME Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/bindings/tests/results/V8TestObject.cpp
diff --git a/Source/bindings/tests/results/V8TestObject.cpp b/Source/bindings/tests/results/V8TestObject.cpp
index 3253f58615f77a1b1ea8f3a8b091ab580fa68f01..2dd6fab5aa0aaf0a9fd2dea2aaa211643f858fbb 100644
--- a/Source/bindings/tests/results/V8TestObject.cpp
+++ b/Source/bindings/tests/results/V8TestObject.cpp
@@ -2923,7 +2923,7 @@ static void voidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
static void voidMethodWithArgsMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(info.Length() < 3)) {
+ if (info.Length() < 3) {
throwTypeError(ExceptionMessages::failedToExecute("voidMethodWithArgs", "TestObject", ExceptionMessages::notEnoughArguments(3, info.Length())), info.GetIsolate());
return;
}
@@ -2960,7 +2960,7 @@ static void longMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
static void longMethodWithArgsMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(info.Length() < 3)) {
+ if (info.Length() < 3) {
throwTypeError(ExceptionMessages::failedToExecute("longMethodWithArgs", "TestObject", ExceptionMessages::notEnoughArguments(3, info.Length())), info.GetIsolate());
return;
}
@@ -2998,7 +2998,7 @@ static void objMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& i
static void objMethodWithArgsMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(info.Length() < 3)) {
+ if (info.Length() < 3) {
throwTypeError(ExceptionMessages::failedToExecute("objMethodWithArgs", "TestObject", ExceptionMessages::notEnoughArguments(3, info.Length())), info.GetIsolate());
return;
}
@@ -3022,7 +3022,7 @@ static void objMethodWithArgsMethodCallback(const v8::FunctionCallbackInfo<v8::V
static void methodWithSequenceArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(info.Length() < 1)) {
+ if (info.Length() < 1) {
throwTypeError(ExceptionMessages::failedToExecute("methodWithSequenceArg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
return;
}
@@ -3040,7 +3040,7 @@ static void methodWithSequenceArgMethodCallback(const v8::FunctionCallbackInfo<v
static void methodReturningSequenceMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(info.Length() < 1)) {
+ if (info.Length() < 1) {
throwTypeError(ExceptionMessages::failedToExecute("methodReturningSequence", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
return;
}
@@ -3058,7 +3058,7 @@ static void methodReturningSequenceMethodCallback(const v8::FunctionCallbackInfo
static void methodWithEnumArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(info.Length() < 1)) {
+ if (info.Length() < 1) {
throwTypeError(ExceptionMessages::failedToExecute("methodWithEnumArg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
return;
}
@@ -3082,7 +3082,7 @@ static void methodWithEnumArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
static void methodThatRequiresAllArgsAndThrowsMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
{
ExceptionState exceptionState(ExceptionState::ExecutionContext, "methodThatRequiresAllArgsAndThrows", "TestObject", info.Holder(), info.GetIsolate());
- if (UNLIKELY(info.Length() < 2)) {
+ if (info.Length() < 2) {
exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(2, info.Length()));
exceptionState.throwIfNeeded();
return;
@@ -3109,7 +3109,7 @@ static void methodThatRequiresAllArgsAndThrowsMethodCallback(const v8::FunctionC
static void methodQueryListListenerMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(info.Length() < 1)) {
+ if (info.Length() < 1) {
throwTypeError(ExceptionMessages::failedToExecute("methodQueryListListener", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
return;
}
@@ -3127,7 +3127,7 @@ static void methodQueryListListenerMethodCallback(const v8::FunctionCallbackInfo
static void serializedValueMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(info.Length() < 1)) {
+ if (info.Length() < 1) {
throwTypeError(ExceptionMessages::failedToExecute("serializedValue", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
return;
}
@@ -3148,7 +3148,7 @@ static void serializedValueMethodCallback(const v8::FunctionCallbackInfo<v8::Val
static void optionsObjectMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(info.Length() < 1)) {
+ if (info.Length() < 1) {
throwTypeError(ExceptionMessages::failedToExecute("optionsObject", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
return;
}
@@ -3175,7 +3175,7 @@ static void optionsObjectMethodCallback(const v8::FunctionCallbackInfo<v8::Value
static void optionsObjectListMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(info.Length() < 1)) {
+ if (info.Length() < 1) {
throwTypeError(ExceptionMessages::failedToExecute("optionsObjectList", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
return;
}
@@ -3502,7 +3502,7 @@ static void methodWithOptionalArgMethodCallback(const v8::FunctionCallbackInfo<v
static void methodWithNonOptionalArgAndOptionalArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(info.Length() < 1)) {
+ if (info.Length() < 1) {
throwTypeError(ExceptionMessages::failedToExecute("methodWithNonOptionalArgAndOptionalArg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
return;
}
@@ -3525,7 +3525,7 @@ static void methodWithNonOptionalArgAndOptionalArgMethodCallback(const v8::Funct
static void methodWithNonOptionalArgAndTwoOptionalArgsMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(info.Length() < 1)) {
+ if (info.Length() < 1) {
throwTypeError(ExceptionMessages::failedToExecute("methodWithNonOptionalArgAndTwoOptionalArgs", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
return;
}
@@ -3599,7 +3599,7 @@ static void methodWithOptionalStringIsNullStringMethodCallback(const v8::Functio
static void methodWithCallbackInterfaceArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(info.Length() < 1)) {
+ if (info.Length() < 1) {
throwTypeError(ExceptionMessages::failedToExecute("methodWithCallbackInterfaceArg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
return;
}
@@ -3621,7 +3621,7 @@ static void methodWithCallbackInterfaceArgMethodCallback(const v8::FunctionCallb
static void methodWithNonCallbackArgAndCallbackInterfaceArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(info.Length() < 2)) {
+ if (info.Length() < 2) {
throwTypeError(ExceptionMessages::failedToExecute("methodWithNonCallbackArgAndCallbackInterfaceArg", "TestObject", ExceptionMessages::notEnoughArguments(2, info.Length())), info.GetIsolate());
return;
}
@@ -3665,7 +3665,7 @@ static void methodWithCallbackInterfaceAndOptionalArgMethodCallback(const v8::Fu
static void methodWithNullableCallbackInterfaceArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(info.Length() < 1)) {
+ if (info.Length() < 1) {
throwTypeError(ExceptionMessages::failedToExecute("methodWithNullableCallbackInterfaceArg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
return;
}
@@ -3707,7 +3707,7 @@ static void staticMethodWithCallbackAndOptionalArgMethodCallback(const v8::Funct
static void staticMethodWithCallbackArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(info.Length() < 1)) {
+ if (info.Length() < 1) {
throwTypeError(ExceptionMessages::failedToExecute("staticMethodWithCallbackArg", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
return;
}
@@ -3728,7 +3728,7 @@ static void staticMethodWithCallbackArgMethodCallback(const v8::FunctionCallback
static void methodWithEnforceRangeInt8Method(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(info.Length() < 1)) {
+ if (info.Length() < 1) {
throwTypeError(ExceptionMessages::failedToExecute("methodWithEnforceRangeInt8", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
return;
}
@@ -3746,7 +3746,7 @@ static void methodWithEnforceRangeInt8MethodCallback(const v8::FunctionCallbackI
static void methodWithEnforceRangeUInt8Method(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(info.Length() < 1)) {
+ if (info.Length() < 1) {
throwTypeError(ExceptionMessages::failedToExecute("methodWithEnforceRangeUInt8", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
return;
}
@@ -3764,7 +3764,7 @@ static void methodWithEnforceRangeUInt8MethodCallback(const v8::FunctionCallback
static void methodWithEnforceRangeInt16Method(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(info.Length() < 1)) {
+ if (info.Length() < 1) {
throwTypeError(ExceptionMessages::failedToExecute("methodWithEnforceRangeInt16", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
return;
}
@@ -3782,7 +3782,7 @@ static void methodWithEnforceRangeInt16MethodCallback(const v8::FunctionCallback
static void methodWithEnforceRangeUInt16Method(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(info.Length() < 1)) {
+ if (info.Length() < 1) {
throwTypeError(ExceptionMessages::failedToExecute("methodWithEnforceRangeUInt16", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
return;
}
@@ -3800,7 +3800,7 @@ static void methodWithEnforceRangeUInt16MethodCallback(const v8::FunctionCallbac
static void methodWithEnforceRangeInt32Method(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(info.Length() < 1)) {
+ if (info.Length() < 1) {
throwTypeError(ExceptionMessages::failedToExecute("methodWithEnforceRangeInt32", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
return;
}
@@ -3818,7 +3818,7 @@ static void methodWithEnforceRangeInt32MethodCallback(const v8::FunctionCallback
static void methodWithEnforceRangeUInt32Method(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(info.Length() < 1)) {
+ if (info.Length() < 1) {
throwTypeError(ExceptionMessages::failedToExecute("methodWithEnforceRangeUInt32", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
return;
}
@@ -3836,7 +3836,7 @@ static void methodWithEnforceRangeUInt32MethodCallback(const v8::FunctionCallbac
static void methodWithEnforceRangeInt64Method(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(info.Length() < 1)) {
+ if (info.Length() < 1) {
throwTypeError(ExceptionMessages::failedToExecute("methodWithEnforceRangeInt64", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
return;
}
@@ -3854,7 +3854,7 @@ static void methodWithEnforceRangeInt64MethodCallback(const v8::FunctionCallback
static void methodWithEnforceRangeUInt64Method(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(info.Length() < 1)) {
+ if (info.Length() < 1) {
throwTypeError(ExceptionMessages::failedToExecute("methodWithEnforceRangeUInt64", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
return;
}
@@ -3936,7 +3936,7 @@ static void callbackFunctionReturnValueMethodCallback(const v8::FunctionCallback
static void callbackFunctionArgumentMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(info.Length() < 1)) {
+ if (info.Length() < 1) {
throwTypeError(ExceptionMessages::failedToExecute("callbackFunctionArgument", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
return;
}
@@ -3954,7 +3954,7 @@ static void callbackFunctionArgumentMethodCallback(const v8::FunctionCallbackInf
static void overloadedMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(info.Length() < 1)) {
+ if (info.Length() < 1) {
throwTypeError(ExceptionMessages::failedToExecute("overloadedMethod", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
return;
}
@@ -3965,7 +3965,7 @@ static void overloadedMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& i
static void overloadedMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(info.Length() < 1)) {
+ if (info.Length() < 1) {
throwTypeError(ExceptionMessages::failedToExecute("overloadedMethod", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
return;
}
@@ -3980,7 +3980,7 @@ static void overloadedMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& i
static void overloadedMethod3Method(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(info.Length() < 1)) {
+ if (info.Length() < 1) {
throwTypeError(ExceptionMessages::failedToExecute("overloadedMethod", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
return;
}
@@ -3995,7 +3995,7 @@ static void overloadedMethod3Method(const v8::FunctionCallbackInfo<v8::Value>& i
static void overloadedMethod4Method(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(info.Length() < 1)) {
+ if (info.Length() < 1) {
throwTypeError(ExceptionMessages::failedToExecute("overloadedMethod", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
return;
}
@@ -4006,7 +4006,7 @@ static void overloadedMethod4Method(const v8::FunctionCallbackInfo<v8::Value>& i
static void overloadedMethod5Method(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(info.Length() < 1)) {
+ if (info.Length() < 1) {
throwTypeError(ExceptionMessages::failedToExecute("overloadedMethod", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
return;
}
@@ -4056,7 +4056,7 @@ static void overloadedMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
static void overloadedMethodA1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(info.Length() < 1)) {
+ if (info.Length() < 1) {
throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodA", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
return;
}
@@ -4076,7 +4076,7 @@ static void overloadedMethodA1Method(const v8::FunctionCallbackInfo<v8::Value>&
static void overloadedMethodA2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(info.Length() < 2)) {
+ if (info.Length() < 2) {
throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodA", "TestObject", ExceptionMessages::notEnoughArguments(2, info.Length())), info.GetIsolate());
return;
}
@@ -4119,7 +4119,7 @@ static void overloadedMethodAMethodCallback(const v8::FunctionCallbackInfo<v8::V
static void overloadedMethodB1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(info.Length() < 1)) {
+ if (info.Length() < 1) {
throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodB", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
return;
}
@@ -4130,7 +4130,7 @@ static void overloadedMethodB1Method(const v8::FunctionCallbackInfo<v8::Value>&
static void overloadedMethodB2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(info.Length() < 1)) {
+ if (info.Length() < 1) {
throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodB", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
return;
}
@@ -4204,7 +4204,7 @@ static void classMethod2MethodCallback(const v8::FunctionCallbackInfo<v8::Value>
static void classMethodWithClampMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(info.Length() < 2)) {
+ if (info.Length() < 2) {
throwTypeError(ExceptionMessages::failedToExecute("classMethodWithClamp", "TestObject", ExceptionMessages::notEnoughArguments(2, info.Length())), info.GetIsolate());
return;
}
@@ -4229,7 +4229,7 @@ static void classMethodWithClampMethodCallback(const v8::FunctionCallbackInfo<v8
static void enabledAtRuntimeMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(info.Length() < 1)) {
+ if (info.Length() < 1) {
throwTypeError(ExceptionMessages::failedToExecute("enabledAtRuntimeMethod", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
return;
}
@@ -4247,7 +4247,7 @@ static void enabledAtRuntimeMethodMethodCallback(const v8::FunctionCallbackInfo<
static void enabledPerContextMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(info.Length() < 1)) {
+ if (info.Length() < 1) {
throwTypeError(ExceptionMessages::failedToExecute("enabledPerContextMethod", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
return;
}
@@ -4265,7 +4265,7 @@ static void enabledPerContextMethodMethodCallback(const v8::FunctionCallbackInfo
static void methodWithUnsignedLongSequenceMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(info.Length() < 1)) {
+ if (info.Length() < 1) {
throwTypeError(ExceptionMessages::failedToExecute("methodWithUnsignedLongSequence", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
return;
}
@@ -4284,7 +4284,7 @@ static void methodWithUnsignedLongSequenceMethodCallback(const v8::FunctionCallb
static void stringArrayFunctionMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
{
ExceptionState exceptionState(ExceptionState::ExecutionContext, "stringArrayFunction", "TestObject", info.Holder(), info.GetIsolate());
- if (UNLIKELY(info.Length() < 1)) {
+ if (info.Length() < 1) {
exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, info.Length()));
exceptionState.throwIfNeeded();
return;
@@ -4307,7 +4307,7 @@ static void stringArrayFunctionMethodCallback(const v8::FunctionCallbackInfo<v8:
static void domStringListFunctionMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
{
ExceptionState exceptionState(ExceptionState::ExecutionContext, "domStringListFunction", "TestObject", info.Holder(), info.GetIsolate());
- if (UNLIKELY(info.Length() < 1)) {
+ if (info.Length() < 1) {
exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, info.Length()));
exceptionState.throwIfNeeded();
return;
@@ -4351,7 +4351,7 @@ static void getSVGDocumentMethodCallback(const v8::FunctionCallbackInfo<v8::Valu
static void convert1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(info.Length() < 1)) {
+ if (info.Length() < 1) {
throwTypeError(ExceptionMessages::failedToExecute("convert1", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
return;
}
@@ -4369,7 +4369,7 @@ static void convert1MethodCallback(const v8::FunctionCallbackInfo<v8::Value>& in
static void convert2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(info.Length() < 1)) {
+ if (info.Length() < 1) {
throwTypeError(ExceptionMessages::failedToExecute("convert2", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
return;
}
@@ -4413,7 +4413,7 @@ static void immutablePointFunctionMethodCallback(const v8::FunctionCallbackInfo<
static void svgPointMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(info.Length() < 2)) {
+ if (info.Length() < 2) {
throwTypeError(ExceptionMessages::failedToExecute("svgPointMethod", "TestObject", ExceptionMessages::notEnoughArguments(2, info.Length())), info.GetIsolate());
return;
}
@@ -4437,7 +4437,7 @@ static void svgPointMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Valu
static void strictSVGPointMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
{
ExceptionState exceptionState(ExceptionState::ExecutionContext, "strictSVGPointMethod", "TestObject", info.Holder(), info.GetIsolate());
- if (UNLIKELY(info.Length() < 2)) {
+ if (info.Length() < 2) {
exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(2, info.Length()));
exceptionState.throwIfNeeded();
return;
@@ -4482,7 +4482,7 @@ static void orangeMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info
static void strictFunctionMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
{
ExceptionState exceptionState(ExceptionState::ExecutionContext, "strictFunction", "TestObject", info.Holder(), info.GetIsolate());
- if (UNLIKELY(info.Length() < 3)) {
+ if (info.Length() < 3) {
exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(3, info.Length()));
exceptionState.throwIfNeeded();
return;
@@ -4506,7 +4506,7 @@ static void strictFunctionMethodCallback(const v8::FunctionCallbackInfo<v8::Valu
static void variadicStringMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(info.Length() < 1)) {
+ if (info.Length() < 1) {
throwTypeError(ExceptionMessages::failedToExecute("variadicStringMethod", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
return;
}
@@ -4525,7 +4525,7 @@ static void variadicStringMethodMethodCallback(const v8::FunctionCallbackInfo<v8
static void variadicDoubleMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(info.Length() < 1)) {
+ if (info.Length() < 1) {
throwTypeError(ExceptionMessages::failedToExecute("variadicDoubleMethod", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
return;
}
@@ -4544,7 +4544,7 @@ static void variadicDoubleMethodMethodCallback(const v8::FunctionCallbackInfo<v8
static void variadicNodeMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(info.Length() < 1)) {
+ if (info.Length() < 1) {
throwTypeError(ExceptionMessages::failedToExecute("variadicNodeMethod", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
return;
}
@@ -4570,7 +4570,7 @@ static void variadicNodeMethodMethodCallback(const v8::FunctionCallbackInfo<v8::
static void methodWithNullableArgumentsMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(info.Length() < 3)) {
+ if (info.Length() < 3) {
throwTypeError(ExceptionMessages::failedToExecute("methodWithNullableArguments", "TestObject", ExceptionMessages::notEnoughArguments(3, info.Length())), info.GetIsolate());
return;
}
@@ -4629,7 +4629,7 @@ static void perWorldMethodMethodCallbackForMainWorld(const v8::FunctionCallbackI
static void overloadedPerWorldMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(info.Length() < 1)) {
+ if (info.Length() < 1) {
throwTypeError(ExceptionMessages::failedToExecute("overloadedPerWorldMethod", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
return;
}
@@ -4640,7 +4640,7 @@ static void overloadedPerWorldMethod1Method(const v8::FunctionCallbackInfo<v8::V
static void overloadedPerWorldMethod1MethodForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(info.Length() < 1)) {
+ if (info.Length() < 1) {
throwTypeError(ExceptionMessages::failedToExecute("overloadedPerWorldMethod", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
return;
}
@@ -4651,7 +4651,7 @@ static void overloadedPerWorldMethod1MethodForMainWorld(const v8::FunctionCallba
static void overloadedPerWorldMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(info.Length() < 2)) {
+ if (info.Length() < 2) {
throwTypeError(ExceptionMessages::failedToExecute("overloadedPerWorldMethod", "TestObject", ExceptionMessages::notEnoughArguments(2, info.Length())), info.GetIsolate());
return;
}
@@ -4690,7 +4690,7 @@ static void overloadedPerWorldMethodMethodCallback(const v8::FunctionCallbackInf
static void overloadedPerWorldMethod2MethodForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(info.Length() < 2)) {
+ if (info.Length() < 2) {
throwTypeError(ExceptionMessages::failedToExecute("overloadedPerWorldMethod", "TestObject", ExceptionMessages::notEnoughArguments(2, info.Length())), info.GetIsolate());
return;
}
@@ -4729,7 +4729,7 @@ static void overloadedPerWorldMethodMethodCallbackForMainWorld(const v8::Functio
static void activityLoggedMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(info.Length() < 1)) {
+ if (info.Length() < 1) {
throwTypeError(ExceptionMessages::failedToExecute("activityLoggedMethod1", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
return;
}
@@ -4752,7 +4752,7 @@ static void activityLoggedMethod1MethodCallback(const v8::FunctionCallbackInfo<v
static void activityLoggedMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(info.Length() < 1)) {
+ if (info.Length() < 1) {
throwTypeError(ExceptionMessages::failedToExecute("activityLoggedMethod2", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
return;
}
@@ -4775,7 +4775,7 @@ static void activityLoggedMethod2MethodCallback(const v8::FunctionCallbackInfo<v
static void activityLoggedMethod2MethodForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(info.Length() < 1)) {
+ if (info.Length() < 1) {
throwTypeError(ExceptionMessages::failedToExecute("activityLoggedMethod2", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
return;
}
@@ -4798,7 +4798,7 @@ static void activityLoggedMethod2MethodCallbackForMainWorld(const v8::FunctionCa
static void activityLoggedInIsolatedWorldMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(info.Length() < 1)) {
+ if (info.Length() < 1) {
throwTypeError(ExceptionMessages::failedToExecute("activityLoggedInIsolatedWorldMethod", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
return;
}
@@ -4821,7 +4821,7 @@ static void activityLoggedInIsolatedWorldMethodMethodCallback(const v8::Function
static void activityLoggedInIsolatedWorldMethodMethodForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(info.Length() < 1)) {
+ if (info.Length() < 1) {
throwTypeError(ExceptionMessages::failedToExecute("activityLoggedInIsolatedWorldMethod", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
return;
}
@@ -4839,7 +4839,7 @@ static void activityLoggedInIsolatedWorldMethodMethodCallbackForMainWorld(const
static void overloadedActivityLoggedMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(info.Length() < 1)) {
+ if (info.Length() < 1) {
throwTypeError(ExceptionMessages::failedToExecute("overloadedActivityLoggedMethod", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
return;
}
@@ -4850,7 +4850,7 @@ static void overloadedActivityLoggedMethod1Method(const v8::FunctionCallbackInfo
static void overloadedActivityLoggedMethod1MethodForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(info.Length() < 1)) {
+ if (info.Length() < 1) {
throwTypeError(ExceptionMessages::failedToExecute("overloadedActivityLoggedMethod", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
return;
}
@@ -4861,7 +4861,7 @@ static void overloadedActivityLoggedMethod1MethodForMainWorld(const v8::Function
static void overloadedActivityLoggedMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(info.Length() < 2)) {
+ if (info.Length() < 2) {
throwTypeError(ExceptionMessages::failedToExecute("overloadedActivityLoggedMethod", "TestObject", ExceptionMessages::notEnoughArguments(2, info.Length())), info.GetIsolate());
return;
}
@@ -4905,7 +4905,7 @@ static void overloadedActivityLoggedMethodMethodCallback(const v8::FunctionCallb
static void overloadedActivityLoggedMethod2MethodForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(info.Length() < 2)) {
+ if (info.Length() < 2) {
throwTypeError(ExceptionMessages::failedToExecute("overloadedActivityLoggedMethod", "TestObject", ExceptionMessages::notEnoughArguments(2, info.Length())), info.GetIsolate());
return;
}
@@ -4976,7 +4976,7 @@ static void deprecatedStaticMethodMethodCallback(const v8::FunctionCallbackInfo<
static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info)
{
- if (UNLIKELY(info.Length() < 1)) {
+ if (info.Length() < 1) {
throwTypeError(ExceptionMessages::failedToExecute("Constructor", "TestObject", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
return;
}
« no previous file with comments | « Source/bindings/tests/results/V8TestNamedConstructor.cpp ('k') | Source/bindings/tests/results/V8TestObjectPython.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698