Index: Source/bindings/tests/results/core/V8TestObject.cpp |
diff --git a/Source/bindings/tests/results/core/V8TestObject.cpp b/Source/bindings/tests/results/core/V8TestObject.cpp |
index 70e4e01aa0cec8a2978d401f1bd545033f3bbf06..8242aeb6b42fdeea78ecb338e3fc0d8067cf5a87 100644 |
--- a/Source/bindings/tests/results/core/V8TestObject.cpp |
+++ b/Source/bindings/tests/results/core/V8TestObject.cpp |
@@ -11161,6 +11161,47 @@ static void raisesExceptionXPathNSResolverVoidMethodMethodCallback(const v8::Fun |
TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
} |
+static void methodWithRawPrimitivesForDefaultUndefinedArgumentsMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
+{ |
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "methodWithRawPrimitivesForDefaultUndefinedArguments", "TestObject", info.Holder(), info.GetIsolate()); |
+ if (UNLIKELY(info.Length() < 1)) { |
+ setMinimumArityTypeError(exceptionState, 1, info.Length()); |
+ exceptionState.throwIfNeeded(); |
+ return; |
+ } |
+ TestObject* impl = V8TestObject::toImpl(info.Holder()); |
+ double firstArg; |
+ int secondArg; |
+ double* optionalDoubleArg = nullptr; |
+ double optionalDoubleArgValue; |
+ { |
+ firstArg = toRestrictedDouble(info.GetIsolate(), info[0], exceptionState); |
+ if (exceptionState.throwIfNeeded()) |
+ return; |
+ if (UNLIKELY(info.Length() <= 1)) { |
+ impl->methodWithRawPrimitivesForDefaultUndefinedArguments(firstArg); |
+ return; |
+ } |
+ secondArg = toInt32(info.GetIsolate(), info[1], NormalConversion, exceptionState); |
+ if (exceptionState.throwIfNeeded()) |
+ return; |
+ if (!isUndefinedOrNull(info[2])) { |
+ optionalDoubleArgValue = toRestrictedDouble(info.GetIsolate(), info[2], exceptionState); |
+ optionalDoubleArg = &optionalDoubleArgValue; |
+ if (exceptionState.throwIfNeeded()) |
+ return; |
+ } |
+ } |
+ impl->methodWithRawPrimitivesForDefaultUndefinedArguments(firstArg, secondArg, optionalDoubleArg); |
+} |
+ |
+static void methodWithRawPrimitivesForDefaultUndefinedArgumentsMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
+{ |
+ TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
+ TestObjectV8Internal::methodWithRawPrimitivesForDefaultUndefinedArgumentsMethod(info); |
+ TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
+} |
+ |
static void callWithExecutionContextRaisesExceptionVoidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
ExceptionState exceptionState(ExceptionState::ExecutionContext, "callWithExecutionContextRaisesExceptionVoidMethodLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
@@ -12828,6 +12869,7 @@ static const V8DOMConfiguration::MethodConfiguration V8TestObjectMethods[] = { |
{"raisesExceptionVoidMethodOptionalTestCallbackInterfaceArg", TestObjectV8Internal::raisesExceptionVoidMethodOptionalTestCallbackInterfaceArgMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
{"raisesExceptionTestInterfaceEmptyVoidMethod", TestObjectV8Internal::raisesExceptionTestInterfaceEmptyVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
{"raisesExceptionXPathNSResolverVoidMethod", TestObjectV8Internal::raisesExceptionXPathNSResolverVoidMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
+ {"methodWithRawPrimitivesForDefaultUndefinedArguments", TestObjectV8Internal::methodWithRawPrimitivesForDefaultUndefinedArgumentsMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
{"callWithExecutionContextRaisesExceptionVoidMethodLongArg", TestObjectV8Internal::callWithExecutionContextRaisesExceptionVoidMethodLongArgMethodCallback, 0, 1, V8DOMConfiguration::ExposedToAllScripts}, |
{"treatReturnedNullStringAsNullStringMethod", TestObjectV8Internal::treatReturnedNullStringAsNullStringMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
{"treatReturnedNullStringAsUndefinedStringMethod", TestObjectV8Internal::treatReturnedNullStringAsUndefinedStringMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |